2017-10-17 19:51:12 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
2017-10-27 06:01:59 +00:00
|
|
|
export DH_VERBOSE=1
|
2017-10-17 19:51:12 +00:00
|
|
|
|
|
|
|
DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
|
|
|
|
DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
|
|
|
|
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
|
|
|
|
|
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
#export DH_OPTIONS
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
|
|
|
|
%:
|
2017-10-17 20:06:38 +00:00
|
|
|
dh $@ --with autoreconf --with systemd
|
2017-10-17 19:51:12 +00:00
|
|
|
|
2019-04-27 14:54:30 +00:00
|
|
|
override_dh_strip:
|
|
|
|
dh_strip --dbg-package=nextepc-dbg
|
|
|
|
|
2017-10-27 16:15:14 +00:00
|
|
|
override_dh_auto_test:
|
2017-10-30 13:34:17 +00:00
|
|
|
sctp_exclude_list=; \
|
2017-10-28 10:09:44 +00:00
|
|
|
if ! cat /proc/net/protocols | grep SCTP > /dev/null; then \
|
2019-04-27 14:54:30 +00:00
|
|
|
sctp_exclude_list="-x sctp-test"; \
|
2017-10-28 10:09:44 +00:00
|
|
|
fi; \
|
2019-04-27 14:54:30 +00:00
|
|
|
test/testunit -f test/sample.conf $$sctp_exclude_list || exit; \
|
|
|
|
|
|
|
|
#override_dh_makeshlibs:
|
|
|
|
# dh_makeshlibs -V
|