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
|
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PREFIX=/usr
%:
dh $@
override_dh_update_autotools_config:
./autogen.sh
./configure
override_dh_install:
dh_install
# rename default configfile
mv $(CURDIR)/debian/rsnapshot/etc/rsnapshot.conf.default \
$(CURDIR)/debian/rsnapshot/etc/rsnapshot.conf
override_dh_installexamples:
# Remove unnecessary extra license file, (Policy Manual section 12.5)
dh_installexamples -X utils/rsnapshotdb/LICENSE.txt
override_dh_fixperms:
dh_fixperms
# Fix permissions of the default rsnapshot_root directory
chmod 0700 $(CURDIR)/debian/rsnapshot/var/cache/rsnapshot
override_dh_compress:
# Do not compress example perl utilities
dh_compress --exclude=.pl
|