[Pkg-voip-commits] r7967 - in /py-asterisk/trunk/debian: changelog rules

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Sun Jan 17 14:08:37 UTC 2010


Author: tzafrir-guest
Date: Sun Jan 17 14:08:36 2010
New Revision: 7967

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

Modified:
    py-asterisk/trunk/debian/changelog
    py-asterisk/trunk/debian/rules

Modified: py-asterisk/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/py-asterisk/trunk/debian/changelog?rev=7967&op=diff
==============================================================================
--- py-asterisk/trunk/debian/changelog (original)
+++ py-asterisk/trunk/debian/changelog Sun Jan 17 14:08:36 2010
@@ -9,8 +9,9 @@
   [ Tzafrir Cohen ]
   * New upstream release.
   * Add myself to Uploaders.
+  * get-orig-source target. 
 
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sat, 26 Dec 2009 22:45:44 +0200
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sun, 17 Jan 2010 16:08:19 +0200
 
 py-asterisk (0.1a3+r160-4.1) unstable; urgency=low
 

Modified: py-asterisk/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/py-asterisk/trunk/debian/rules?rev=7967&op=diff
==============================================================================
--- py-asterisk/trunk/debian/rules (original)
+++ py-asterisk/trunk/debian/rules Sun Jan 17 14:08:36 2010
@@ -12,6 +12,15 @@
 # Include dpatch rules
 include /usr/share/dpatch/dpatch.make
 -include /usr/share/python/python.mk
+
+PACKAGE = py-asterisk
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+		    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+DEB_BASE_VERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//')
+UPVERSION:=$(shell echo $(DEB_BASE_VERSION) | sed -e 's/~dfsg\(~\|$$\)/\1/' -e 's/~\(rc\|beta\)/-\1/')
+UPFILENAME := $(PACKAGE)_$(UPVERSION).orig.tar.bz2
+FILENAME := $(PACKAGE)_$(DEB_BASE_VERSION).orig.tar.gz
+URL := http://download.berlios.de/$(PACKAGE)/$(PACKAGE)-$(UPVERSION).tar.bz2
 
 configure: configure-stamp
 configure-stamp:
@@ -80,5 +89,15 @@
 binary-arch: build install
 # Nothing to do here, move along.
 
+print-version:
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@echo "Upstream version:        $(UPVERSION)"
+
+get-orig-source:
+	@@dh_testdir
+	@@echo Downloading $(UPFILENAME) from $(URL) ...
+	@@wget  -nv -T10 -t3 --verbose -O $(UPFILENAME) $(URL)
+	@@bzcat $(UPFILENAME) | gzip -9 >$(FILENAME)
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure patch unpatch real-clean




More information about the Pkg-voip-commits mailing list