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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all
export DEB_CPPFLAGS_MAINT_APPEND = -include /usr/include/errno.h
%:
dh $@ --with runit,sysuser
# On pickdns
# ~~~~~~~~~~
#
# Upstream release builds and install following programs:
#
# * pickdns
# * pickdns-conf
# * pickdns-data
#
# which are not documented on upstream home page. According to[1], section 5.7,
# these programs are no longer needed as of djbdns-1.04, as its functionality
# is included into tinydns. So, Debian package do not install these binaries.
#
# [1] http://www.lifewithdjbdns.org/
override_dh_auto_configure:
echo /usr | tee conf-home
printf -- '%s\n' '$(CC) $(CPPFLAGS) $(CFLAGS)' | tee conf-cc
printf -- '%s\n' '$(CC) $(LDFLAGS)' | tee conf-ld
ifeq ($(DEBEMAIL),<salsa-pipeline@debian.org>)
echo 'int main () { return 0; }' | tee chkshsgr.c
endif
po-templates: po-templates-stamp
po-templates-stamp: deb-checkdir
po2debconf debian/tinydns-run.templates.in \
>debian/tinydns-run.templates
touch po-templates-stamp
execute_after_dh_auto_build:
debian/aux/mk-init.d
# Upstream build system can't be configured to do staged installation:
# it has no distinction between prefix and $(DESTDIR). Since prefix is
# embedded into body of *-conf programs, this difference is significant.
#
# Actual installation is done by dh_install(1).
override_dh_auto_install:
# See [On pickdns]
execute_after_dh_install:
rm -f debian/djbdns-conf/usr/sbin/pickdns-conf
rm -f debian/djbnds-conf/usr/share/man/man8/pickdns-conf.8
# Upstream does strange thing -- its test suite assumes that programs
# are already installed. Normally, checks are performed between `build'
# and `install'.
#
# So automatic invocation of tests is inhibited, and they are invoked
# manuall at `install' stage.
#
# Instead, run our own test suite.
override_dh_auto_test:
timelimit -p -t120 -T5 -- env PYTHONPATH='$(CURDIR)/debian/tests' python3 -B -u -m tinytest -b '$(CURDIR)' -s '$(CURDIR)' -S
override_dh_installinit:
dh_installinit --no-enable --no-start
override_dh_installsystemd:
dh_installsystemd --no-enable --no-start
|