4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7 include /usr/share/dpkg/pkg-info.mk
8 export QUAGGA_VERSION = $(DEB_VERSION_UPSTREAM)
11 export DH_ALWAYS_EXCLUDE = .gitignore
14 dh $@ --parallel --list-missing
16 override_dh_auto_configure:
17 # disable snmp due to openssl licensing issues
18 # disable watchquagga since we rely on systemd
19 dh_auto_configure -- \
20 --enable-exampledir=/usr/share/doc/quagga/examples/ \
21 --localstatedir=/run/quagga \
22 --sysconfdir=/etc/quagga \
23 --disable-watchquagga \
25 --enable-user=quagga \
26 --enable-group=quagga \
27 --enable-vty-group=quaggavty \
28 --enable-configfile-mask=0660 \
29 --enable-logfile-mask=0640 \
30 --enable-multipath=64 \
31 --libdir=/usr/lib/quagga \
32 $(shell dpkg-buildflags --export=cmdline)
34 override_dh_auto_build:
37 dh_auto_build -- -C doc/ quagga.pdf draft-zebra-00.txt versioned_manpages
39 override_dh_auto_install:
41 # clean .la files for lintian warning non-empty-dependency_libs-in-la-file
42 sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/**/*.la
45 dh_strip --dbgsym-migration='quagga-dbg (<< 1.1.0-1~)'
47 # avoid lintian warning package-has-unnecessary-activation-of-ldconfig-trigger
48 override_dh_makeshlibs:
49 dh_makeshlibs --no-scripts