rules 1.05 KB
Newer Older
Ondrej Sury's avatar
Ondrej Sury committed
1 2 3 4 5 6
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

7 8 9 10 11
# To enable all, uncomment following line
export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic -g -pipe $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed

12 13
export SHELL = /bin/sh

Ondrej Sury's avatar
Ondrej Sury committed
14
%:
15
	dh $@ --with autoreconf,python3
Ondrej Sury's avatar
Ondrej Sury committed
16 17

override_dh_auto_configure:
Ondrej Sury's avatar
Ondrej Sury committed
18
	dh_auto_configure -- \
19
		--libexecdir=/usr/lib/dnssec-trigger \
Ondrej Sury's avatar
Ondrej Sury committed
20
		--with-ssl \
21
		--with-python=/usr/bin/python3 \
Ondrej Sury's avatar
Ondrej Sury committed
22 23
		--with-hooks=networkmanager \
		--with-gui=gtk \
24 25
		--with-unitdir=/lib/systemd/system \
		--with-rundir=/run \
Ondrej Sury's avatar
Ondrej Sury committed
26 27
		--with-keydir=/etc/dnssec-trigger \
		--with-pidfile=/run/dnssec-triggerd.pid \
28 29
		--with-unbound-control=/usr/sbin/unbound-control \
		--with-forward-zones-support
30 31 32 33

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR) -type d -empty -delete
34 35 36

override_dh_installinit:
	dh_installinit --name=dnssec-triggerd
37 38 39 40

override_dh_auto_clean:
	dh_auto_clean
	-rm test/json-test test/other-test