[csw-devel] SF.net SVN: gar:[14867] csw/mgar/pkg/sendmail/trunk

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Thu Jun 23 18:49:12 CEST 2011


Revision: 14867
          http://gar.svn.sourceforge.net/gar/?rev=14867&view=rev
Author:   bonivart
Date:     2011-06-23 16:49:12 +0000 (Thu, 23 Jun 2011)

Log Message:
-----------
sendmail/trunk: fix ownership and perms of client pid file

Modified Paths:
--------------
    csw/mgar/pkg/sendmail/trunk/Makefile
    csw/mgar/pkg/sendmail/trunk/files/cswsendmail

Modified: csw/mgar/pkg/sendmail/trunk/Makefile
===================================================================
--- csw/mgar/pkg/sendmail/trunk/Makefile	2011-06-23 16:41:47 UTC (rev 14866)
+++ csw/mgar/pkg/sendmail/trunk/Makefile	2011-06-23 16:49:12 UTC (rev 14867)
@@ -116,6 +116,7 @@
 PROTOTYPE_FILES_1   = /var/opt/csw/spool/clientmqueue
 PROTOTYPE_USER_1    = smmsp
 PROTOTYPE_GROUP_1   = smmsp
+PROTOTYPE_PERMS_1   = 0750
 
 CONFIGURE_SCRIPTS   = custom
 BUILD_SCRIPTS       = custom

Modified: csw/mgar/pkg/sendmail/trunk/files/cswsendmail
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/cswsendmail	2011-06-23 16:41:47 UTC (rev 14866)
+++ csw/mgar/pkg/sendmail/trunk/files/cswsendmail	2011-06-23 16:49:12 UTC (rev 14867)
@@ -5,6 +5,7 @@
 #
 #ident	"@(#)sendmail	1.19	01/12/05 SMI"
 # Modified for CSW by Alex Moore 01/01/2004
+# Modified for CSW by Peter Bonivart 2011-06-23
 
 # Magic comments for use with cswinitsmf
 #AUTOENABLE no
@@ -41,6 +42,11 @@
 			/usr/bin/mkdir -pm 0750 /var/opt/csw/spool/mqueue
 			/usr/bin/chown root:bin /var/opt/csw/spool/mqueue
 		fi
+		if [ ! -f $CLIENT_PID_FILE ]; then
+			/usr/bin/touch $CLIENT_PID_FILE
+			/usr/bin/chown smmsp:smmsp $CLIENT_PID_FILE
+			/usr/bin/chmod 0600 $CLIENT_PID_FILE
+		fi
 		if [ ! -f $ALIASES_FILE.db ] && [ ! -f $ALIASES_FILE.dir ] \
 		    && [ ! -f $ALIASES_FILE.pag ]; then
 			/opt/csw/bin/newaliases


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list