[Pkg-voip-commits] r8221 - in /asterisk-prompt-fr-armelle/trunk/debian: changelog postinst postrm

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Fri Mar 19 21:35:19 UTC 2010


Author: tzafrir-guest
Date: Fri Mar 19 21:35:19 2010
New Revision: 8221

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8221
Log:
May provide sounds/fr through a symlink.

Added:
    asterisk-prompt-fr-armelle/trunk/debian/postrm
Modified:
    asterisk-prompt-fr-armelle/trunk/debian/changelog
    asterisk-prompt-fr-armelle/trunk/debian/postinst

Modified: asterisk-prompt-fr-armelle/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-fr-armelle/trunk/debian/changelog?rev=8221&op=diff
==============================================================================
--- asterisk-prompt-fr-armelle/trunk/debian/changelog (original)
+++ asterisk-prompt-fr-armelle/trunk/debian/changelog Fri Mar 19 21:35:19 2010
@@ -2,13 +2,13 @@
 
   * Add myself as maintainer.
   * Move files to /usr/share/asterisksounds/fr_FR_Armelle .
-  * Can provide sounds/fr through alternatives.
+  * May provide sounds/fr through a symlink.
   * Conflict with older packages that have the dir sounds/fr .
   * But no longer conflict with 'asterisk-prompt-fr' generally.
   * Remove old Asterisk 1.2 compatibility symlinks.
   * Standards version -> 3.8.4 (No change needed). 
 
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Mon, 15 Mar 2010 12:29:00 +0200
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Fri, 19 Mar 2010 23:32:52 +0200
 
 asterisk-prompt-fr-armelle (20070613-2) unstable; urgency=low
 

Modified: asterisk-prompt-fr-armelle/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-fr-armelle/trunk/debian/postinst?rev=8221&op=diff
==============================================================================
--- asterisk-prompt-fr-armelle/trunk/debian/postinst (original)
+++ asterisk-prompt-fr-armelle/trunk/debian/postinst Fri Mar 19 21:35:19 2010
@@ -11,23 +11,18 @@
 #          <failed-install-package> <version> `removing'
 #          <conflicting-package> <version>
 
-PACKAGE=asterisk-prompt-fr-armelle
-NAME=asterisk-sounds-fr
 SYMLINK=/usr/share/asterisk/sounds/fr
-TARGET=/usr/share/asterisk/sounds/fr_FR_Armelle
+TARGET=fr_FR_Armelle
 
 
 case "$1" in
     configure)
-        if [ ! -L $SYMLINK ] && [ -d $SYMLINK ]; then
-	    # Directory already exists. And not an alternative.
-	    # Don't register alternative.
-	    # FIXME: use debconf
-	    # FIXME: what if there's a link elsewhere?
-	    echo "Directory $SYMLINK already exists. Please remove it"
-	    echo "When done, run: dpkg-reconfigure $PACKAGE"
-	else
-	    update-alternatives --install $SYMLINK $NAME $TARGET 50
+        if [ ! -d "$SYMLINK" ]; then
+	    if [ -L "$SYMLINK" ]; then
+		# dandling symlink? symlink to a file? kill it
+		rm -f "$SYMLINK"
+	    fi
+	    ln -s "$TARGET" "$SYMLINK"
 	fi
     ;;
 

Added: asterisk-prompt-fr-armelle/trunk/debian/postrm
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-fr-armelle/trunk/debian/postrm?rev=8221&op=file
==============================================================================
--- asterisk-prompt-fr-armelle/trunk/debian/postrm (added)
+++ asterisk-prompt-fr-armelle/trunk/debian/postrm Fri Mar 19 21:35:19 2010
@@ -1,0 +1,11 @@
+#! /bin/sh -e
+
+SYMLINK=/usr/share/asterisk/sounds/fr
+TARGET=fr_FR_Armelle
+
+if [ ! -d "$SYMLINK" ] && [ -L "$SYMLINK" ]; then
+    # dandling symlink? symlink to a file? kill it
+    rm -f "$SYMLINK"
+fi
+
+#DEBHELPER#




More information about the Pkg-voip-commits mailing list