aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 969a3741049aaae5235f836b99ce3c9ce50077b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_CPPFLAGS_MAINT_APPEND = -DHOPM_LOGDIR="\"$$(localstatedir)/log/hopm\""

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --sysconfdir=/etc/hopm

override_dh_install:
	sed -e s@var/run/hopm.pid@/run/hopm/hopm.pid@ \
		-e s@var/log/scan.log@/var/log/hopm/scan.log@ \
		doc/reference.conf > debian/hopm/etc/hopm/hopm.conf
	dh_install

override_dh_installinit:
	dh_installinit --no-enable