diff options
Diffstat (limited to 'ucspi-tcp6-deb/debian/rules')
-rwxr-xr-x | ucspi-tcp6-deb/debian/rules | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ucspi-tcp6-deb/debian/rules b/ucspi-tcp6-deb/debian/rules new file mode 100755 index 0000000..5b41dbb --- /dev/null +++ b/ucspi-tcp6-deb/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# You must remove unused comment lines for the released package. +export DH_VERBOSE = 1 +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +UPSTREAM_VERSION := $(shell dpkg-parsechangelog --show-field Version | cut -d- -f1) + +get-orig-source: + uscan --download-current-version + +%: + dh $@ --buildsystem=none + +override_dh_auto_clean: + -tar -xf ../ucspi-tcp6_$(UPSTREAM_VERSION).orig.tar.gz --strip-components=1 + rm -f ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/conf-cc + rm -f ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/conf-ld + $(MAKE) -C ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/src clean + rm -f ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/src/home + +override_dh_auto_configure: + echo "$(CC) -Iinclude `pkg-config -cflags qlibs` $(CFLAGS)" >ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/conf-cc + echo $(CC) >ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/conf-ld + touch ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/src/home + +override_dh_auto_build: + $(MAKE) -C ucspi-tcp6/ucspi-tcp6-$(UPSTREAM_VERSION)/src default |