rules 775 Bytes
Newer Older
Jonathan Carter's avatar
Jonathan Carter committed
1 2 3 4 5 6 7 8 9
#!/usr/bin/make -f

DEB_DH_INSTALLINIT_ARGS := -- defaults 95 5
DEB_BUILD_PARALLEL=yes

# Hardening options, see: https://wiki.debian.org/Hardening
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
Jonathan Carter's avatar
Jonathan Carter committed
10 11 12 13 14 15 16
	dh $@ --with autoreconf

configure:
	dh_autoreconf
	./configure

override_dh_auto_test:
Jonathan Carter's avatar
Jonathan Carter committed
17

18 19
override_dh_auto_clean:
	dh_auto_clean
Jonathan Carter's avatar
Jonathan Carter committed
20
	rm -f config.log
Jonathan Carter's avatar
Jonathan Carter committed
21
	dh_autoreconf_clean
Jonathan Carter's avatar
Jonathan Carter committed
22

23 24 25
override_dh_install:
	dh_install
	# Remove cruft:
Jonathan Carter's avatar
Jonathan Carter committed
26
	rm -r debian/preload/etc/rc.d debian/preload/etc/sysconfig
Jonathan Carter's avatar
Jonathan Carter committed
27
	rm -f debian/preload/var/log/preload.log
Jonathan Carter's avatar
Jonathan Carter committed
28
	rm -fr debian/preload/usr/share/doc/preload-*
Jonathan Carter's avatar
Jonathan Carter committed
29
	rm -f debian/preload/var/lib/preload/preload.state
30
	# Install and compress it manually, to be safe
Jonathan Carter's avatar
Jonathan Carter committed
31
	cp src/preload.8 debian/preload/usr/share/man/man8/
Jonathan Carter's avatar
Jonathan Carter committed
32
	gzip -f -9 debian/preload/usr/share/man/man8/preload.8