1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#!/usr/bin/make -f
# based on the sample debian/rules file for debhelper by Joey Hess.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
./configure --with-serverbindir=/usr/sbin --with-serverlibdir=/etc/afbackup --with-servervardir=/var/lib/afbackup --with-serverlogdir=/var/log/afbackup --with-clientbindir=/usr/sbin --with-clientlibdir=/etc/afbackup --with-clientvardir=/var/lib/afbackup --with-clientlogdir=/var/log/afbackup --with-rexecdir=/usr/lib/afbackup/rexec --with-clientconf=client.conf --with-serverconf=server.conf --with-servermandir=/usr/man --with-clientmandir=/usr/man
make all DEBUG='-Wall -g' < debian/cryptkey
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-make distclean
dh_clean
binary-indep: build
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs
make install.rclient SERVERBINDIR=`pwd`/debian/tmp/usr/sbin SERVERLIBDIR=`pwd`/debian/tmp/etc/afbackup SERVERVARDIR=`pwd`/debian/tmp/var/lib/afbackup CLIENTBINDIR=`pwd`/debian/afbackup-client/usr/sbin CLIENTLIBDIR=`pwd`/debian/afbackup-client/etc/afbackup CLIENTVARDIR=`pwd`debian/afbackup-client/var/lib/afbackup SERVERREXECDIR=`pwd`/debian/afbackup-client/usr/lib/afbackup/rexec SERVERMANDIR=`pwd`/debian/tmp/usr/man CLIENTMANDIR=`pwd`/debian/afbackup-client/usr/man
dh_installdocs CONFIG HOWTO.FAQ.DO-DONT INTRO README debian/README.server.Debian
dh_installdocs -pafbackup-client -Pdebian/afbackup-client CONFIG HOWTO.FAQ.DO-DONT debian/README.client.Debian
dh_installcron
(cd debian/afbackup-client/usr/man/man8; ln -s afclient.8 afbackup.8)
(cd debian/afbackup-client/usr/man/man8; ln -s afclient.8 afbackout.8)
(cd debian/tmp/usr/man/man8; ln -s afserver.conf.8 afserverconfig.8)
(cd debian/tmp/usr/man/man8; ln -s afserver.conf.8 xafserverconfig.8)
(cd debian/afbackup-client/usr/man/man8; ln -s afclient.conf.8 afclientconfig.8)
(cd debian/afbackup-client/usr/man/man8; ln -s afclient.conf.8 xafclientconfig.8)
dh_undocumented
dh_installchangelogs Changes
dh_strip
dh_compress
dh_fixperms
dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_du
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|