summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 514fdb58af8f2bffb7818e496c0577fe3dc9de73 (plain)
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
#!/usr/bin/make -f

# Add hardening build flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow,+pie

# The additional flags to pass to Build.PL, picked up by the upstream build
# system.
export WALLET_PERL_FLAGS := --installdirs vendor --create_packlist 0

# Enable some additional Perl tests.
export AUTOMATED_TESTING = 1

# Tell C TAP Harness to report the verbose output from all tests.
export C_TAP_VERBOSE = 1

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-reduced-depends

# Install the remctl configuration as part of the build.
override_dh_auto_install:
	dh_auto_install
	install -d debian/tmp/etc/remctl/acl
	install -m 0644 config/keytab.acl debian/tmp/etc/remctl/acl/keytab
	install -m 0644 config/wallet-report.acl \
	    debian/tmp/etc/remctl/acl/wallet-report

# Override install to check for missing installed files.
override_dh_install:
	dh_install --fail-missing

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_compress:
	dh_compress -X examples