[Pkg-voip-commits] r8222 - in /asterisk-prompt-fr-proformatique/trunk/debian: changelog postinst postrm
tzafrir-guest at alioth.debian.org
tzafrir-guest at alioth.debian.org
Fri Mar 19 21:51:43 UTC 2010
Author: tzafrir-guest
Date: Fri Mar 19 21:51:42 2010
New Revision: 8222
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8222
Log:
May provide sounds/fr through a symlink.
Modified:
asterisk-prompt-fr-proformatique/trunk/debian/changelog
asterisk-prompt-fr-proformatique/trunk/debian/postinst
asterisk-prompt-fr-proformatique/trunk/debian/postrm
Modified: asterisk-prompt-fr-proformatique/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-fr-proformatique/trunk/debian/changelog?rev=8222&op=diff
==============================================================================
--- asterisk-prompt-fr-proformatique/trunk/debian/changelog (original)
+++ asterisk-prompt-fr-proformatique/trunk/debian/changelog Fri Mar 19 21:51:42 2010
@@ -2,14 +2,14 @@
* Add myself as maintainer.
* Move files to /usr/share/asterisksounds/fr_FR_proformatique .
- * 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).
* Fix copyrights file.
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Mon, 15 Mar 2010 13:52:39 +0200
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Fri, 19 Mar 2010 23:47:43 +0200
asterisk-prompt-fr-proformatique (20070706-1.4-3) UNRELEASED; urgency=low
Modified: asterisk-prompt-fr-proformatique/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-fr-proformatique/trunk/debian/postinst?rev=8222&op=diff
==============================================================================
--- asterisk-prompt-fr-proformatique/trunk/debian/postinst (original)
+++ asterisk-prompt-fr-proformatique/trunk/debian/postinst Fri Mar 19 21:51:42 2010
@@ -2,36 +2,17 @@
set -e
-PACKAGE=asterisk-prompt-fr-proformatique
-NAME=asterisk-sounds-fr
SYMLINK=/usr/share/asterisk/sounds/fr
-TARGET=/usr/share/asterisk/sounds/fr_FR_Proformatique
+TARGET=fr_FR_Proformatique
case "$1" in
configure)
- if dpkg --compare-versions "$2" lt 20070706-1.4-2; then
- for d in dictate digits letters phonetic; do
- for e in "/usr/share/asterisk/sounds/${d}/fr" "/usr/share/asterisk/sounds/fr/${d}"; do
- if ! [ -L "${e}" ] && [ -d "${e}" ]; then
- rmdir --ignore-fail-on-non-empty "${e}"
- fi
- done
- done
- for d in dictate digits letters phonetic; do
- if ! [ -e "/usr/share/asterisk/sounds/fr/${d}" ]; then
- ln -s "../${d}/fr" "/usr/share/asterisk/sounds/fr/${d}"
- fi
- done
- fi
- 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 60
+ 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
;;
esac
Modified: asterisk-prompt-fr-proformatique/trunk/debian/postrm
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-fr-proformatique/trunk/debian/postrm?rev=8222&op=diff
==============================================================================
--- asterisk-prompt-fr-proformatique/trunk/debian/postrm (original)
+++ asterisk-prompt-fr-proformatique/trunk/debian/postrm Fri Mar 19 21:51:42 2010
@@ -2,18 +2,13 @@
set -e
-case "$1" in
- abort-upgrade)
- if dpkg --compare-versions "$2" lt-nl 20070706-1.4-2; then
- for d in dictate digits letters phonetic; do
- if ! [ -e "/usr/share/asterisk/sounds/${d}/fr" ]; then
- ln -s "../fr/${d}" "/usr/share/asterisk/sounds/${d}/fr"
- fi
- done
- fi
- ;;
+SYMLINK=/usr/share/asterisk/sounds/fr
+TARGET=fr_FR_Proformatique
-esac
+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