[Pkg-voip-commits] r1714 - kiax/trunk/debian

Santiago Garcia Mantinan manty at costa.debian.org
Sun May 7 09:27:12 UTC 2006


Author: manty
Date: 2006-05-07 09:27:11 +0000 (Sun, 07 May 2006)
New Revision: 1714

Modified:
   kiax/trunk/debian/rules
Log:
Patch get-orig-source rules so that they remove non dfsg stuff and build a dfsg tarball.


Modified: kiax/trunk/debian/rules
===================================================================
--- kiax/trunk/debian/rules	2006-05-06 23:35:32 UTC (rev 1713)
+++ kiax/trunk/debian/rules	2006-05-07 09:27:11 UTC (rev 1714)
@@ -26,6 +26,8 @@
 UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
 
 FILENAME := kiax_$(UPVERSION).orig.tar.gz
+SRCDIR := kiax-$(UPVERSION)-src
+DFSGNAME := kiax_$(UPVERSION).dfsg.orig.tar.gz
 URL := http://mesh.dl.sourceforge.net/kiax/kiax-0.8.5-src.tar.gz
 
 configure: patch configure-stamp
@@ -109,6 +111,14 @@
 	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
 	@@echo Downloading $(FILENAME) from $(URL) ...
 	@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+	@@echo Removing non dfsg compliant parts out of it and building dfsg tarball
+	@@[ -d ../tarballs/dfsg/. ]||mkdir -p ../tarballs/dfsg
+	@@tar -xzf ../tarballs/$(FILENAME) -C ../tarballs/dfsg
+	@@rm -rf ../tarballs/dfsg/$(SRCDIR)/lib
+	@@GZIP=-9 tar -b1 -czf ../tarballs/$(DFSGNAME) -C ../tarballs/dfsg $(SRCDIR)
+	@@echo Cleaning up
+	@@rm -rf ../tarballs/dfsg
+	@@rm -f ../tarballs/$(FILENAME)
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure




More information about the Pkg-voip-commits mailing list