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 34 35 36 37 38 39 40 41
|
#!/usr/bin/make -f
export DH_VERBOSE=1
ifeq ($(shell uname -s),GNU/kFreeBSD)
PLATFORM:=freebsd
else
PLATFORM:=linux
endif
# This has to be exported to make some magic below work.
export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# this is used by ./Configure
LSOF_CFGF := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export LSOF_CFGF
LSOF_CFGL := $(shell dpkg-buildflags --get LDFLAGS)
export LSOF_CFGL
override_dh_auto_clean:
dh_auto_clean
rm -f dfile.c dlsof.h dmnt.c dnode.c dproc.c dproto.h dsock.c dstore.c machine.h Makefile
rm -f lib/Makefile
cd tests && make clean && cd -
rm -f tests/config.cc tests/config.cflags tests/config.ldflags tests/config.xobj
override_dh_auto_configure:
./Configure -n ${PLATFORM}
override_dh_installchangelogs:
dh_installchangelogs 00DIST
override_dh_auto_test:
cd tests && make test && make opt && cd -
%:
dh $@
get-orig-source:
uscan --force-download --repack --verbose
|