[Pkg-voip-commits] r5226 - in /asterisk-prompt-es/trunk/debian: changelog rules

maniac-guest at alioth.debian.org maniac-guest at alioth.debian.org
Mon Feb 18 16:48:08 UTC 2008


Author: maniac-guest
Date: Mon Feb 18 16:48:07 2008
New Revision: 5226

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5226
Log:
add get-orig-source rule. version 1 why 2 if there is no upload yet?

Modified:
    asterisk-prompt-es/trunk/debian/changelog
    asterisk-prompt-es/trunk/debian/rules

Modified: asterisk-prompt-es/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-es/trunk/debian/changelog?rev=5226&op=diff
==============================================================================
--- asterisk-prompt-es/trunk/debian/changelog (original)
+++ asterisk-prompt-es/trunk/debian/changelog Mon Feb 18 16:48:07 2008
@@ -1,17 +1,12 @@
-asterisk-prompt-es (1.4-2) unstable; urgency=low
-
-  * added missing rules.
-  * fix perms on txt files.
-  * now lintian clean.
-
- -- Victor Seva <linuxmaniac at torreviejawireless.org>  Thu, 14 Feb 2008 12:08:13 +0100
-
 asterisk-prompt-es (1.4-1) unstable; urgency=low
 
-  * changed sounds from the new project http://www.voipnovatos.es/voces/
-  * sounds for asterisk 1.4
+  * New, really new, upstream version
+    sounds from the new project http://www.voipnovatos.es/voces/
+    compatible with 1.4.x asterisk
+  * added rules: get-orig-source and print-version
+  * changed Maintainer to pkg-voip team
 
- --  Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 21 Nov 2007 08:46:29 +0000
+ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Mon, 18 Feb 2008 16:46:22 +0000
 
 asterisk-prompt-es (0.4-3) unstable; urgency=low
 

Modified: asterisk-prompt-es/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-es/trunk/debian/rules?rev=5226&op=diff
==============================================================================
--- asterisk-prompt-es/trunk/debian/rules (original)
+++ asterisk-prompt-es/trunk/debian/rules Mon Feb 18 16:48:07 2008
@@ -11,6 +11,16 @@
 
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
+
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+DEB_NOEPOCH_VERSION:=$(shell echo $(DEBVERSION) | cut -d':' -f 2)
+UPVERSION := "1.4"
+
+FILENAME := asterisk-prompt-es_$(UPVERSION).orig.tar.gz
+UPFILENAME := voipnovatos-core-sounds-es-gsm-$(UPVERSION).tar.gz
+URL := http://voipnovatos.es/voces/$(UPFILENAME)
+URL_LEEME := http://voipnovatos.es/voces/licenciadeuso.txt
 
 configure: 
 
@@ -28,7 +38,6 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	find . -name '*.txt' -exec chmod 0664 {} \;
 	dh_install
 install-arch:
 
@@ -47,4 +56,26 @@
 binary-arch:
 
 binary: binary-arch binary-indep
+
+print-version:
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@echo "Upstream version:        $(UPVERSION)"
+
+TMP_TARBALL_TOP=../tarballs/asterisk-prompt-es-$(UPVERSION).tmp/asterisk-prompt-es-$(UPVERSION)
+get-orig-source:
+	@@dh_testdir
+	@@[ -d ../tarballs/. ]||mkdir ../tarballs
+	@@echo Downloading $(UPFILENAME) from $(URL) ...
+	#@@wget -N -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL)
+	@@mkdir ../tarballs/asterisk-prompt-es-$(UPVERSION).tmp/
+	@@mkdir $(TMP_TARBALL_TOP)/
+	@@cd $(TMP_TARBALL_TOP); tar xzf ../../$(UPFILENAME); \
+	wget -N -nv -T10 -t3 -O LEEME.txt $(URL_LEEME)
+	@@echo Repacking
+	@@echo fix perms
+	@@find $(TMP_TARBALL_TOP) -name '*.gsm' -exec chmod 0644 {} \;
+	@@find $(TMP_TARBALL_TOP) -name '*.txt' -exec chmod 0644 {} \;
+	@@cd ../tarballs/asterisk-prompt-es-$(UPVERSION).tmp/; \
+	tar czf ../$(FILENAME) *
+	@@rm -rf ../tarballs/asterisk-prompt-es-$(UPVERSION).tmp
 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure




More information about the Pkg-voip-commits mailing list