File: rules

package info (click to toggle)
smcroute 2.4.2-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 588 kB
  • sloc: ansic: 4,195; perl: 163; sh: 110; makefile: 100
file content (30 lines) | stat: -rwxr-xr-x 1,089 bytes parent folder | download
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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# See dpkg-buildflags(1) manpage
export DEB_CFLAGS_MAINT_APPEND = -Werror -ggdb
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf,systemd

override_dh_auto_configure:
	dh_auto_configure -- --bindir=/usr/sbin --with-systemd --with-libcap \
		--enable-mrdisc

override_dh_auto_install:
	dh_auto_install
	# delete smcroute.conf from /usr/share/doc/smcroute/ as this is also
	# installed by dh_installexamples to the proper examples/ subdirectory
	find debian/ -name smcroute.conf -type f -delete -printf "Removing %p\n"
	# delete smcroute.init from /usr/share/doc/smcroute/ as it needs to be
	# installed to /etc/init.d/
	install -D -m 0755 smcroute.init debian/smcroute/etc/init.d/smcroute
	find debian/ -name smcroute.init -type f -delete -printf "Removing %p\n"
	# delete duplicate license file /usr/share/doc/smcroute/COPYING
	rm -v debian/smcroute/usr/share/doc/smcroute/COPYING

override_dh_installinit:
	dh_installinit --onlyscripts
	dh_installsystemd --name=smcroute-helper