File: rules

package info (click to toggle)
quagga 1.2.4-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,788 kB
  • sloc: ansic: 262,230; sh: 5,570; makefile: 717; perl: 329; lisp: 62; awk: 30
file content (56 lines) | stat: -rwxr-xr-x 1,875 bytes parent folder | download | duplicates (2)
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
55
56
#!/usr/bin/make -f

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Set binary version
include /usr/share/dpkg/pkg-info.mk
export QUAGGA_VERSION = $(DEB_VERSION_UPSTREAM)

# Filter VCS files
export DH_ALWAYS_EXCLUDE = .gitignore

%:
	dh $@ --parallel --list-missing

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-exampledir=/usr/share/doc/quagga/examples/ \
		--localstatedir=/run/quagga \
		--sysconfdir=/etc/quagga \
		--with-libpam \
		--enable-user=quagga \
		--enable-group=quagga \
		--enable-vty-group=quaggavty \
		--enable-configfile-mask=0660 \
		--enable-logfile-mask=0640 \
		--enable-multipath=64 \
		--libdir=/usr/lib/quagga \
		$(shell dpkg-buildflags --export=cmdline)

override_dh_auto_build:
	dh_auto_build
	# build useful docs
	dh_auto_build -- -C doc/ quagga.pdf draft-zebra-00.txt versioned_manpages

override_dh_auto_install:
	dh_auto_install
	# clean .la files for lintian warning non-empty-dependency_libs-in-la-file
	sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/**/*.la

override_dh_strip:
	dh_strip --dbgsym-migration='quagga-dbg (<< 1.1.0-1~)'

override_dh_installinit:
	dh_installinit --only-scripts -r --no-start -p quagga-core --name watchquagga
	dh_installinit --only-scripts -r --no-start -p quagga-core --name zebra
	dh_installinit --only-scripts -r --no-start -p quagga-bgpd --name bgpd
	dh_installinit --only-scripts -r --no-start -p quagga-isisd --name isisd
	dh_installinit --only-scripts -r --no-start -p quagga-ospf6d --name ospf6d
	dh_installinit --only-scripts -r --no-start -p quagga-pimd --name pimd
	dh_installinit --only-scripts -r --no-start -p quagga-ripd --name ripd
	dh_installinit --only-scripts -r --no-start -p quagga-ripngd --name ripngd

# avoid lintian warning package-has-unnecessary-activation-of-ldconfig-trigger
override_dh_makeshlibs:
	dh_makeshlibs --no-scripts