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

lmamane at alioth.debian.org lmamane at alioth.debian.org
Fri Jul 29 16:30:06 UTC 2011


Author: lmamane
Date: Fri Jul 29 16:30:05 2011
New Revision: 9185

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

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

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

Added: asterisk-core-sounds/trunk/debian/asterisk-core-sounds-es.postinst
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-es.postinst?rev=9185&op=file
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-es.postinst (added)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-es.postinst Fri Jul 29 16:30:05 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/es asterisk-prompt-es \
+	    /usr/share/asterisk/sounds/es_MX_f_Allison 30
+	update-alternatives --install \
+	    /usr/share/asterisk/sounds/es_MX asterisk-prompt-es-mx \
+	    /usr/share/asterisk/sounds/es_MX_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-es.prerm
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/asterisk-core-sounds-es.prerm?rev=9185&op=file
==============================================================================
--- asterisk-core-sounds/trunk/debian/asterisk-core-sounds-es.prerm (added)
+++ asterisk-core-sounds/trunk/debian/asterisk-core-sounds-es.prerm Fri Jul 29 16:30:05 2011
@@ -1,0 +1,8 @@
+#! /bin/sh -e
+
+if [ "$1" = "remove" ]; then
+    update-alternatives --remove asterisk-prompt-es    /usr/share/asterisk/sounds/es_MX_f_Allison
+    update-alternatives --remove asterisk-prompt-es-mx /usr/share/asterisk/sounds/es_MX_f_Allison
+fi
+
+#DEBHELPER#

Modified: asterisk-core-sounds/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-core-sounds/trunk/debian/control?rev=9185&op=diff
==============================================================================
--- asterisk-core-sounds/trunk/debian/control (original)
+++ asterisk-core-sounds/trunk/debian/control Fri Jul 29 16:30:05 2011
@@ -69,10 +69,27 @@
  package contains the core part of that collection in English (US, by
  Allison Smith) in WAV format (8Khz, mono).
 
+Package: asterisk-core-sounds-es
+Architecture: all
+Depends: ${misc:Depends}, asterisk-core-sounds-es-gsm | asterisk-core-sounds-es-g722 | asterisk-core-sounds-es-wav
+Conflicts: asterisk-core-sounds-es-gsm ( << 1.4.21-2 )
+Provides: asterisk-prompt-es, asterisk-prompt-es-mx
+Description: asterisk PBX sound files - Mexican Spanish
+ 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 Mexican Spanish, by USA
+ voice actress Allison Smith, is contained in various encodings in
+ packages asterisk-core-sounds-es-*; this package registers these as
+ an alternative to provide the default "es" (Spanish) and "es_MX"
+ (Mexican Spanish) sounds.
+
 Package: asterisk-core-sounds-es-g722
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: asterisk-core-sounds-es-gsm
+Recommends: asterisk-core-sounds-es
 Description: asterisk PBX sound files - Spanish/g722
  Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
  sense, middleware between Internet and telephony channels on the bottom,
@@ -85,7 +102,7 @@
 Package: asterisk-core-sounds-es-gsm
 Architecture: all
 Depends: ${misc:Depends}
-Provides: asterisk-prompt-es, asterisk-prompt-es-mx
+Recommends: asterisk-core-sounds-es
 Description: asterisk PBX sound files - Spanish/gsm
  Asterisk is an Open Source PBX and telephony toolkit.  It is, in a
  sense, middleware between Internet and telephony channels on the bottom,
@@ -102,7 +119,7 @@
 Package: asterisk-core-sounds-es-wav
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: asterisk-core-sounds-es-gsm
+Recommends: asterisk-core-sounds-es
 Description: asterisk PBX sound files - Spanish/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