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/rules17
1 files changed, 11 insertions, 6 deletions
diff --git a/ucspi-ssl-deb/debian/rules b/ucspi-ssl-deb/debian/rules
index 02d420c..34cc53c 100755
--- a/ucspi-ssl-deb/debian/rules
+++ b/ucspi-ssl-deb/debian/rules
@@ -8,18 +8,23 @@ export DH_VERBOSE = 1
UPSTREAM_VERSION := $(shell dpkg-parsechangelog --show-field Version | cut -d- -f1)
get-orig-source:
- uscan --download-current-version
+ uscan --download-current-version --no-symlink
+ tar -xf ../ucspi-ssl-$(UPSTREAM_VERSION).tgz --strip-components=3
+ mv ucspi-ssl-$(UPSTREAM_VERSION)/ ucspi-ssl
+ rm ucspi-ssl/conf-cc
+ tar -czf ../ucspi-ssl_$(UPSTREAM_VERSION).orig.tar.gz ucspi-ssl
+ rm -r ucspi-ssl/
%:
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
+ -tar -xf ../ucspi-ssl_$(UPSTREAM_VERSION).orig.tar.gz --strip-components=1 --skip-old-files
+ rm -f conf-cc
+ $(MAKE) -C src clean
override_dh_auto_configure:
- echo "$(CC) `pkg-config -cflags qlibs` $(CFLAGS)" >superscript.com/net/ucspi-ssl-$(UPSTREAM_VERSION)/conf-cc
+ echo "$(CC) `pkg-config -cflags qlibs` $(CFLAGS)" >conf-cc
override_dh_auto_build:
- $(MAKE) -C superscript.com/net/ucspi-ssl-$(UPSTREAM_VERSION)/src default
+ $(MAKE) -C src default