[Pkg-cyrus-sasl2-commits] r234 - in /cyrus-sasl-2.1/trunk/debian: changelog sasl2-bin.postinst

fabbe at users.alioth.debian.org fabbe at users.alioth.debian.org
Fri Jun 8 09:57:01 UTC 2007


Author: fabbe
Date: Fri Jun  8 09:57:00 2007
New Revision: 234

URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=234
Log:
In sasl2-bin's postinst, create the run directory if a statoverride is being created.

Modified:
    cyrus-sasl-2.1/trunk/debian/changelog
    cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst

Modified: cyrus-sasl-2.1/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/changelog?rev=234&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/changelog (original)
+++ cyrus-sasl-2.1/trunk/debian/changelog Fri Jun  8 09:57:00 2007
@@ -12,8 +12,11 @@
     debian/rules, debian/sasl2-bin.postrm: Introduce Debconf prompt to ask
     for permission to remove /etc/sasldb2 on package purge, with fallback
     to not remove it when Debconf is not present. (Closes: #333416)
-
- -- Fabian Fagerholm <fabbe at debian.org>  Fri,  8 Jun 2007 12:49:34 +0300
+  * debian/sasl2-bin.postinst: Before creating the statoverride for the run
+    directory, create it -- but only if the statoverride wasn't present
+    already. The init script will recreate the directory if it's not there.
+
+ -- Fabian Fagerholm <fabbe at debian.org>  Fri,  8 Jun 2007 12:54:22 +0300
 
 cyrus-sasl2 (2.1.22.dfsg1-11) unstable; urgency=low
 

Modified: cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst?rev=234&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst (original)
+++ cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst Fri Jun  8 09:57:00 2007
@@ -14,10 +14,12 @@
 
 case "$1" in
 	configure)
-		# Create a statoverride for the saslauthd run directory,
+		# Create a statoverride for the default saslauthd run directory,
 		# unless one already exists
 		if ! dpkg-statoverride --list $FALLBACK_RUN_DIR >/dev/null 2>&1; then
-			dpkg-statoverride --update --add root sasl 710 /var/run/saslauthd
+			install -d --owner="root" --group="sasl" --mode="710" \
+				$FALLBACK_RUN_DIR
+			dpkg-statoverride --update --add root sasl 710 $FALLBACK_RUN_DIR
 		fi
 
 		# Create an empty sasldb file, unless one already exists




More information about the Pkg-cyrus-sasl2-commits mailing list