[csw-devel] SF.net SVN: gar:[5486] csw/mgar/pkg/cswclassutils/trunk

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Thu Jul 2 14:09:28 CEST 2009


Revision: 5486
          http://gar.svn.sourceforge.net/gar/?rev=5486&view=rev
Author:   bonivart
Date:     2009-07-02 12:09:27 +0000 (Thu, 02 Jul 2009)

Log Message:
-----------
cswclassutils: update to 1.17, fix bug 3685

Modified Paths:
--------------
    csw/mgar/pkg/cswclassutils/trunk/Makefile
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.csw.smf.sample
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcpsampleconf
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpreserveconf

Modified: csw/mgar/pkg/cswclassutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/Makefile	2009-07-01 21:53:14 UTC (rev 5485)
+++ csw/mgar/pkg/cswclassutils/trunk/Makefile	2009-07-02 12:09:27 UTC (rev 5486)
@@ -1,5 +1,5 @@
 GARNAME = cswclassutils
-GARVERSION = 1.16
+GARVERSION = 1.17
 CATEGORIES = utils
 
 DESCRIPTION = CSW class action utilities

Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.csw.smf.sample
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.csw.smf.sample	2009-07-01 21:53:14 UTC (rev 5485)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.csw.smf.sample	2009-07-02 12:09:27 UTC (rev 5486)
@@ -52,7 +52,7 @@
 ##RC_SLEV 3          # Run levels that should have a start script symlink
 ##FMRI network       # FMRI path for service (S10+), the example would give
 #                      an FMRI of "svc:/network/cswfoo:default"
-##AUTOENABLE yes     # If set to no will not enable SMF service regardless of
+##AUTOENABLE yes     # If set to no will not enable service regardless of
 #                      local csw.conf, use when a package needs setup before
 #                      being useful, would otherwise leave service in
 #                      maintenance mode

Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcpsampleconf
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcpsampleconf	2009-07-01 21:53:14 UTC (rev 5485)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcpsampleconf	2009-07-02 12:09:27 UTC (rev 5486)
@@ -31,7 +31,13 @@
 		echo $confdest already exists. Not overwriting
 	else
 		echo Copying sample config to $confdest
-		cp -p $dest $confdest
+		contents=`grep "^$dest" /var/sadm/install/contents`
+		mode=`echo $contents | awk '{print $4}'`
+		user=`echo $contents | awk '{print $5}'`
+		group=`echo $contents | awk '{print $6}'`
+		cp $dest $confdest
+		chmod $mode $confdest
+		chown $user:$group $confdest
 	fi
 done
 

Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpreserveconf
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpreserveconf	2009-07-01 21:53:14 UTC (rev 5485)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpreserveconf	2009-07-02 12:09:27 UTC (rev 5486)
@@ -39,7 +39,13 @@
 		echo $confdest already exists. Not overwriting
 	else
 		echo Copying sample config to $confdest
-		cp -p $dest $confdest
+                contents=`grep "^$dest" /var/sadm/install/contents`
+                mode=`echo $contents | awk '{print $4}'`
+                user=`echo $contents | awk '{print $5}'`
+                group=`echo $contents | awk '{print $6}'`
+                cp $dest $confdest
+                chmod $mode $confdest
+                chown $user:$group $confdest
 	fi
 done
 


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