blob: 0ada5d9547aa897f1cc3925206421c7baf6d4e48 (
plain)
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
33
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
#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')
CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d "`dpkg-parsechangelog --show-field Date`" +"%d %B %Y")
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --sourcedirectory=openbsc --with autoreconf
override_dh_auto_configure:
dh_auto_configure --sourcedirectory=openbsc -- --enable-nat --enable-osmo-bsc --enable-smpp
override_dh_clean:
$(RM) openbsc/.version openbsc/tests/package.m4 openbsc/tests/testsuite
dh_clean
$(RM) debian/man/*.1
override_dh_installman:
cd debian/man ; CHANGELOG_DATE="$(CHANGELOG_DATE)" ./genmanpages.sh
dh_installman
# Print test results in case of a failure
override_dh_auto_test:
#TODO: temporarily deactivate: dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
echo "test deactivated"
|