[Pkg-voip-commits] [SCM] StarPy branch, master, updated. edffe637abebcde7e6cab21a806932a54c3339f9

Paul Belanger paul.belanger at polybeacon.com
Sat Feb 11 18:16:35 UTC 2012


The following commit has been merged in the master branch:
commit edffe637abebcde7e6cab21a806932a54c3339f9
Author: Paul Belanger <paul.belanger at polybeacon.com>
Date:   Sat Feb 11 13:14:28 2012 -0500

    Create print-version and get-orig-source tags; v1.0.0
    
    The logic was taken from the existing asterisk package.  Upstream also
    has an official 1.0.0 release so we've updated our version number
    accordingly.
    
    Signed-off-by: Paul Belanger <paul.belanger at polybeacon.com>

diff --git a/debian/changelog b/debian/changelog
index 8c89b8b..0825027 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-starpy (1.1.0~20102011-1) unstable; urgency=low
+starpy (1.0.0-1) UNRELEASED; urgency=low
 
   * Initial release. (Closes: #625216))
 
- -- Tzafrir Cohen <tzafrir at debian.org>  Mon, 21 Nov 2011 20:27:15 +0200
+ -- Paul Belanger <paul.belanger at polybeacon.com>  Sat, 11 Feb 2012 13:12:18 -0500
diff --git a/debian/rules b/debian/rules
index 2d33f6a..d84b5fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,23 @@
 #!/usr/bin/make -f
 
+DEBVERSION:=$(shell dpkg-parsechangelog | sed -n -e 's/Version: //p')
+DEB_SRC_VERSION:=$(shell echo $(DEBVERSION) | sed -e 's/-[^-]\+$$//')
+UPVERSION:=$(shell echo $(DEB_SRC_VERSION) | sed -e 's/[.~]dfsg//' -e 's/~\(\(rc\|beta\)[0-9]\)/-\1/')
+
+FILENAME := starpy_$(DEB_SRC_VERSION).orig.tar.gz
+URL := https://github.com/downloads/asterisk-org/starpy/starpy-$(UPVERSION).tar.gz
+
 %:
 	dh $@
+
+print-version:
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@echo "Upstream version:        $(UPVERSION)"
+
+get-orig-source:
+	@@dh_testdir
+	@@[ -d ../tarballs/. ] || mkdir -p ../tarballs
+	@@if [ ! -f ../tarballs/$(FILENAME) ]; then \
+		echo Downloading $(FILENAME) from $(URL) ...; \
+		wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL); \
+	fi

-- 
StarPy



More information about the Pkg-voip-commits mailing list