[csw-devel] SF.net SVN: gar:[17699] csw/mgar/pkg
wilbury at users.sourceforge.net
wilbury at users.sourceforge.net
Sun Apr 15 17:18:29 CEST 2012
Revision: 17699
http://gar.svn.sourceforge.net/gar/?rev=17699&view=rev
Author: wilbury
Date: 2012-04-15 15:18:28 +0000 (Sun, 15 Apr 2012)
Log Message:
-----------
jboss/trunk: Initial commit. JBoss 7.1.1
Added Paths:
-----------
csw/mgar/pkg/jboss/
csw/mgar/pkg/jboss/Makefile
csw/mgar/pkg/jboss/branches/
csw/mgar/pkg/jboss/tags/
csw/mgar/pkg/jboss/trunk/
csw/mgar/pkg/jboss/trunk/Makefile
csw/mgar/pkg/jboss/trunk/checksums
csw/mgar/pkg/jboss/trunk/files/
csw/mgar/pkg/jboss/trunk/files/jboss4
csw/mgar/pkg/jboss/trunk/files/jboss4.conf
csw/mgar/pkg/jboss/trunk/files/jboss4.xml
csw/mgar/pkg/jboss/trunk/files/svc-jboss4
Added: csw/mgar/pkg/jboss/Makefile
===================================================================
--- csw/mgar/pkg/jboss/Makefile (rev 0)
+++ csw/mgar/pkg/jboss/Makefile 2012-04-15 15:18:28 UTC (rev 17699)
@@ -0,0 +1,2 @@
+%:
+ $(MAKE) -C trunk $*
Property changes on: csw/mgar/pkg/jboss/trunk
___________________________________________________________________
Added: svn:ignore
+ work
Added: csw/mgar/pkg/jboss/trunk/Makefile
===================================================================
--- csw/mgar/pkg/jboss/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/jboss/trunk/Makefile 2012-04-15 15:18:28 UTC (rev 17699)
@@ -0,0 +1,41 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = jboss
+VERSION = 7.1.1.Final
+GARTYPE = v2
+CATEGORIES = java
+
+DESCRIPTION = JBoss Application Server
+define BLURB
+ JBoss Application Server
+endef
+
+JBOSS_MAJMIN = $(shell echo $(VERSION) | awk -F. '{print $$1"."$$2}')
+
+MASTER_SITES = http://download.jboss.org/jbossas/$(JBOSS_MAJMIN)/jboss-as-$(VERSION)/
+DISTNAME = jboss-as-$(VERSION)
+
+DISTFILES = $(DISTNAME).tar.gz
+
+CONFIGURE_SCRIPTS = none
+BUILD_SCRIPTS = none
+TEST_SCRIPTS = none
+INSTALL_SCRIPTS = jboss
+prefix = /
+
+configure-none:
+ @$(MAKECOOKIE)
+
+test-none:
+ @$(MAKECOOKIE)
+
+build-none:
+ @$(MAKECOOKIE)
+
+install-jboss:
+ @echo "Installing into $(DESTDIR)"
+ @$(MAKECOOKIE)
+
+include gar/category.mk
+
Property changes on: csw/mgar/pkg/jboss/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: csw/mgar/pkg/jboss/trunk/checksums
===================================================================
--- csw/mgar/pkg/jboss/trunk/checksums (rev 0)
+++ csw/mgar/pkg/jboss/trunk/checksums 2012-04-15 15:18:28 UTC (rev 17699)
@@ -0,0 +1 @@
+1e33096182ac7cac96089e39f7479b35 jboss-as-7.1.1.Final.tar.gz
Added: csw/mgar/pkg/jboss/trunk/files/jboss4
===================================================================
--- csw/mgar/pkg/jboss/trunk/files/jboss4 (rev 0)
+++ csw/mgar/pkg/jboss/trunk/files/jboss4 2012-04-15 15:18:28 UTC (rev 17699)
@@ -0,0 +1,58 @@
+# Environment variables documentation
+#
+# JAVA_HOME
+#
+# JAVA_HOME specify which version of Java should be used
+# by JBOSS. You can supered the default value in the jboss4
+# configuration file. The value of this variable must be a path
+# pointing to the root of a valid JRE or JDK (the root dir not
+# the bin dir !). The default value is /usr/java.
+#
+
+# JAVA_HOME=/usr/java
+
+# JBOSS_USER
+#
+# JBOSS_USER variable defines the Solaris user running the
+# JBOSS server. You can supered the default valude in the
+# jboss4 configuration file. The value of this variable must
+# be a valid Solaris user (ie: root, nobody). The default value
+# is jboss.
+#
+# WARNING : By default the directory permissions are set for
+# the JBOSS user (no write access for 'nobody').
+# The logs are stored in /opt/csw/jboss4/server/<config>/log, and
+# do belong to root user. If you change the JBOSS_USER, be sure
+# that this user can write in the log directory.
+#
+
+JBOSS_USER=jboss
+
+# RUN_CONF
+#
+# RUN_CONF variable defines the optionnal configuration file
+# used by the JBOSS server.
+
+# RUN_CONF= /opt/csw/jboss4/bin/run.conf
+
+# JBOSS_RUN_ARGS
+#
+# JBOSS_RUN_ARGS variable defines the optionnal arguments
+# passed to run.sh command line. According to JBoss documentation
+# the followings switches are availables :
+#
+# -d, --bootdir=<dir> Set the boot patch directory; Must be absolute or url
+# -p, --patchdir=<dir> Set the patch directory; Must be absolute or url
+# -n, --netboot=<url> Boot from net with the given url as base
+# -c, --configuration=<name> Set the server configuration name
+# -B, --bootlib=<filename> Add an extra library to the front bootclasspath
+# -L, --library=<filename> Add an extra library to the loaders classpath
+# -C, --classpath=<url> Add an extra url to the loaders classpath
+# -P, --properties=<url> Load system properties from the given url
+# -b, --host=<host or ip> Bind address for all JBoss services. Further explanation below.
+# -g, --partition=<name> HA Partition name (default=DefaultDomain)
+# -u, --udp=<ip> UDP multicast address
+
+# JBOSS_RUN_ARGS=
+
+
Added: csw/mgar/pkg/jboss/trunk/files/jboss4.conf
===================================================================
--- csw/mgar/pkg/jboss/trunk/files/jboss4.conf (rev 0)
+++ csw/mgar/pkg/jboss/trunk/files/jboss4.conf 2012-04-15 15:18:28 UTC (rev 17699)
@@ -0,0 +1,58 @@
+# Environment variables documentation
+#
+# JAVA_HOME
+#
+# JAVA_HOME specify which version of Java should be used
+# by JBOSS. You can supered the default value in the jboss4
+# configuration file. The value of this variable must be a path
+# pointing to the root of a valid JRE or JDK (the root dir not
+# the bin dir !). The default value is /usr/java.
+#
+
+# JAVA_HOME=/usr/java
+
+# JBOSS_USER
+#
+# JBOSS_USER variable defines the Solaris user running the
+# JBOSS server. You can supered the default valude in the
+# jboss4 configuration file. The value of this variable must
+# be a valid Solaris user (ie: root, nobody). The default value
+# is jboss.
+#
+# WARNING : By default the directory permissions are set for
+# the JBOSS user (no write access for 'nobody').
+# The logs are stored in /opt/csw/jboss4/server/<config>/log, and
+# do belong to root user. If you change the JBOSS_USER, be sure
+# that this user can write in the log directory.
+#
+
+JBOSS_USER=jboss
+
+# RUN_CONF
+#
+# RUN_CONF variable defines the optionnal configuration file
+# used by the JBOSS server.
+
+# RUN_CONF= /opt/csw/jboss4/bin/run.conf
+
+# JBOSS_RUN_ARGS
+#
+# JBOSS_RUN_ARGS variable defines the optionnal arguments
+# passed to run.sh command line. According to JBoss documentation
+# the followings switches are availables :
+#
+# -d, --bootdir=<dir> Set the boot patch directory; Must be absolute or url
+# -p, --patchdir=<dir> Set the patch directory; Must be absolute or url
+# -n, --netboot=<url> Boot from net with the given url as base
+# -c, --configuration=<name> Set the server configuration name
+# -B, --bootlib=<filename> Add an extra library to the front bootclasspath
+# -L, --library=<filename> Add an extra library to the loaders classpath
+# -C, --classpath=<url> Add an extra url to the loaders classpath
+# -P, --properties=<url> Load system properties from the given url
+# -b, --host=<host or ip> Bind address for all JBoss services. Further explanation below.
+# -g, --partition=<name> HA Partition name (default=DefaultDomain)
+# -u, --udp=<ip> UDP multicast address
+
+# JBOSS_RUN_ARGS=
+
+
Added: csw/mgar/pkg/jboss/trunk/files/jboss4.xml
===================================================================
(Binary files differ)
Property changes on: csw/mgar/pkg/jboss/trunk/files/jboss4.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: csw/mgar/pkg/jboss/trunk/files/svc-jboss4
===================================================================
--- csw/mgar/pkg/jboss/trunk/files/svc-jboss4 (rev 0)
+++ csw/mgar/pkg/jboss/trunk/files/svc-jboss4 2012-04-15 15:18:28 UTC (rev 17699)
@@ -0,0 +1,153 @@
+#!/sbin/sh
+
+##################################################################
+#
+# Configuration file documentation
+#
+# jboss4
+#
+# This file let you change the values of a few variables used
+# by the init script to control the environment of jboss4
+# The list of variables is described below.
+#
+# The configuration file can be stored in two different path :
+#
+# /etc/opt/csw
+# This directory contain machine specific config files
+#
+# /opt/csw/etc
+# This directory contain global config files
+#
+# If there exist a /etc/opt/csw/jboss4/jboss4.conf config file, then
+# the environment variables defined in this file are used and the
+# /opt/csw/etc/jboss4/conf/jboss4.conf file is ignored even if it
+# exist.
+#
+# If there exist only a /opt/csw/etc/jboss4/conf/jboss4.conf config
+# file, then the environnement variables defined in this file are
+# used.
+#
+# If no configuration file exist, all the variables needed by
+# jboss4 are let to their default values (see the values
+# below).
+#
+# In all cases, the default values are defined, and supereded
+# by the values stored in the configuration file. This is
+# necessary to define an environment usuable by JBOSS.
+#
+# Environment variables documentation
+#
+# JAVA_HOME
+#
+# JAVA_HOME specify which version of Java should be used
+# by JBOSS. You can supered the default value in the jboss4
+# configuration file. The value of this variable must be a path
+# pointing to the root of a valid JRE or JDK (the root dir not
+# the bin dir !). The default value is /usr/java.
+#
+# JBOSS_USER
+#
+# JBOSS_USER variable defines the Solaris user running the
+# JBOSS server. You can supered the default valude in the
+# jboss4 configuration file. The value of this variable must
+# be a valid Solaris user (ie: root, nobody). The default value
+# is root.
+#
+# WARNING : By default the directory permissions are set for
+# the root user (no write access for 'nobody').
+# The logs are stored in /opt/csw/jboss4/logs, and do belong
+# to root user. If you change the JBOSS_USER, be sure that this
+# user can write in the log directory.
+#
+# The following permissions may also have to be changed :
+# . give read access to the conf directory and all its subdirs
+# . give write access to the conf dir to let JBOSS create new files
+# . give write access to the work dir
+#
+
+##################################################################
+# Setting the default values
+#
+# DO NOT EDIT THE FOLLOWING VALUES.
+#
+# Use the configuration file to supered their value
+#
+
+SPECIFIC_CONFIG_FILE=/etc/opt/csw/jboss4/jboss4.conf
+GLOBAL_CONFIG_FILE=/opt/csw/etc/jboss4/conf/jboss4.conf
+
+JAVA_HOME=/usr/java
+JBOSS_USER=JBOSS
+
+##################################################################
+# Add some defines useful for SMF
+#
+
+. /lib/svc/share/smf_include.sh
+
+##################################################################
+# Search for a custom configuration file in the default CSW paths
+#
+
+if [ -f $SPECIFIC_CONFIG_FILE ]
+then
+ echo Using configuration file : $SPECIFIC_CONFIG_FILE
+ . $SPECIFIC_CONFIG_FILE
+else
+ if [ -f $GLOBAL_CONFIG_FILE ]
+ then
+ echo Using configuration file : $GLOBAL_CONFIG_FILE
+ . $GLOBAL_CONFIG_FILE
+ fi
+fi
+
+echo "Using Java from : $JAVA_HOME"
+echo "Running as : $JBOSS_USER (please see documentation included in $0 to change user)"
+
+##################################################################
+# Test if java is in the path defined by JAVA_HOME, if not try to
+# guess path by testing standard directories
+#
+
+if [ ! -f $JAVA_HOME/bin/java ]
+then
+ echo "Java not found in $JAVA_HOME/bin. Trying /usr/java/bin"
+ JAVA_HOME=/usr/java
+ if [ ! -f $JAVA_HOME/bin/java ]
+ then
+ echo "Java not found in $JAVA_HOME/bin. Trying /usr/j2se/bin"
+ JAVA_HOME=/usr/j2se
+ if [ ! -f $JAVA_HOME/bin/java ]
+ then
+ echo "Java not found in $JAVA_HOME/bin"
+ echo "Java not found !"
+ exit 1
+ fi
+ fi
+fi
+
+JBOSS_HOME=/opt/csw/jboss4
+export JAVA_HOME
+export RUN_CONF
+export JBOSS_HOME
+export JBOSS_RUN_ARGS
+
+case $1 in
+'start')
+ $JBOSS_HOME/bin/run.sh $JBOSS_RUN_ARGS &
+ ;;
+'stop')
+ $JBOSS_HOME/bin/shutdown.sh --shutdown
+ ;;
+
+'restart')
+ $JBOSS_HOME/bin/shutdown.sh --shutdown
+ $JBOSS_HOME/bin/run.sh $JBOSS_RUN_ARGS &
+ ;;
+*)
+ echo "Usage: $0 { start | stop | restart }"
+ exit 1
+ ;;
+esac
+
+exit $SMF_EXIT_OK
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