File: rules

package info (click to toggle)
dnssec-trigger 0.17+repack-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 2,896 kB
  • sloc: ansic: 18,697; sh: 977; makefile: 494; xml: 444; objc: 421; cpp: 18
file content (40 lines) | stat: -rwxr-xr-x 1,078 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

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

# 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

export SHELL = /bin/sh

%:
	dh $@ --with autoreconf,python3

override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir=/usr/lib/dnssec-trigger \
		--with-ssl \
		--with-python=/usr/bin/python3 \
		--with-hooks=networkmanager \
		--with-gui=gtk \
		--with-unitdir=/lib/systemd/system \
		--with-rundir=/run \
		--with-keydir=/etc/dnssec-trigger \
		--with-pidfile=/run/dnssec-triggerd.pid \
		--with-unbound-control=/usr/sbin/unbound-control \
		--with-forward-zones-support

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

override_dh_installinit:
	dh_installinit --name=dnssec-triggerd

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