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

idogan23 at users.sourceforge.net idogan23 at users.sourceforge.net
Mon Jun 18 11:05:11 CEST 2012


Revision: 18450
          http://gar.svn.sourceforge.net/gar/?rev=18450&view=rev
Author:   idogan23
Date:     2012-06-18 09:05:11 +0000 (Mon, 18 Jun 2012)
Log Message:
-----------
mule: fix OS detection

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

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

Modified: csw/mgar/pkg/mule/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mule/trunk/Makefile	2012-06-18 08:32:44 UTC (rev 18449)
+++ csw/mgar/pkg/mule/trunk/Makefile	2012-06-18 09:05:11 UTC (rev 18450)
@@ -21,6 +21,7 @@
 PATCHFILES += 0001-javapath.patch
 PATCHFILES += 0001-runasusermule.patch
 PATCHFILES += 0001-piddir.patch
+PATCHFILES += 0001-OS-detection.patch
 
 PACKAGING_PLATFORMS +=  solaris10-sparc solaris10-i386
 

Added: csw/mgar/pkg/mule/trunk/files/0001-OS-detection.patch
===================================================================
--- csw/mgar/pkg/mule/trunk/files/0001-OS-detection.patch	                        (rev 0)
+++ csw/mgar/pkg/mule/trunk/files/0001-OS-detection.patch	2012-06-18 09:05:11 UTC (rev 18450)
@@ -0,0 +1,34 @@
+From 7d6bb499bb6b6254b55dc4899ae7918ebdb88bb8 Mon Sep 17 00:00:00 2001
+From: Ihsan Dogan <ihsan at opencsw.org>
+Date: Mon, 18 Jun 2012 11:01:31 +0200
+Subject: [PATCH] OS-detection
+
+---
+ bin/mule |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/bin/mule b/bin/mule
+index 467b4c6..25a448b 100755
+--- a/bin/mule
++++ b/bin/mule
+@@ -201,7 +201,7 @@ fi
+ PSKEYWORD="args"
+ 
+ # Resolve the os
+-DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
++DIST_OS=`uname -s | tr '[A-Z]' '[a-z]' | tr -d ' '`
+ case "$DIST_OS" in
+     'sunos')
+         DIST_OS="solaris"
+@@ -231,7 +231,7 @@ if [ "$DIST_OS" = "aix" ]; then
+     UNAME_PROC_OPTION="-p"
+ fi
+ 
+-PROC_ARCH=`uname $UNAME_PROC_OPTION | tr [:upper:] [:lower:] | tr -d [:blank:]`
++PROC_ARCH=`uname $UNAME_PROC_OPTION | tr '[A-Z]' '[a-z]' | tr -d ' '`
+ 
+ # The previous approach was this:
+ # If a 32-bit wrapper binary exists then it will work on 32 or 64 bit
+-- 
+1.7.10.3
+

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