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
|
#!/usr/bin/make -f
# -*- makefile -*-
# hardening options at build time
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_HOST_ARCH_OS),linux)
EXTRA_OPTIONS := USELIBCAP=1
else
EXTRA_OPTIONS :=
endif
override_dh_auto_build:
dh_auto_build -- USELIBWRAP=1 $(EXTRA_OPTIONS)
override_dh_auto_install:
# auto install fork version, see debian/install for select version
dh_auto_install -- DESTDIR=$(CURDIR)/debian/sslh/usr PREFIX=/ install
# do not start daemon by default: force user to configure
override_dh_installinit:
dh_installinit --no-start --no-enable
%:
dh $@
|