Hello community,

here is the log from the commit of package postfix for openSUSE:Factory
checked in at Mon Aug 22 15:28:07 CEST 2011.



--------
--- postfix/postfix.changes     2011-08-18 11:35:15.000000000 +0200
+++ /mounts/work_src_done/STABLE/postfix/postfix.changes        2011-08-22 
11:33:02.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Aug 22 09:31:02 UTC 2011 - [email protected]
+
+- bnc#684304 - server:mail/postfix: Bugs in SuSEconfig chroot setup script
+- Aplly SASL_SOCKET_DIR patch
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  postfix-SuSE-SASL_SOCKET_DIR.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ postfix.spec ++++++
--- /var/tmp/diff_new_pack.NMmnee/_old  2011-08-22 15:27:53.000000000 +0200
+++ /var/tmp/diff_new_pack.NMmnee/_new  2011-08-22 15:27:53.000000000 +0200
@@ -21,7 +21,7 @@
 Name:           postfix
 Summary:        A fast, secure, and flexible mailer
 Version:        2.8.4
-Release:        5
+Release:        7
 License:        IBM Public License ..
 Group:          Productivity/Networking/Email/Servers
 Url:            http://www.postfix.org/
@@ -39,7 +39,6 @@
 Patch11:        %{name}-2.8.3-master.cf.patch
 Patch12:        %{name}-2.8.3-post-install.patch
 Patch20:        %{name}-vda-v10-2.8.3.patch
-Patch100:       postfix-SuSE-SASL_SOCKET_DIR.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 PreReq:         %insserv_prereq %fillup_prereq
 PreReq:         /usr/bin/getent
@@ -149,8 +148,6 @@
 %patch11 -p1
 %patch12 -p1
 %patch20 -p1
-# apply postfix-SUSE patches
-%patch100 -p0
 # ---------------------------------------------------------------------------
 
 %build

++++++ postfix-SuSE.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/postfix-SuSE/SuSEconfig.postfix 
new/postfix-SuSE/SuSEconfig.postfix
--- old/postfix-SuSE/SuSEconfig.postfix 2011-08-18 11:30:04.000000000 +0200
+++ new/postfix-SuSE/SuSEconfig.postfix 2011-08-22 11:29:28.000000000 +0200
@@ -91,6 +91,10 @@
 \tPlease check if postfix-mysql is installed and check for package mysql."
         fi
     fi
+    if [ "$(echo "$POSTFIX_SMTP_AUTH_SERVER" | tr 'A-Z' 'a-z' )" != "no" ]; 
then
+       SASL_SOCKET_DIR="/var/run/sasl2"
+       CHR_SASL_SOCKET_DIR="var/run/sasl2"
+    fi
     if [ "$(echo "$POSTFIX_CHROOT" | tr 'A-Z' 'a-z' )" != "yes" -a \
        "$(echo "$POSTFIX_UPDATE_CHROOT_JAIL" | tr 'A-Z' 'a-z' )" != "no" ]; 
then
        if [ -d etc ]; then
@@ -107,6 +111,12 @@
          fi
        fi
 
+       if [ -n "$CHR_SASL_SOCKET_DIR" ]; then
+         if grep "$PF_CHROOT"/$CHR_SASL_SOCKET_DIR /proc/mounts &> /dev/null; 
then
+           umount "$PF_CHROOT"/$CHR_SASL_SOCKET_DIR
+         fi
+       fi
+
        rm -rvf etc @lib@ usr var proc
     elif [ "$(echo "$POSTFIX_UPDATE_CHROOT_JAIL" | tr 'A-Z' 'a-z' )" != "no" 
]; then
        echo "checking postfix chroot environment..."
@@ -138,12 +148,21 @@
            fi
        fi
 
+       if [ "$(echo "$POSTFIX_SMTP_AUTH_SERVER" | tr 'A-Z' 'a-z' )" != "no" ]; 
then
+           if [ ! -d $CHR_SASL_SOCKET_DIR ]; then
+             mkdir -p $CHR_SASL_SOCKET_DIR
+           fi
+           if ! grep $CHR_SASL_SOCKET_DIR /proc/mounts &> /dev/null; then
+             mount -o bind $SASL_SOCKET_DIR "$PF_CHROOT"/$CHR_SASL_SOCKET_DIR
+           fi
+       fi
+
         # smtpd_tls_CApath
         CAPATH=`postconf -h smtpd_tls_CApath`
         if [ "$CAPATH" ]
         then
            cpifnewer "$CAPATH/*" ./$CAPATH
