projects
/
debian
/
uanytun.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add build targets build-arch + build-indep
[debian/uanytun.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index
cb58385
..
08bfb72
100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-12,16
+12,18
@@
configure: configure-stamp
configure-stamp:
dh_testdir
configure: configure-stamp
configure-stamp:
dh_testdir
- cd src && ./configure --
prefix=/usr --sysconfdir=/etc --examplesdir=/usr/share/uayn
tun/examples && cd ..
+ cd src && ./configure --
no-manpage --prefix=/usr --sysconfdir=/etc --examplesdir=/usr/share/uany
tun/examples && cd ..
touch configure-stamp
touch configure-stamp
-build: build-stamp
+build: build-arch build-indep
+
+build-arch: build-stamp
+build-indep: build-stamp
build-stamp: configure-stamp
dh_testdir
cd src && $(MAKE) && cd ..
build-stamp: configure-stamp
dh_testdir
cd src && $(MAKE) && cd ..
- cd doc && $(MAKE) && cd ..
touch $@
touch $@
@@
-30,21
+32,20
@@
clean:
dh_testroot
rm -f build-stamp configure-stamp
dh_testroot
rm -f build-stamp configure-stamp
- cd src && $(MAKE) clean && cd ..
- cd doc && $(MAKE) clean && cd ..
-
- # drop leftover file:
- rm -f src/tun.c
-
+ # Add here commands to clean up after the build process.
+ $(MAKE) --directory=$(CURDIR)/src distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean
install: build
dh_testdir
dh_testroot
- dh_installdirs
etc/init.d usr/sbin usr/share/uanytun/examples/config
+ dh_installdirs
# Add here commands to install the package into debian/uanytun.
cd src && $(MAKE) DESTDIR=$(CURDIR)/debian/uanytun install && cd ..
# Add here commands to install the package into debian/uanytun.
cd src && $(MAKE) DESTDIR=$(CURDIR)/debian/uanytun install && cd ..
+ # Fix unusual path:
+ mv debian/uanytun/usr/share/uanytun/examples/uanytun debian/uanytun/usr/share/uanytun/examples/config
+ echo "example configurations can be found at /usr/share/uanytun/examples/config" > debian/uanytun/etc/uanytun/README
# Build architecture-independent files here.
binary-indep: install
# Build architecture-independent files here.
binary-indep: install
@@
-62,7
+63,11
@@
binary-arch: install
dh_link
dh_strip
dh_compress
dh_link
dh_strip
dh_compress
+ mkdir -p debian/uanytun/usr/share/lintian/overrides/
+ cp -av debian/overrides debian/uanytun/usr/share/lintian/overrides/uanytun
dh_fixperms
dh_fixperms
+ find debian/uanytun -type f -name config -exec chmod 600 {} \;
+ find debian/uanytun -type f -name post-up.sh -exec chmod 755 {} \;
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_installdeb
dh_shlibdeps
dh_gencontrol