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
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@ --with systemd
override_dh_auto_configure:
ifeq ($(OS), kfreebsd)
dh_auto_configure -- --with-firewall=pf --with-pfctl=/sbin/pfctl
else
dh_auto_configure -- --with-firewall=iptables --with-iptables=/sbin/iptables
endif
override_dh_install:
dh_install
ifeq ($(OS), kfreebsd)
install -m 644 debian/sshguard.conf $(CURDIR)/debian/sshguard/etc/sshguard/
else
install -m 755 debian/sshguard-journalctl $(CURDIR)/debian/sshguard/usr/lib/sshguard/
endif
override_dh_installchangelogs:
dh_installchangelogs CHANGELOG.rst
override_dh_fixperms:
dh_fixperms
chmod 0755 $(CURDIR)/debian/sshguard/usr/lib/sshguard/firewall
|