-          rsync -avH /etc/ssl/certs ./etc/ssl
+          rsync -avH --copy-unsafe-links /etc/ssl/certs ./etc/ssl
         fi
        # smtpd_tls_CAfile
        smtpd_tls_CAfile=`postconf -h smtpd_tls_CAfile`
@@ -180,8 +199,7 @@
        cpifnewer "/etc/sasl2/*" etc/sasl2
        cpifnewer "/usr/@lib@/sasl2/*" usr/@lib@/sasl2
        cpifnewer "/usr/@lib@/libsasl2*" usr/@lib@
-       mkdir -p var/run/sasl2
-       ln -f /var/run/sasl2/mux var/run/sasl2/mux
+
        # CYRUS
        mkdir -p var/lib/imap/socket/
        ln -f /var/lib/imap/socket/lmtp var/lib/imap/socket/lmtp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/postfix-SuSE/rc.postfix new/postfix-SuSE/rc.postfix
--- old/postfix-SuSE/rc.postfix 2011-04-10 08:59:58.000000000 +0200
+++ new/postfix-SuSE/rc.postfix 2011-08-22 11:29:28.000000000 +0200
@@ -28,6 +28,7 @@
 POSTFIX_BIN=/usr/sbin/postfix
 POSTCONF=/usr/sbin/postconf
 OPENSLP_BIN=/usr/bin/slptool
+PF_CHROOT=/var/spool/postfix
 print_defaults=/usr/bin/my_print_defaults
 
 test -x $POSTFIX_BIN || exit 5
@@ -61,7 +62,6 @@
 }
 
 chk_mysql_sock(){
-  PF_CHROOT="/var/spool/postfix"
   if [ -n "$($print_defaults mysqld)" ]; then
     MYSQL_SOCKET=$($print_defaults mysqld | grep -e '--socket[[:blank:]=]' | 
awk -F"=" '{print $2}')
     MYSQL_SOCKET_DIR=$(dirname $MYSQL_SOCKET)
@@ -86,6 +86,27 @@
   return $RET
 }
 
+chk_sasl_sock(){
+  SASL_SOCKET=/var/run/sasl2/mux
+  SASL_SOCKET_DIR=$(dirname $SASL_SOCKET)
+  CHR_SASL_SOCKET=${PF_CHROOT}${SASL_SOCKET}
+  CHR_SASL_SOCKET_DIR=$(dirname $CHR_SASL_SOCKET)
+  if  [ -S $SASL_SOCKET ]; then
+    if [ -d $CHR_SASL_SOCKET_DIR ]; then
+      if grep $CHR_SASL_SOCKET_DIR /proc/mounts &> /dev/null; then
+        RET=0
+      else
+        RET=4
+      fi
+    else
+      RET=2
+    fi
+  else
+    RET=1
+  fi
+  return $RET
+}
+
 # Shell functions sourced from /etc/rc.status:
 #      rc_check         check and set local and overall rc status
 #      rc_status        check and set local and overall rc status
@@ -147,6 +168,29 @@
                    rc_failed 1; rc_status -v; rc_exit;
                  }
                ;;
+               esac
+         fi
+         if [ "$(echo "$POSTFIX_SMTP_AUTH_SERVER" | tr 'A-Z' 'a-z' )" != "no" 
]; then
+               chk_sasl_sock
+               case $? in
+                 1)
+warn_user "\tsaslauthd not started\n\
+\tPlease check if saslauthd is started on boot"
+                 rc_failed 7; rc_status -v; rc_exit;
+               ;;
+                 2)
+warn_user "\t$CHR_SASL_SOCKET_DIR does not exist!!\n\
+\tThis should not happen!\n\
+\tPlease run SuSEconfig."
+                 rc_failed 6; rc_status -v; rc_exit;
+               ;;
+                 4)
+                 /bin/mount -o bind $SASL_SOCKET_DIR $CHR_SASL_SOCKET_DIR &> 
/dev/null
+                 [ $? -ne 0 ] && {
+                   echo -n " ... can not mount $SASL_SOCKET_DIR to 
$SASL_SOCKET_DIR"
+                   rc_failed 1; rc_status -v; rc_exit;
+                 }
+               ;;
                esac
          fi
        fi


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to