blob: 758f30c765c225a1538ecd828fe5cbff8f4ff3ff (
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
65
66
67
68
|
#!/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
RUN_TESTS := yes
ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),hurd-i386 mips mipsel ppc64 ppc64el armel armhf arm64 kfreebsd-amd64 kfreebsd-i386))
$(warning Disabling checks on $(DEB_HOST_ARCH))
RUN_TESTS := no
endif
%:
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:
ifeq ($(RUN_TESTS),yes)
dh_auto_test -- V=1
endif
override_dh_missing:
dh_missing --fail-missing
override_dh_installchangelogs:
dh_installchangelogs NEWS
|