[Pkg-voip-commits] r2492 - asterisk/branches/experimental/debian

Tzafrir Cohen tzafrir-guest at costa.debian.org
Fri Oct 6 16:43:15 UTC 2006


Author: tzafrir-guest
Date: 2006-10-06 16:43:15 +0000 (Fri, 06 Oct 2006)
New Revision: 2492

Modified:
   asterisk/branches/experimental/debian/changelog
   asterisk/branches/experimental/debian/rules
Log:
* Setting version number to something smaller than 1.4.0 (increasing it 
  is always simpler than decreasing later on)
* A functioning get-orig-sourse . I suppose I'll soon copy the 1.2 rules 
  as well to get a funcitoning package.


Modified: asterisk/branches/experimental/debian/changelog
===================================================================
--- asterisk/branches/experimental/debian/changelog	2006-10-06 16:40:28 UTC (rev 2491)
+++ asterisk/branches/experimental/debian/changelog	2006-10-06 16:43:15 UTC (rev 2492)
@@ -1,7 +1,8 @@
-asterisk (1:1.4.0~beta2.dfsg-1) UNRELEASED; urgency=low
+asterisk (1:1.3.99~beta2.dfsg-1) UNRELEASED; urgency=low
 
-  * (NOT RELEASED YET) New upstream release
-  * Sandbox to start playing with 1.4, it uses autotools :-), it also uses ASTDATADIR :-) :-)
+  * (NOT RELEASED YET) New upstream release (1.4 beta)
+  * Sandbox to start playing with 1.4, it uses autotools :-), 
+    it also uses ASTDATADIR :-) :-)
   * need to understand this menuselect and how to encorporate into debian.
   * need to discuss with upstream iLBC conflict with GPL
 

Modified: asterisk/branches/experimental/debian/rules
===================================================================
--- asterisk/branches/experimental/debian/rules	2006-10-06 16:40:28 UTC (rev 2491)
+++ asterisk/branches/experimental/debian/rules	2006-10-06 16:43:15 UTC (rev 2492)
@@ -12,3 +12,35 @@
 COMMON_CONFIGURE_FLAGS = --data-dir=/usr/share/asterisk
 # DEB_CONFIGURE_EXTRA_FLAGS = 
 
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+		    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+# For the moment, don't trust UPVERSION parsing from the changelog.
+# Sanity is to return on 1.4.0 .
+#UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
+UPVERSION=1.4.0-beta2
+
+FILENAME := asterisk_$(UPVERSION).dfsg.orig.tar.gz
+UPFILENAME := asterisk_$(UPVERSION).orig.tar.gz
+URL := http://ftp2.digium.com/pub/asterisk/releases/asterisk-$(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 $(UPFILENAME) from $(URL) ...
+	@@wget -N -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL)
+	@@echo Repacking as DFSG-free...
+	@@mkdir -p ../tarballs/asterisk-$(UPVERSION).tmp/
+	@@cd ../tarballs/asterisk-$(UPVERSION).tmp ; \
+	tar xfz ../$(UPFILENAME) 
+	@@find ../tarballs/asterisk-$(UPVERSION).tmp -type f -name 'fpm-*.mp3'|xargs -r rm 
+	@@rm -rf ../tarballs/asterisk-$(UPVERSION).tmp/asterisk-$(UPVERSION)/codecs/ilbc 
+	@@rm -rf ../tarballs/asterisk-$(UPVERSION).tmp/asterisk-$(UPVERSION)/contrib/firmware/
+	@@cd ../tarballs/asterisk-$(UPVERSION).tmp ; \
+	tar cfz ../$(FILENAME) *
+	@@echo Cleaning up...
+	@@$(RM) -rf ../tarballs/asterisk-$(UPVERSION).tmp/
+




More information about the Pkg-voip-commits mailing list