Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # see FEATURE AREAS in dpkg-buildflags(1)
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 # see ENVIRONMENT in dpkg-buildflags(1)
7 # package maintainers to append CFLAGS
8 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -fno-omit-frame-pointer
9
10 # include python modules in main package
11 export PYKRES_DESTDIR=debian/knot-resolver6/
12
13 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
14 DPKG_EXPORT_BUILDFLAGS = 1
15 include /usr/share/dpkg/default.mk
16
17
18 %:
19 dh $@ --with python3 --buildsystem=meson
20
21 override_dh_auto_configure:
22 dh_auto_configure -- \
23 --buildtype=plain \
24 --prefix=/usr \
25 --libdir=lib \
26 -Dinstall_root_keys=disabled \
27 -Dsystemd_files=enabled \
28 -Ddnstap=enabled \
29 -Dkeyfile_default=/usr/share/dns/root.key \
30 -Droot_hints=/usr/share/dns/root.hints \
31 -Dmalloc=jemalloc
32
33 override_dh_auto_build:
34 # disabled due to missing python3-json-schema-for-humans
35 #dh_auto_build -- doc
36 dh_auto_build
37 PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
38 dh_auto_build --buildsystem=pybuild
39
40 override_dh_auto_install:
41 dh_auto_install
42 PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
43 dh_auto_install --buildsystem=pybuild
44 install -m 644 -D etc/config/config.yaml debian/tmp/etc/knot-resolver/config.yaml
45
46 override_dh_auto_clean:
47 rm -rf .pybuild/
48 rm -rf build/
49 rm -rf python/knot_resolver.egg-info
50 dh_auto_clean