[Pkg-voip-commits] r8444 - in /openh323/trunk/debian: changelog rules
msp at alioth.debian.org
msp at alioth.debian.org
Tue Jun 1 11:48:50 UTC 2010
Author: msp
Date: Tue Jun 1 11:48:42 2010
New Revision: 8444
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8444
Log:
Drop configure.exe to meet DFSG
Modified:
openh323/trunk/debian/changelog
openh323/trunk/debian/rules
Modified: openh323/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/openh323/trunk/debian/changelog?rev=8444&op=diff
==============================================================================
--- openh323/trunk/debian/changelog (original)
+++ openh323/trunk/debian/changelog Tue Jun 1 11:48:42 2010
@@ -1,4 +1,4 @@
-h323plus (1.21.0-1) UNRELEASED; urgency=low
+h323plus (1.21.0~dfsg-1) UNRELEASED; urgency=low
* New Upstream Release
- NEW packages libh323plus-dev libh323-1.21.0 libh323-dbg
@@ -13,6 +13,7 @@
* Update Build-Depends
* Cleanup debian/watch
* Update debian/copyright; MPL v1.0 & MPL v1.1
+ * Drop configure.exe to meet DFSG
-- Mark Purcell <msp at debian.org> Tue, 01 Jun 2010 21:26:07 +1000
Modified: openh323/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/openh323/trunk/debian/rules?rev=8444&op=diff
==============================================================================
--- openh323/trunk/debian/rules (original)
+++ openh323/trunk/debian/rules Tue Jun 1 11:48:42 2010
@@ -1,4 +1,13 @@
#!/usr/bin/make -f
+
+DEBVERSION := $(shell head -n 1 debian/changelog \
+ | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+UPVERSION := $(shell echo $(DEBVERSION) | sed -r -e 's/^.*://' -e 's/-[0-9.]*(\+b[0-9])?$$//' -e 's/.dfsg$$//')
+URLVERSION := $(shell echo $(DEBVERSION) | sed -r -e 's/^.*://' -e 's/-[0-9.]*(\+b[0-9])?$$//' -e 's/.dfsg$$//' -e 's/\./_/g')
+
+FILENAME := h323plus_$(UPVERSION)~dfsg.orig.tar.gz
+UPFILENAME := h323plus_$(UPVERSION).orig.tar.gz
+URL := http://www.h323plus.org/source/download/h323plus-v$(URLVERSION).tar.gz
export PTLIBDIR = $(shell /usr/bin/ptlib-config --ptlibdir)
@@ -13,3 +22,18 @@
clean::
rm -fR lib/ config.status config.log a.out Makefile plugins/config.log plugins/config.status
+
+get-orig-source:
+ @@dh_testdir
+ @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+ @@#this is for stable versions
+ @@echo Downloading $(UPFILENAME) from $(URL) ...
+ @@wget -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL)
+ @@echo 'Repacking as DFSG-free (removing configure.exe)...'
+ @@mkdir -p ../tarballs/h323plus-$(UPVERSION).tmp/
+ @@cd ../tarballs/h323plus-$(UPVERSION).tmp ; tar xfz ../$(UPFILENAME)
+ @@rm -rf ../tarballs/h323plus-$(UPVERSION).tmp/h323plus*/configure.exe
+ @@echo Writing archive ../tarballs/$(FILENAME) ...
+ @@cd ../tarballs/h323plus-$(UPVERSION).tmp ; tar cfz ../$(FILENAME) *
+ @@echo Cleaning up...
+ @@$(RM) -rf ../tarballs/h323plus-$(UPVERSION).tmp/ ../tarballs/$(UPFILENAME)
More information about the Pkg-voip-commits
mailing list