]> git.sommitrealweird.co.uk Git - quagga-debian.git/blob - debian/rules
New upstream release and new maintainer
[quagga-debian.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE=1
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 # Set binary version
7 include /usr/share/dpkg/pkg-info.mk
8 export QUAGGA_VERSION = $(DEB_VERSION_UPSTREAM)
9
10 # Filter VCS files
11 export DH_ALWAYS_EXCLUDE = .gitignore
12
13 %:
14         dh $@ --parallel --list-missing
15
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 \
24                 --with-libpam \
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)
33
34 override_dh_auto_build:
35         dh_auto_build
36         # build useful docs
37         dh_auto_build -- -C doc/ quagga.pdf draft-zebra-00.txt versioned_manpages
38
39 override_dh_auto_install:
40         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
43
44 override_dh_strip:
45         dh_strip --dbgsym-migration='quagga-dbg (<< 1.1.0-1~)'
46
47 # avoid lintian warning package-has-unnecessary-activation-of-ldconfig-trigger
48 override_dh_makeshlibs:
49         dh_makeshlibs --no-scripts