[Pkg-voip-commits] r5004 - in /asterisk/trunk/debian: asterisk.dirs asterisk.links asterisk.postinst asterisk.prerm

paravoid at alioth.debian.org paravoid at alioth.debian.org
Mon Dec 3 16:36:05 UTC 2007


Author: paravoid
Date: Mon Dec  3 16:36:04 2007
New Revision: 5004

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5004
Log:
Don't provide /usr/local/share/asterisk inside the .deb but create it on postinst instead (policy 9.1.2)

Added:
    asterisk/trunk/debian/asterisk.prerm
Modified:
    asterisk/trunk/debian/asterisk.dirs
    asterisk/trunk/debian/asterisk.links
    asterisk/trunk/debian/asterisk.postinst

Modified: asterisk/trunk/debian/asterisk.dirs
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.dirs?rev=5004&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.dirs (original)
+++ asterisk/trunk/debian/asterisk.dirs Mon Dec  3 16:36:04 2007
@@ -19,5 +19,3 @@
 var/spool/asterisk/tmp
 var/spool/asterisk/voicemail
 var/spool/asterisk/outgoing
-
-usr/local/share/asterisk/sounds/custom

Modified: asterisk/trunk/debian/asterisk.links
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.links?rev=5004&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.links (original)
+++ asterisk/trunk/debian/asterisk.links Mon Dec  3 16:36:04 2007
@@ -1,3 +1,3 @@
 usr/share/man/man8/asterisk.8		usr/share/man/man8/rasterisk.8
-usr/local/share/asterisk/sounds/custom	usr/share/asterisk/sounds/custom
+usr/local/share/asterisk/sounds		usr/share/asterisk/sounds/custom
 var/lib/asterisk/sounds/custom		usr/share/asterisk/sounds/recordings

Modified: asterisk/trunk/debian/asterisk.postinst
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.postinst?rev=5004&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.postinst (original)
+++ asterisk/trunk/debian/asterisk.postinst Mon Dec  3 16:36:04 2007
@@ -58,6 +58,14 @@
 		fi
 	done
 
+	# Create /usr/local directory; policy 9.1.2
+	if [ ! -e /usr/local/share/asterisk/sounds ]; then
+		if mkdir -p /usr/local/share/asterisk/sounds 2>/dev/null ; then
+			chown root:staff /usr/local/share/asterisk/sounds
+			chmod 2775 /usr/local/share/asterisk/sounds
+		fi
+	fi
+
 	### this is done here in case asterisk-config was installed/upgraded first
 
 	set +e # ignore errors temporarily

Added: asterisk/trunk/debian/asterisk.prerm
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.prerm?rev=5004&op=file
==============================================================================
--- asterisk/trunk/debian/asterisk.prerm (added)
+++ asterisk/trunk/debian/asterisk.prerm Mon Dec  3 16:36:04 2007
@@ -1,0 +1,6 @@
+#! /bin/sh -e
+
+rmdir /usr/local/share/asterisk/sounds 2>/dev/null || true
+rmdir /usr/local/share/asterisk        2>/dev/null || true
+
+#DEBHELPER#




More information about the Pkg-voip-commits mailing list