summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules18
1 files changed, 14 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index 3b6b9d86e..4713a7848 100755
--- a/debian/rules
+++ b/debian/rules
@@ -111,12 +111,22 @@ DEBIAN_VERSION := $(shell dh_testdir && \
-include debian/backports/rules
ifneq ($(TARBALLDIR),)
+ifeq ($(wildcard quagga-$(ORIG_VERSION).tar.gz),quagga-$(ORIG_VERSION).tar.gz)
+
+$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz: \
+ quagga-$(ORIG_VERSION).tar.gz
+ gunzip -c < $< | tar --delete quagga-$(ORIG_VERSION)/debian/ \
+ | gzip -c > $@
+
+else # wildcard quagga-$(ORIG_VERSION).tar.gz
+
# better error message on missing .orig.tar.gz
$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz:
- @ echo "\`$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz'" not \
+ @ echo "\`$(TARBALLDIR)/$(SRCPKG)-$(ORIG_VERSION).tar.gz'" not \
found and not generated by debian/rules. Provided you have the \
necessary packages installed, you can generate it yourself via \
- "\"./bootstrap.sh && ./configure && make dist\"" \
- and renaming the resulting file.
+ "\"./bootstrap.sh && ./configure && make dist\"".
exit 1
-endif # def TARBALLDIR
+
+endif # wildcard quagga-$(ORIG_VERSION).tar.gz
+endif # TARBALLDIR nonempty