[Pkg-voip-commits] r9184 - /asterisk-core-sounds/trunk/debian/

lmamane at alioth.debian.org lmamane at alioth.debian.org
Fri Jul 29 13:55:06 UTC 2011


Author: lmamane
Date: Fri Jul 29 13:55:06 2011
New Revision: 9184

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

Added:
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr-gsm.preinst
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.postinst
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.prerm
Removed:
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr-gsm.postinst
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr-gsm.prerm
Modified:
    asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst
    asterisk-core-sounds/trunk/debian/changelog
    asterisk-core-sounds/trunk/debian/control

Modified: asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst?rev=9184&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst (original)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-en.postinst Fri Jul 29 13:55:06 2011
@@ -15,10 +15,10 @@
     configure)
 	update-alternatives --install \
 	    /usr/share/asterisk/sounds/en asterisk-prompt-en \
-	    /usr/share/asterisk/sounds/en_US_f_Allison 80
+	    /usr/share/asterisk/sounds/en_US_f_Allison 50
 	update-alternatives --install \
 	    /usr/share/asterisk/sounds/en_US asterisk-prompt-en-us \
-	    /usr/share/asterisk/sounds/en_US_f_Allison 80
+	    /usr/share/asterisk/sounds/en_US_f_Allison 50
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

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

Added: asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.postinst
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.postinst?rev=9184&op=file
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.postinst (added)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.postinst Fri Jul 29 13:55:06 2011
@@ -1,0 +1,40 @@
+#! /bin/sh
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+
+case "$1" in
+    configure)
+	update-alternatives --install \
+	    /usr/share/asterisk/sounds/fr asterisk-prompt-fr \
+	    /usr/share/asterisk/sounds/fr_CA_f_June 20
+	update-alternatives --install \
+	    /usr/share/asterisk/sounds/fr_CA asterisk-prompt-fr-ca \
+	    /usr/share/asterisk/sounds/fr_CA_f_Allison 50
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.prerm
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.prerm?rev=9184&op=file
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.prerm (added)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-fr.prerm Fri Jul 29 13:55:06 2011
@@ -1,0 +1,8 @@
+#! /bin/sh -e
+
+if [ "$1" = "remove" ]; then
+    update-alternatives --remove asterisk-prompt-fr    /usr/share/asterisk/sounds/fr_CA_f_June
+    update-alternatives --remove asterisk-prompt-fr-ca /usr/share/asterisk/sounds/fr_CA_f_June
+fi
+
+#DEBHELPER#

Modified: asterisk-core-sounds/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/changelog?rev=9184&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/changelog (original)
+++ asterisk-core-sounds/trunk/debian/changelog Fri Jul 29 13:55:06 2011
@@ -1,7 +1,7 @@
 asterisk-core-sounds (1.4.21-2) UNRELEASED; urgency=low
 
   [ Lionel Elie Mamane ]
-  * Allow any format (not only gsm) to install alternative
+  * Allow any format (not only gsm) to install alternative for language
 
  -- Lionel Elie Mamane <lmamane at debian.org>  Fri, 29 Jul 2011 14:47:41 +0200
 

Modified: asterisk-core-sounds/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/control?rev=9184&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/control (original)
+++ asterisk-core-sounds/trunk/debian/control Fri Jul 29 13:55:06 2011
@@ -21,7 +21,7 @@
  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
+ alternative to provide the default "en" (English) and "en_US" (USA
  English) sounds.
 
 Package: asterisk-core-sounds-en-g722
@@ -30,7 +30,7 @@
 # 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), asterisk-core-sounds-en
+Recommends: 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,
@@ -55,14 +55,11 @@
  package contains the core part of that collection in English (US, by
  Allison Smith) in raw gsm-fr format (Compressed. Takes relatively little
  space. playable with sox).
- .
- This package also provides the 'en' and 'en_US' sound directories through
- alternatives and hence is required by packages of other formats.
 
 Package: asterisk-core-sounds-en-wav
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: asterisk-core-sounds-en-gsm | asterisk-sounds-main ( >= 1.6.2.6), asterisk-core-sounds-en
+Recommends: 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,
@@ -115,10 +112,27 @@
  package contains the core part of that collection in Spanish (US, by
  Allison Smith) in WAV format (8Khz, mono).
 
+Package: asterisk-core-sounds-fr
+Architecture: all
+Depends: ${misc:Depends}, asterisk-core-sounds-fr-gsm | asterisk-core-sounds-fr-g722 | asterisk-core-sounds-fr-wav
+Conflicts: asterisk-core-sounds-fr-gsm ( << 1.4.21-2 )
+Provides: asterisk-prompt-fr, asterisk-prompt-fr-ca
+Description: asterisk PBX sound files - Canadian French
+ 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 Canadian French, by voice
+ actress June Wallack, is contained in various encodings in packages
+ asterisk-core-sounds-fr-*; this package registers these as an
+ alternative to provide the default "fr" (French) and "fr_CA" (Canadian
+ French) sounds.
+
 Package: asterisk-core-sounds-fr-g722
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: asterisk-core-sounds-fr-gsm
+Recommends: asterisk-core-sounds-fr
 Description: asterisk PBX sound files - French/g722
  Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
  sense, middleware between Internet and telephony channels on the bottom,
@@ -131,7 +145,7 @@
 Package: asterisk-core-sounds-fr-gsm
 Architecture: all
 Depends: ${misc:Depends}
-Provides: asterisk-prompt-fr, asterisk-prompt-fr-ca
+Recommends: asterisk-core-sounds-fr
 Description: asterisk PBX sound files - French/gsm
  Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
  sense, middleware between Internet and telephony channels on the bottom,
@@ -141,14 +155,11 @@
  package contains the core part of that collection in French (Canada, by
  June Wallack) in raw gsm-fr format (Compressed. Takes relatively little
  space. playable with sox).
- .
- This package also provides the 'fr' and 'fr_CA' sound directories through
- alternatives and hence is required by packages of other formats.
 
 Package: asterisk-core-sounds-fr-wav
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: asterisk-core-sounds-fr-gsm
+Recommends: asterisk-core-sounds-fr
 Description: asterisk PBX sound files - French/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