File: rules

package info (click to toggle)
getdns 1.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 4,512 kB
  • sloc: ansic: 54,762; sh: 407; xml: 38; makefile: 21
file content (31 lines) | stat: -rwxr-xr-x 725 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

CURRENT_DATE=$(shell date -u --rfc-3339=seconds --date "@$$SOURCE_DATE_EPOCH")

export DPKG_GENSYMBOLS_CHECK_LEVEL=4
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBUILD_LIBEVENT2=ON \
		-DBUILD_LIBEV=ON \
		-DBUILD_LIBUV=ON \
		-DPATH_TRUST_ANCHOR_FILE=/usr/share/dns/root.key \
		-DCURRENT_DATE="$(CURRENT_DATE)" \
		-DBUILD_STUBBY=ON

override_dh_install:
	-rm -rf $(CURDIR)/debian/tmp/usr/share/doc
	dh_install -X.la

override_dh_missing:
	dh_missing -X.la --fail-missing

override_dh_auto_test:
	# remote tests fail when there's no connectivity or the connectivity is restrained
	-dh_auto_test