summaryrefslogtreecommitdiff
path: root/ucspi-ssl-deb/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'ucspi-ssl-deb/debian/rules')
-rwxr-xr-xucspi-ssl-deb/debian/rules25
1 files changed, 25 insertions, 0 deletions
diff --git a/ucspi-ssl-deb/debian/rules b/ucspi-ssl-deb/debian/rules
new file mode 100755
index 0000000..02d420c
--- /dev/null
+++ b/ucspi-ssl-deb/debian/rules
@@ -0,0 +1,25 @@
+#!/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-ssl_$(UPSTREAM_VERSION).orig.tar.gz --strip-components=1
+ rm -f superscript.com/net/ucspi-ssl-$(UPSTREAM_VERSION)/conf-cc
+ $(MAKE) -C superscript.com/net/ucspi-ssl-$(UPSTREAM_VERSION)/src clean
+
+override_dh_auto_configure:
+ echo "$(CC) `pkg-config -cflags qlibs` $(CFLAGS)" >superscript.com/net/ucspi-ssl-$(UPSTREAM_VERSION)/conf-cc
+
+override_dh_auto_build:
+ $(MAKE) -C superscript.com/net/ucspi-ssl-$(UPSTREAM_VERSION)/src default