[csw-devel] SF.net SVN: gar:[17115] csw/mgar/pkg/mule/trunk

idogan23 at users.sourceforge.net idogan23 at users.sourceforge.net
Tue Feb 21 15:00:44 CET 2012


Revision: 17115
          http://gar.svn.sourceforge.net/gar/?rev=17115&view=rev
Author:   idogan23
Date:     2012-02-21 14:00:44 +0000 (Tue, 21 Feb 2012)
Log Message:
-----------
mule: conf dir can be owned by root

Modified Paths:
--------------
    csw/mgar/pkg/mule/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/mule/trunk/files/0001-runasusermule.patch

Modified: csw/mgar/pkg/mule/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mule/trunk/Makefile	2012-02-21 13:59:07 UTC (rev 17114)
+++ csw/mgar/pkg/mule/trunk/Makefile	2012-02-21 14:00:44 UTC (rev 17115)
@@ -15,6 +15,7 @@
 DISTFILES += cswmule.xml
 
 PATCHFILES += 0001-javapath.patch
+PATCHFILES += 0001-runasusermule.patch
 
 PACKAGING_PLATFORMS +=  solaris10-sparc solaris10-i386
 
@@ -40,7 +41,7 @@
 USERGROUP     = /etc/opt/csw/pkg/CSWmule/cswusergroup
 
 PROTOTYPE_MODIFIERS          = mule_ugfiles
-MULE_UGFILES                 = /opt/csw/mule/conf /var/opt/csw/mule/logs
+MULE_UGFILES                 = /var/opt/csw/mule/logs
 PROTOTYPE_FILES_mule_ugfiles = $(MULE_UGFILES)
 PROTOTYPE_USER_mule_ugfiles  = mule
 PROTOTYPE_GROUP_mule_ugfiles = mule
@@ -51,7 +52,7 @@
 	@cp -rp $(WORKDIR)/$(DISTNAME)/* $(DESTDIR)/opt/csw/$(NAME)
 	@ginstall -d $(DESTDIR)/var/opt/csw/mule
 	@mv $(DESTDIR)/opt/csw/mule/logs $(DESTDIR)/var/opt/csw/mule
-	@ln -s $(DESTDIR)/var/opt/csw/mule/logs $(DESTDIR)/opt/csw/mule/logs
+	@ln -s /var/opt/csw/mule/logs $(DESTDIR)/opt/csw/mule/logs
 	@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
 	@ginstall -m 755 $(FILEDIR)/cswmule $(DESTDIR)/etc/opt/csw/init.d/cswmule
 	@ginstall -d $(DESTDIR)/var/opt/csw/svc/manifest/application

Added: csw/mgar/pkg/mule/trunk/files/0001-runasusermule.patch
===================================================================
--- csw/mgar/pkg/mule/trunk/files/0001-runasusermule.patch	                        (rev 0)
+++ csw/mgar/pkg/mule/trunk/files/0001-runasusermule.patch	2012-02-21 14:00:44 UTC (rev 17115)
@@ -0,0 +1,25 @@
+From 22d7685bba0acec845bc7f11236ccc48e8fff3c8 Mon Sep 17 00:00:00 2001
+From: Ihsan Dogan <ihsan at opencsw.org>
+Date: Tue, 21 Feb 2012 14:04:02 +0100
+Subject: [PATCH] runasusermule
+
+---
+ bin/mule |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/bin/mule b/bin/mule
+index 467b4c6..b1f4161 100755
+--- a/bin/mule
++++ b/bin/mule
+@@ -140,7 +140,7 @@ PIDDIR="."
+ # NOTE - This will set the user which is used to run the Wrapper as well as
+ #  the JVM and is not useful in situations where a privileged resource or
+ #  port needs to be allocated prior to the user being changed.
+-#RUN_AS_USER=
++RUN_AS_USER=mule
+ 
+ # The following two lines are used by the chkconfig command. Change as is
+ #  appropriate for your application.  They should remain commented.
+-- 
+1.7.9
+

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