summaryrefslogtreecommitdiff
path: root/debian/rules
blob: b107d600440cbb937bf14b4723a916682c823536 (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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_HARDENING=1

# Avoid overlinking and reduce library dependencies.
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --parallel

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	cp Makefile.proto Makefile

.PHONY: override_dh_auto_install
override_dh_auto_install:
	# Upstream's installer violates the FHS, and there are only two files to
	# install anyway.  Do it manually using secpwgen.install and
	# secpwgen.manpages.
	/bin/true

.PHONY: override_dh_installdocs
override_dh_installdocs:
	dh_installdocs -XREADME

.PHONY: override_dh_builddeb
override_dh_builddeb:
	dh_builddeb -- -Zxz -z9