| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -fno-omit-frame-pointer |
| 9 |
|
| 10 |
|
| 11 |
export PYKRES_DESTDIR=debian/knot-resolver6/ |
| 12 |
|
| 13 |
|
| 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 |
|
| 35 |
dh_auto_build |
| 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 |