File: rules

package info (click to toggle)
pound 4.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,008 kB
  • sloc: ansic: 26,296; perl: 2,311; makefile: 242; sh: 42; sed: 18
file content (29 lines) | stat: -rwxr-xr-x 859 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
#!/usr/bin/make -f

# export DH_VERBOSE=1

# enable bindnow
# https://wiki.debian.org/HardeningWalkthrough
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# https://wiki.debian.org/Hardening#Notes_for_packages_using_CMake
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh "$@"

override_dh_auto_configure:
#	test -d build-aux || mkdir build-aux
	perl md2txt.pl -l 4 README.md > README
# for reproducible builds (pound.info includes the mtime of pound.texi)
	touch --no-dereference --date='@$(SOURCE_DATE_EPOCH)' doc/pound.texi
	dh_auto_configure -- --enable-dns-tests

override_dh_installinit:
	dh_installinit --no-enable

override_dh_installsystemd:
	dh_installsystemd --no-enable