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
|
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Used by autogen to substitute the source package date into man pages
export MAN_PAGE_DATE = $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" +%Y-%m-%d)
#ifeq ($(DEB_BUILD_ARCH_OS),linux)
OTHER_CONF_OPTS = --enable-systemd
#endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --disable-rpath --disable-silent-rules \
--enable-latency-stats \
--without-nuttcp-tests --without-docker-tests \
$(OTHER_CONF_OPTS)
override_dh_installsystemd:
dh_installsystemd --no-stop-on-upgrade --no-enable --no-start ocserv.service
override_dh_auto_test:
# Most of them need root, actually test them in debci instead
-dh_auto_test
|