blob: 87831d0c8b7d18985246007990e533eb57afe718 (
plain)
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
57
58
59
60
61
62
63
64
|
#!/usr/bin/make -f
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -fno-omit-frame-pointer
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export ARCH=$(DEB_HOST_GNU_CPU)
export PREFIX=/usr
export MODULEDIR=/usr/lib/knot-resolver
export ETCDIR=/etc/knot-resolver
%:
dh $@
override_dh_auto_clean-indep:
dh_auto_clean -- doc-clean http-clean
override_dh_auto_build-arch:
CFLAGS="$${CFLAGS} -DNDEBUG" dh_auto_build -- V=1 BUILDMODE=static lib
CFLAGS="$${CFLAGS} -DNDEBUG" dh_auto_build -- V=1 \
ROOTHINTS=/usr/share/dns/root.hints \
KEYFILE_DEFAULT=/usr/share/dns/root.key
override_dh_auto_build-indep:
dh_auto_build -- V=1 http
dh_auto_build -- V=1 doc-doxygen
cd doc && sphinx-build -b html -D html_theme=nature . html
override_dh_auto_install-arch:
dh_auto_install --destdir=debian/tmp -- V=1 KEYFILE_DEFAULT=/usr/share/dns/root.key
rm -f debian/tmp/etc/knot-resolver/root.hints debian/tmp/etc/knot-resolver/icann-ca.pem
override_dh_auto_install-indep:
# install just the http/2 module
make http-install DESTDIR=debian/tmp V=1
override_dh_installinit:
dh_installinit -pknot-resolver --name=kresd --no-start
override_dh_installsystemd:
dh_installsystemd -pknot-resolver --name=kresd kresd-tls.socket kresd.socket
override_dh_auto_test-indep:
override_dh_auto_test-arch:
dh_auto_test -- V=1
ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
mkdir -p test-modules && (cd test-modules && ln -sf ../modules/*/*.lua ../modules/*/*.so ../modules/policy/lua-aho-corasick/*.lua ../modules/policy/lua-aho-corasick/*.so ../daemon/lua/* ./)
MODULE_DIR=$(CURDIR)/test-modules LD_LIBRARY_PATH=$(CURDIR)/lib KRESD=$(CURDIR)/daemon/kresd debian/tests/roundtrip
endif
override_dh_missing:
dh_missing --fail-missing
override_dh_installchangelogs:
dh_installchangelogs NEWS
|