File: rules

package info (click to toggle)
sshguard 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,468 kB
  • sloc: ansic: 3,871; sh: 2,471; lex: 345; yacc: 287; makefile: 95
file content (23 lines) | stat: -rwxr-xr-x 613 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 $@

override_dh_auto_configure:
	dh_auto_configure -- --sysconfdir=/etc/sshguard --libexecdir=/usr/libexec/sshguard

override_dh_install:
	dh_install
ifeq ($(OS), kfreebsd)
	install -m 644 debian/sshguard.conf.kfreebsd $(CURDIR)/debian/sshguard/etc/sshguard/sshguard.conf
else
	install -m 644 debian/sshguard.conf.linux $(CURDIR)/debian/sshguard/etc/sshguard/sshguard.conf
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.rst