[Pkg-voip-commits] r7174 - in /linphone/trunk/debian: changelog rules

kilian at alioth.debian.org kilian at alioth.debian.org
Sat May 9 20:50:50 UTC 2009


Author: kilian
Date: Sat May  9 20:50:50 2009
New Revision: 7174

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7174
Log:
Add get-orig-source target to debian/rules

Modified:
    linphone/trunk/debian/changelog
    linphone/trunk/debian/rules

Modified: linphone/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/linphone/trunk/debian/changelog?rev=7174&op=diff
==============================================================================
--- linphone/trunk/debian/changelog (original)
+++ linphone/trunk/debian/changelog Sat May  9 20:50:50 2009
@@ -3,8 +3,9 @@
   * NOT RELEASED YET
 
   * New upstream release.
-
- -- Kilian Krause <kilian at debian.org>  Sat, 09 May 2009 18:30:23 +0200
+  * Add get-orig-source target to debian/rules
+
+ -- Kilian Krause <kilian at debian.org>  Sat, 09 May 2009 22:50:26 +0200
 
 linphone (3.1.1-2) unstable; urgency=low
 

Modified: linphone/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/linphone/trunk/debian/rules?rev=7174&op=diff
==============================================================================
--- linphone/trunk/debian/rules (original)
+++ linphone/trunk/debian/rules Sat May  9 20:50:50 2009
@@ -5,3 +5,20 @@
 include /usr/share/cdbs/1/rules/dpatch.mk
 
 DEB_DH_MAKESHLIBS_ARGS_libmediastreamer0 := -V"libmediastreamer0 (>= 3)"
+
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+		    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
+
+FILENAME := linphone_$(UPVERSION).orig.tar.gz
+URL := http://mirrors.zerg.biz/nongnu/linphone/stable/sources/linphone-$(UPVERSION).tar.gz
+
+print-version:
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@echo "Upstream version:        $(UPVERSION)"
+
+get-orig-source:
+	@@dh_testdir
+	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+	@@echo Downloading $(FILENAME) from $(URL) ...
+	@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)




More information about the Pkg-voip-commits mailing list