[Pkg-voip-commits] r9183 - in /asterisk-core-sounds/trunk/debian: asterisk-core-sounds-en-gsm.postinst asterisk-core-sounds-en-gsm.preinst asterisk-core-sounds-en-gsm.prerm asterisk-core-sounds-en.postinst asterisk-core-sounds-en.prerm changelog control

lmamane at alioth.debian.org lmamane at alioth.debian.org
Fri Jul 29 13:14:38 UTC 2011


Author: lmamane
Date: Fri Jul 29 13:14:37 2011
New Revision: 9183

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=9183
Log:
Move asterisk-prompt-en alternative handline to common asterisk-core-sounds-en package

Added:
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.preinst
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst
      - copied, changed from r9182, asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.postinst
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.prerm
      - copied, changed from r9182, asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.prerm
Removed:
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.postinst
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.prerm
Modified:
    asterisk-core-sounds/trunk/debian/changelog
    asterisk-core-sounds/trunk/debian/control

Added: asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.preinst
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.preinst?rev=9183&op=file
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.preinst (added)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.preinst Fri Jul 29 13:14:37 2011
@@ -1,0 +1,9 @@
+#! /bin/sh -e
+
+# The alternatives are now handled by asterisk-core-sounds-en
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" -le 1.4.21-1; then
+    update-alternatives --remove asterisk-prompt-en    /usr/share/asterisk/sounds/en_US_f_Allison
+    update-alternatives --remove asterisk-prompt-en-us /usr/share/asterisk/sounds/en_US_f_Allison
+fi
+
+#DEBHELPER#

Copied: asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst (from r9182, asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.postinst)
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst?rev=9183&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.postinst (original)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst Fri Jul 29 13:14:37 2011
@@ -11,17 +11,14 @@
 #          <failed-install-package> <version> `removing'
 #          <conflicting-package> <version>
 
-SYMLINK=/usr/share/asterisk/sounds/en
-TARGET=en_US_f_Allison
-
 case "$1" in
     configure)
 	update-alternatives --install \
 	    /usr/share/asterisk/sounds/en asterisk-prompt-en \
-	    /usr/share/asterisk/sounds/en_US_f_Allison 50
+	    /usr/share/asterisk/sounds/en_US_f_Allison 80
 	update-alternatives --install \
 	    /usr/share/asterisk/sounds/en_US asterisk-prompt-en-us \
-	    /usr/share/asterisk/sounds/en_US_f_Allison 50
+	    /usr/share/asterisk/sounds/en_US_f_Allison 80
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Copied: asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.prerm (from r9182, asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.prerm)
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.prerm?rev=9183&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en-gsm.prerm (original)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.prerm Fri Jul 29 13:14:37 2011
@@ -1,6 +1,8 @@
 #! /bin/sh -e
 
-update-alternatives --remove asterisk-prompt-en    /usr/share/asterisk/sounds/en_US_f_Allison
-update-alternatives --remove asterisk-prompt-en-us /usr/share/asterisk/sounds/en_US_f_Allison
+if [ "$1" = "remove" ]; then
+    update-alternatives --remove asterisk-prompt-en    /usr/share/asterisk/sounds/en_US_f_Allison
+    update-alternatives --remove asterisk-prompt-en-us /usr/share/asterisk/sounds/en_US_f_Allison
+fi
 
 #DEBHELPER#

Modified: asterisk-core-sounds/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/changelog?rev=9183&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/changelog (original)
+++ asterisk-core-sounds/trunk/debian/changelog Fri Jul 29 13:14:37 2011
@@ -1,8 +1,9 @@
 asterisk-core-sounds (1.4.21-2) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
+  [ Lionel Elie Mamane ]
+  * Allow any format (not only gsm) to install alternative
 
- -- Tzafrir Cohen <tzafrir at debian.org>  Thu, 19 May 2011 22:09:01 +0300
+ -- Lionel Elie Mamane <lmamane at debian.org>  Fri, 29 Jul 2011 14:47:41 +0200
 
 asterisk-core-sounds (1.4.21-1) unstable; urgency=low
 

Modified: asterisk-core-sounds/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/control?rev=9183&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/control (original)
+++ asterisk-core-sounds/trunk/debian/control Fri Jul 29 13:14:37 2011
@@ -7,13 +7,30 @@
 Standards-Version: 3.9.2.0
 Homepage: http://www.asterisk.org/
 
+Package: asterisk-core-sounds-en
+Architecture: all
+Depends: ${misc:Depends}, asterisk-core-sounds-en-gsm | asterisk-core-sounds-en-g722 | asterisk-core-sounds-en-wav
+Conflicts: asterisk-core-sounds-en-gsm ( << 1.4.21-2 )
+Provides: asterisk-prompt-en, asterisk-prompt-en-us
+Description: asterisk PBX sound files - English
+ Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
+ sense, middleware between Internet and telephony channels on the bottom,
+ and Internet and telephony applications at the top.
+ .
+ Asterisk includes a set of standard sound files in various
+ formats. The core part of that collection in US English, by voice
+ actress Allison Smith, is contained in various encodings in packages
+ asterisk-core-sounds-en-*; this package registers these as an
+ alternative to provide the default "en" (English) and "en-US" (USA
+ English) sounds.
+
 Package: asterisk-core-sounds-en-g722
 Architecture: all
 # For the moment we use the existing asterisk-sounds-main rather
 # than forcing the user to install our new package just to get new formats.
 # This should change on future versions.
 Depends: ${misc:Depends}
-Recommends: asterisk-core-sounds-en-gsm | asterisk-sounds-main ( >= 1.6.2.6)
+Recommends: asterisk-core-sounds-en-gsm | asterisk-sounds-main ( >= 1.6.2.6), asterisk-core-sounds-en
 Description: asterisk PBX sound files - English/g722
  Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
  sense, middleware between Internet and telephony channels on the bottom,
@@ -26,7 +43,7 @@
 Package: asterisk-core-sounds-en-gsm
 Architecture: all
 Depends: ${misc:Depends}
-Provides: asterisk-prompt-en, asterisk-prompt-en-us
+Recommends: asterisk-core-sounds-en
 Conflicts: asterisk-sounds-main
 Replaces: asterisk-sounds-main
 Description: asterisk PBX sound files - English/gsm
@@ -45,7 +62,7 @@
 Package: asterisk-core-sounds-en-wav
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: asterisk-core-sounds-en-gsm | asterisk-sounds-main ( >= 1.6.2.6)
+Recommends: asterisk-core-sounds-en-gsm | asterisk-sounds-main ( >= 1.6.2.6), asterisk-core-sounds-en
 Description: asterisk PBX sound files - English/wav
  Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
  sense, middleware between Internet and telephony channels on the bottom,




More information about the Pkg-voip-commits mailing list