| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 8 |
|
| 9 |
# ensure building with UTF-8 locale |
| 10 |
export LC_ALL = C.UTF-8 |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
dh_testdir |
| 17 |
dh_auto_configure -- --sysconfdir=/etc/burp --localstatedir=/var --sbindir=\$${prefix}/sbin |
| 18 |
|
| 19 |
override_dh_auto_test: |
| 20 |
# disable unit test ('check' framework) to avoid FTBFS in the Debian Package Auto-Building. |
| 21 |
# These test are executed with the Debian continuous integration system (debci). |
| 22 |
|
| 23 |
override_dh_auto_install: |
| 24 |
dh_auto_install -- install-configs |
| 25 |
# remove duplicate files and empty dir |
| 26 |
rm debian/burp/usr/share/doc/burp/LICENSE |
| 27 |
rm debian/burp/usr/share/doc/burp/CHANGELOG |
| 28 |
rmdir debian/burp/run |
| 29 |
|
| 30 |
override_dh_fixperms: |
| 31 |
dh_fixperms |
| 32 |
chmod 0600 debian/burp/etc/burp/burp.conf |
| 33 |
chmod 0600 debian/burp/etc/burp/burp-server.conf |
| 34 |
chmod 0700 debian/burp/etc/burp/clientconfdir |
| 35 |
chmod 0700 debian/burp/var/spool/burp |
| 36 |
|
| 37 |
override_dh_installinit: |
| 38 |
# use sysvinit as alternative init system |
| 39 |
dh_installinit --no-enable --no-start |
| 40 |
|
| 41 |
override_dh_installsystemd: |
| 42 |
dh_installsystemd --no-enable |
| 43 |
|
| 44 |
override_dh_clean: |
| 45 |
dh_clean |
| 46 |
rm -fv manpages/*.8 |