[Pkg-voip-commits] r8517 - in /asterisk-sounds/asterisk-moh-opsound/debian: changelog control rules watch
tzafrir at alioth.debian.org
tzafrir at alioth.debian.org
Sat Jun 19 18:44:02 UTC 2010
Author: tzafrir
Date: Sat Jun 19 18:43:59 2010
New Revision: 8517
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8517
Log:
* Single source tarball (generated by get-orig-source).
* A watch file (reporting only. Not for downloading).
* A @debian.org address.
Added:
asterisk-sounds/asterisk-moh-opsound/debian/watch
Modified:
asterisk-sounds/asterisk-moh-opsound/debian/changelog
asterisk-sounds/asterisk-moh-opsound/debian/control
asterisk-sounds/asterisk-moh-opsound/debian/rules
Modified: asterisk-sounds/asterisk-moh-opsound/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-sounds/asterisk-moh-opsound/debian/changelog?rev=8517&op=diff
==============================================================================
--- asterisk-sounds/asterisk-moh-opsound/debian/changelog (original)
+++ asterisk-sounds/asterisk-moh-opsound/debian/changelog Sat Jun 19 18:43:59 2010
@@ -2,4 +2,4 @@
* Initial release. (Closes: #571167)
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Sun, 21 Feb 2010 10:43:02 +0200
+ -- Tzafrir Cohen <tzafrir at debian.org> Sat, 19 Jun 2010 21:39:48 +0300
Modified: asterisk-sounds/asterisk-moh-opsound/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-sounds/asterisk-moh-opsound/debian/control?rev=8517&op=diff
==============================================================================
--- asterisk-sounds/asterisk-moh-opsound/debian/control (original)
+++ asterisk-sounds/asterisk-moh-opsound/debian/control Sat Jun 19 18:43:59 2010
@@ -2,13 +2,12 @@
Section: comm
Priority: extra
Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
-Uploaders: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+Uploaders: Tzafrir Cohen <tzafrir at debian.org>
Build-Depends: debhelper (>= 7)
Standards-Version: 3.8.4
Homepage: http://www.asterisk.org/
Package: asterisk-moh-opsound-g722
-Section: comm
Architecture: all
Depends: ${misc:Depends}
Description: asterisk extra sound files - English/g722
@@ -21,7 +20,6 @@
(mildly compressed wide-band codec).
Package: asterisk-moh-opsound-gsm
-Section: comm
Architecture: all
Depends: ${misc:Depends}
Description: asterisk extra sound files - English/gsm
@@ -34,7 +32,6 @@
(Compressed. Takes relatively little space. playable with sox).
Package: asterisk-moh-opsound-wav
-Section: comm
Architecture: all
Depends: ${misc:Depends}
Description: asterisk extra sound files - English/wav
Modified: asterisk-sounds/asterisk-moh-opsound/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-sounds/asterisk-moh-opsound/debian/rules?rev=8517&op=diff
==============================================================================
--- asterisk-sounds/asterisk-moh-opsound/debian/rules (original)
+++ asterisk-sounds/asterisk-moh-opsound/debian/rules Sat Jun 19 18:43:59 2010
@@ -4,8 +4,11 @@
PACKAGE=$(shell sed -e '2,$$d' -e 's/ .*//' debian/changelog)
VERSION=$(shell sed -e '2,$$d' -e 's/^[^(]*(\([^-]*\)-.*)*)*/\1/' debian/changelog)
TMPDIR=tmp
-# or . if you prefer
-TARGET_DIR=..
+FORMATS=gsm g722 wav
+TARGET_DIR=.
+
+PKGNAME=$(PACKAGE)-$(VERSION)
+PKGDIR=$(TMPDIR)/$(PKGNAME)
%:
dh $@
@@ -16,13 +19,23 @@
@echo version: $(VERSION)
get-orig-source:
- cd $(TARGET_DIR); for format in gsm wav g722; do \
- wget -q -c $(BASE_URL)/$(PACKAGE)-$$format-$(VERSION).tar.gz; \
- ln -sf $(PACKAGE)-$$format-$(VERSION).tar.gz \
- $(PACKAGE)_$(VERSION).orig-$$format.tar.gz; \
+ rm -rf $(PKGDIR)
+ mkdir -p $(PKGDIR)
+ set -e ; \
+ cd $(TMPDIR); do for format in $(FORMATS); do \
+ tarball="$(PACKAGE)-$$format-$(VERSION).tar.gz"; \
+ wget -q -c $(BASE_URL)/$$tarball; \
+ mkdir $(PKGNAME)/$$format; \
+ cd $(PKGNAME)/$$format; \
+ tar xzf ../../$$tarball; \
+ cd ../..; \
+ done
+ # Remove tarballs: only after a successful download:
+ set -e ; \
+ cd $(TMPDIR); do for format in $(FORMATS); do \
+ tarball="$(PACKAGE)-$$format-$(VERSION).tar.gz"; \
+ $(RM) -f $$tarball; \
done
- # dummy empty base tarball:
- mkdir -p $(TMPDIR)/$(PACKAGE)-$(VERSION)
tar czf $(TARGET_DIR)/$(PACKAGE)_$(VERSION).orig.tar.gz \
-C $(TMPDIR) $(PACKAGE)-$(VERSION)
rm -rf $(TMPDIR)
Added: asterisk-sounds/asterisk-moh-opsound/debian/watch
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-sounds/asterisk-moh-opsound/debian/watch?rev=8517&op=file
==============================================================================
--- asterisk-sounds/asterisk-moh-opsound/debian/watch (added)
+++ asterisk-sounds/asterisk-moh-opsound/debian/watch Sat Jun 19 18:43:59 2010
@@ -1,0 +1,8 @@
+version=3
+# BIG NOTE: this watch file should only be used for testing of a new version
+# Use './debian/rules get-orig-source' to generate the unified tarball
+opts=dversionmangle=s/\-gsm//; \
+ http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-moh-opsound-gsm-(.*)\.tar\.gz\
+ debian
+
+
More information about the Pkg-voip-commits
mailing list