diff options
author | Matthew Kennedy <mkennedy@gentoo.org> | 2003-12-20 08:49:30 +0000 |
---|---|---|
committer | Matthew Kennedy <mkennedy@gentoo.org> | 2003-12-20 08:49:30 +0000 |
commit | 0576054de7faf84058a48564a98806671fd5950a (patch) | |
tree | 4cd80ee54a5c62f3f55469a37fd05d32073fc76c /net-www/jboss | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-0576054de7faf84058a48564a98806671fd5950a.tar.gz gentoo-2-0576054de7faf84058a48564a98806671fd5950a.tar.bz2 gentoo-2-0576054de7faf84058a48564a98806671fd5950a.zip |
*** empty log message ***
Diffstat (limited to 'net-www/jboss')
-rw-r--r-- | net-www/jboss/ChangeLog | 20 | ||||
-rw-r--r-- | net-www/jboss/Manifest | 16 | ||||
-rw-r--r-- | net-www/jboss/files/3.2.1/conf.d/jboss | 3 | ||||
-rw-r--r-- | net-www/jboss/files/3.2.3/README.Gentoo | 46 | ||||
-rw-r--r-- | net-www/jboss/files/3.2.3/catalog | 27 | ||||
-rw-r--r-- | net-www/jboss/files/3.2.3/conf.d/jboss | 82 | ||||
-rw-r--r-- | net-www/jboss/files/3.2.3/env.d/50jboss | 1 | ||||
-rw-r--r-- | net-www/jboss/files/3.2.3/init.d/jboss | 40 | ||||
-rw-r--r-- | net-www/jboss/files/3.2.3/log4j.xml | 162 | ||||
-rw-r--r-- | net-www/jboss/files/digest-jboss-3.2.3 | 1 | ||||
-rw-r--r-- | net-www/jboss/jboss-3.2.3.ebuild | 116 | ||||
-rw-r--r-- | net-www/jboss/metadata.xml | 9 |
12 files changed, 515 insertions, 8 deletions
diff --git a/net-www/jboss/ChangeLog b/net-www/jboss/ChangeLog index f227352c385d..b9b7a95e8681 100644 --- a/net-www/jboss/ChangeLog +++ b/net-www/jboss/ChangeLog @@ -1,6 +1,24 @@ # ChangeLog for net-www/jboss # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/jboss/ChangeLog,v 1.12 2003/12/08 22:36:32 spider Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/jboss/ChangeLog,v 1.13 2003/12/20 08:49:23 mkennedy Exp $ + +*jboss-3.2.3 (20 Dec 2003) + + 20 Dec 2003; <mkennedy@gentoo.org> jboss-3.2.3.ebuild, metadata.xml, + files/3.2.1/conf.d/jboss, files/3.2.3/README.Gentoo, files/3.2.3/catalog, + files/3.2.3/log4j.xml, files/3.2.3/conf.d/jboss, files/3.2.3/env.d/50jboss, + files/3.2.3/init.d/jboss: + Minor version update to latest. Resolution of bug #30554 + (hypersonicsql vulnerable via. default config). Corrected temporary + file directory, bug #28284. Resolved bug #24256 (JJTree build + failure in 3.2.1). Added metadata.xml with maintainer information. + Moved install files from /opt to /usr/share/jboss, /var/log/jboss, + /var/cache/jboss and /var/tmp/jboss. Build all groups by default + (see src_compile). Expanded JBoss configuration file for Gentoo + (/etc/conf.d/jboss). Replace useradd/groupadd with enewuser, + enewgroup and make robust. Add SGML catalogs for DTDs distributed + with JBoss. Add CONFIG_PROTECT for server directories. Corrected + Java package.env file list. 08 Dec 2003; <spider@gentoo.org> files/3.2.1/init.d/jboss: fixed chown issue ( bug #35127 ) diff --git a/net-www/jboss/Manifest b/net-www/jboss/Manifest index 88e2944202b5..f7dc11af32d4 100644 --- a/net-www/jboss/Manifest +++ b/net-www/jboss/Manifest @@ -1,10 +1,10 @@ -MD5 1e24738e227e7986d93ed6b45aa41e72 ChangeLog 2104 +MD5 9dc167922987dfd21446733ee7fb5593 ChangeLog 3090 MD5 6574a84129d579304885345f7e5298e3 jboss-3.0.1_rc1.ebuild 2577 MD5 f675da9885d0645cb429c91a164a30b9 jboss-3.0.6.ebuild 2676 MD5 906d67959911ab7cf9a9da3f4fae68be jboss-3.2.1-r1.ebuild 3120 MD5 6a2c3dcfaaa54f5c9cf8acadd09c52dc jboss-3.2.1.ebuild 3122 -MD5 94bacfe1b6fbfee9b1628036830bf5c5 jboss-3.2.3.ebuild 3228 -MD5 edb2252eeb848144f1c9f1f7e67353cf jboss-3.2.3.ebuild~ 3141 +MD5 e5bd177c2980d2803f81f1200e6b99b6 jboss-3.2.3.ebuild 3219 +MD5 bd17ff9b8b69c862ad365fc9af75bf29 metadata.xml 262 MD5 83b6857488b5fca7fbe0b9f5cc841237 files/README.gentoo 1319 MD5 9ed2cbd53ccd4ad24130fa8a0bd44fab files/digest-jboss-3.0.1_rc1 69 MD5 ee6dd298b26237545eb64c6fa1f576b5 files/digest-jboss-3.0.6 66 @@ -16,10 +16,12 @@ MD5 8aecde4804a622cc5743b0644efc482b files/digest-jboss-3.2.3 70 MD5 4662db6a030cb02f46ed3bfe486b90c6 files/3.2.1/log4j.xml 5632 MD5 e282e72230397784cfd6a0d6c4e794ed files/conf.d/jboss 988 MD5 a466b250acce9ac6953fc85577ca6bf6 files/init.d/jboss 478 -MD5 4662db6a030cb02f46ed3bfe486b90c6 files/3.2.3/log4j.xml 5632 -MD5 bdbc8a52eecf0d7fae7afb228cc85e86 files/3.2.1/conf.d/jboss 1270 +MD5 c232658844375714820675ff2e4a4f0a files/3.2.3/log4j.xml 5632 +MD5 1fdd4664aceb87d0ecd21dbaae57967e files/3.2.3/catalog 1587 +MD5 f89cbfbbae9c0c2482d08d58169e597a files/3.2.3/README.Gentoo 1510 +MD5 3cc5cee301d9de0f72256b51e89f148e files/3.2.1/conf.d/jboss 1295 MD5 8be6a5609fb1d490b808a3124052e0ba files/3.2.1/env.d/50jboss 27 MD5 a1e11d4659dc49a0b4e83d3595fd7566 files/3.2.1/init.d/jboss 765 -MD5 bdbc8a52eecf0d7fae7afb228cc85e86 files/3.2.3/conf.d/jboss 1270 +MD5 4b1e766357e28233b17668ff6c2bb64e files/3.2.3/conf.d/jboss 2756 MD5 8be6a5609fb1d490b808a3124052e0ba files/3.2.3/env.d/50jboss 27 -MD5 a1e11d4659dc49a0b4e83d3595fd7566 files/3.2.3/init.d/jboss 765 +MD5 66b07dbbad7df859473718960ccadd25 files/3.2.3/init.d/jboss 825 diff --git a/net-www/jboss/files/3.2.1/conf.d/jboss b/net-www/jboss/files/3.2.1/conf.d/jboss index 9ccd5483fff8..f52276c8b5c0 100644 --- a/net-www/jboss/files/3.2.1/conf.d/jboss +++ b/net-www/jboss/files/3.2.1/conf.d/jboss @@ -1,3 +1,5 @@ +# -*- shell-script -*- + # We need to have JBOSS_HOME and JAVA_HOME set in order to start jboss. if [ -z "$JBOSS_HOME" ]; then @@ -36,3 +38,4 @@ CMD_START="$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF" CMD_STOP="$JAVA_HOME/bin/java -classpath $JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/lib/jboss-system.jar:`java-config --classpath=jboss` org.jboss.Shutdown -S" SUBIT="su $JBOSS_USER -c " + diff --git a/net-www/jboss/files/3.2.3/README.Gentoo b/net-www/jboss/files/3.2.3/README.Gentoo new file mode 100644 index 000000000000..99fd2420fdb2 --- /dev/null +++ b/net-www/jboss/files/3.2.3/README.Gentoo @@ -0,0 +1,46 @@ +Starting +-------- + +Start JBoss by running the jboss RC script found in /etc/init.d/. Do +the regular 'rc-update jboss <runlevel>' to automatically start JBoss +upon entering a runlevel. Customizing the JBoss setup by changing the +environment variables in /etc/conf.d/jboss. Refer to that file for +further documentation on the environment variables used during +startup. + +For security reasons, the application server is running as the 'jboss' +user. This may be changed in the /etc/conf.d/jboss script. + +NOTE: ANY LOCAL USER MAY STOP A RUNNING JBOSS. YOU SHOULD CONSIDER +THIS ASPECT FOR PRODUCTION SYSTEMS. + +Logging +------- + +All configurations shipping with this ebuild have been set up to log +to the /var/log/jboss/server file using a time/date based rolling +file appender. + +While console logging is turned on for debugging purposes, standard +out and standard err are redirected to /dev/null by default. This may +be changed in /etc/conf.d/jboss. As the application server is running +as 'jboss', you will have to tweak /dev/console's access permissions +to allow jboss access to the device. + + +Client applications +------------------- + +The jars required for compiling and running client applications are +installed to /usr/share/jboss/lib. Add these jars to your classpath +with the java-config command using either the --set-system-classpath +or --set-user-classpath parameter. + +Enjoy! + + +Authors of this Document +------------------------ + +tho <thomas.osterlie@acm.org> +Matthew Kennedy <mkennedy@gentoo.org> diff --git a/net-www/jboss/files/3.2.3/catalog b/net-www/jboss/files/3.2.3/catalog new file mode 100644 index 000000000000..91c09e9fc7de --- /dev/null +++ b/net-www/jboss/files/3.2.3/catalog @@ -0,0 +1,27 @@ + + -- Catalog data for JBoss/Gentoo SGML integration + + -- This set was extracted from the DTD files in the build output + directory, build/output/${P}/docs/dtd/ + +PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN" "application-client_1_3.dtd" +PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "application_1_3.dtd" +PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "ejb-jar_2_0.dtd" +PUBLIC "-//JBoss//DTD JAWS 2.4//EN" "jaws_2_4.dtd" +PUBLIC "-//JBoss//DTD JAWS 3.0//EN" "jboss-app_3_0.dtd" +PUBLIC "-//JBoss//DTD J2EE Application 1.3//EN" "jboss-app_3_0.dtd" +PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN" "jboss-app_3_2.dtd" +PUBLIC "-//JBoss//DTD MBean Service 3.2//EN" "jboss-service_3_2.dtd" +PUBLIC "-//JBoss//DTD Web Application 2.2//EN" "jboss-web.dtd" +PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "jboss-web_3_0.dtd" +PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "jboss-web_3_2.dtd" +PUBLIC "-//JBoss//DTD JBOSS//EN" "jboss.dtd" +PUBLIC "-//JBoss//DTD JBOSS 2.4//EN" "jboss_2_4.dtd" +PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "jboss_3_0.dtd" +PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "jboss_3_2.dtd" +PUBLIC "-//JBoss//DTD JBOSS XMBEAN 1.0//EN" "jboss_xmbean_1_0.dtd" +PUBLIC "-//JBoss//DTD JBOSS XMBEAN 1.1//EN" "jboss_xmbean_1_1.dtd" +PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" "jbosscmp-jdbc_3_0.dtd" +PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.2//EN" "jbosscmp-jdbc_3_2.dtd" +PUBLIC "-//JBoss//DTD JBOSS Security Config 3.0//EN" "security_config.dtd" +PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "web-app_2_3.dtd" diff --git a/net-www/jboss/files/3.2.3/conf.d/jboss b/net-www/jboss/files/3.2.3/conf.d/jboss new file mode 100644 index 000000000000..9147dbf054c8 --- /dev/null +++ b/net-www/jboss/files/3.2.3/conf.d/jboss @@ -0,0 +1,82 @@ +# -*- mode: shell-script; mode: outline-minor; outline-regexp: "##+"; indent-tabs-mode: nil -*- + +## GENERAL SETTINGS + +# You can choose which configuration you want to run JBoss with. The +# default configuration is, you guessed it, 'default'. The Gentoo +# JBoss installation ships with two other predefined configurations; +# 'all' and 'minimal'. The configurations are located in +# $JBOSS_HOME/server/ + +# JBOSS_CONF="all" +JBOSS_CONF="default" +# JBOSS_CONF="minimal" + +# Console logging defaults to '/dev/null'. This env variable is +# included for debugging purposes. You might have to run add +# $JBOSS_USER to the 'console' group to gain access to '/dev/console'. + +JBOSS_CONSOLE="/dev/null" +# JBOSS_CONSOLE="/dev/console" + +# The user JBoss will run as. + +JBOSS_USER="jboss" + + +## SPECIFIC SETTINGS + +SERVER_SETTINGS="" + +# The directory JBoss will use for temporary file storage + +SERVER_SETTINGS="${SERVER_SETTINGS} -Djboss.server.temp.dir=/var/tmp/jboss" + +# The directory which JBoss will use for persistent data file storage + +SERVER_SETTINGS="${SERVER_SETTINGS} -Djboss.server.data.dir=/var/cache/jboss" + +# The base URL for calculating server home URLs. In a stock JBoss +# install, this would be <jboss_home>/server/ where sub-directories +# default, minimal and all exist. Our defaults are /var/lib/jboss to +# be consistent with other servers such as PostgreSQL and Apache. + +SERVER_HOME="/var/lib/jboss" +SERVER_SETTINGS="${SERVER_SETTINGS} -Djboss.server.base.url=file://${SERVER_HOME}" + +# Whether or not the server should exit the JVM on shutdown (comment +# out to disable) + +# SERVER_SETTINGS="${SERVER_SETTINGS} -Djboss.server.exitonshutdown" + +# Whether or not the server should shutdown synchronously (true) or +# asynchronously (false). + +SERVER_SETTINGS="${SERVER_SETTINGS} -Djboss.server.exitonshutdown=false" + +# The address JBoss will bind services to. (Note: JBoss 3.2.3 ignores +# the JVM environment parameter in favour of the command line switch.) + +JBOSS_BIND_ADDRESS="0.0.0.0" + + +## STARTUP/SHUTDOWN CONFIGURATION + +# Commands used in starting/stopping the server. Normally you would +# not need to change the following settings. + +# We need to have JBOSS_HOME and JAVA_HOME set in order to start +# jboss. + +[ -z "$JBOSS_HOME" ] \ + && export JBOSS_HOME=`grep JBOSS_HOME /etc/profile.env | sed -e "s;.*=;;" -e "s;';;g"` +[ -z "$JAVA_HOME" ] \ + && export JAVA_HOME=`java-config --jdk-home` + +# Commands for starting and stopping the server + +CMD_START="JAVA_OPTS=\"${SERVER_SETTINGS}\" ${JBOSS_HOME}/bin/run.sh -b ${JBOSS_BIND_ADDRESS} -c ${JBOSS_CONF}" + +CMD_STOP="${JAVA_HOME}/bin/java -classpath ${JBOSS_HOME}/bin/shutdown.jar:${JBOSS_HOME}/lib/jboss-system.jar:`java-config --classpath=jboss` org.jboss.Shutdown -S" + +SUBIT="su $JBOSS_USER -c " diff --git a/net-www/jboss/files/3.2.3/env.d/50jboss b/net-www/jboss/files/3.2.3/env.d/50jboss new file mode 100644 index 000000000000..92bc5e1feb30 --- /dev/null +++ b/net-www/jboss/files/3.2.3/env.d/50jboss @@ -0,0 +1 @@ +JBOSS_HOME="@JBOSSPREFIX@" diff --git a/net-www/jboss/files/3.2.3/init.d/jboss b/net-www/jboss/files/3.2.3/init.d/jboss new file mode 100644 index 000000000000..a81a77351a3c --- /dev/null +++ b/net-www/jboss/files/3.2.3/init.d/jboss @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need net +} + +start() { + ebegin "Starting JBoss" + if [ -z "$JBOSS_HOME" ]; then + eerror "The JBOSS_HOME environment variable is not set." + return 1 + fi + if [ ! -d ${SERVER_HOME}/${JBOSS_CONF}/tmp ]; then + mkdir ${SERVER_HOME}/${JBOSS_CONF}/tmp + chown jboss:jboss ${SERVER_HOME}/${JBOSS_CONF}/tmp + fi + cd ${SERVER_HOME}/${JBOSS_CONF}/tmp + if [ -z "${SUBIT}" ]; then + eval ${CMD_START} >${JBOSS_CONSOLE} 2>&1 & + else + ${SUBIT} "${CMD_START} >${JBOSS_CONSOLE} 2>&1 &" + fi + eend $? +} + +stop () { + ebegin "Stopping JBoss" + if [ -z "$SUBIT" ]; then + ${CMD_STOP} + else + ${SUBIT} "$CMD_STOP" + fi + eend $? +} + +# Local Variables: *** +# mode: shell-script *** +# End: *** diff --git a/net-www/jboss/files/3.2.3/log4j.xml b/net-www/jboss/files/3.2.3/log4j.xml new file mode 100644 index 000000000000..14f0b0731db2 --- /dev/null +++ b/net-www/jboss/files/3.2.3/log4j.xml @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> + +<!-- ===================================================================== --> +<!-- --> +<!-- Log4j Configuration --> +<!-- --> +<!-- ===================================================================== --> + +<!-- $Id: log4j.xml,v 1.1 2003/12/20 08:49:23 mkennedy Exp $ --> + +<!-- + | For more configuration infromation and examples see the Jakarta Log4j + | owebsite: http://jakarta.apache.org/log4j + --> + +<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> + + <!-- ================================= --> + <!-- Preserve messages in a local file --> + <!-- ================================= --> + + <!-- A time/date based rolling appender --> + <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"> + <param name="File" value="/var/log/jboss/server.log"/> + <param name="Append" value="false"/> + + <!-- Rollover at midnight each day --> +<!-- <param name="DatePattern" value="'.'yyyy-MM-dd"/> --> + + <!-- Rollover at the top of each hour --> + <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/> + + <layout class="org.apache.log4j.PatternLayout"> + <!-- The default pattern: Date Priority [Category] Message\n --> + <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> + + <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n + <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/> + --> + + </layout> + </appender> + + <!-- A size based file rolling appender + <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender"> + <param name="File" value="${jboss.server.home.dir}/log/server.log"/> + <param name="Append" value="false"/> + <param name="MaxFileSize" value="500KB"/> + <param name="MaxBackupIndex" value="1"/> + + <layout class="org.apache.log4j.PatternLayout"> + <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> + </layout> + </appender> + --> + + <!-- ============================== --> + <!-- Append messages to the console --> + <!-- ============================== --> + + <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> + <param name="Threshold" value="INFO"/> + <param name="Target" value="System.out"/> + + <layout class="org.apache.log4j.PatternLayout"> + <!-- The default pattern: Date Priority [Category] Message\n --> + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> + </layout> + </appender> + + + <!-- ====================== --> + <!-- More Appender examples --> + <!-- ====================== --> + + <!-- Buffer events and log them asynchronously + <appender name="ASYNC" class="org.apache.log4j.AsyncAppender"> + <appender-ref ref="FILE"/> + <appender-ref ref="CONSOLE"/> + <appender-ref ref="SMTP"/> + </appender> + --> + + <!-- EMail events to an administrator + <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender"> + <param name="Threshold" value="ERROR"/> + <param name="To" value="admin@myhost.domain.com"/> + <param name="From" value="nobody@myhost.domain.com"/> + <param name="Subject" value="JBoss Sever Errors"/> + <param name="SMTPHost" value="localhost"/> + <param name="BufferSize" value="10"/> + <layout class="org.apache.log4j.PatternLayout"> + <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/> + </layout> + </appender> + --> + + <!-- Syslog events + <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender"> + <param name="Facility" value="LOCAL7"/> + <param name="FacilityPrinting" value="true"/> + <param name="SyslogHost" value="localhost"/> + </appender> + --> + + + <!-- Log events to JMS (requires a topic to be created) + <appender name="JMS" class="org.apache.log4j.net.JMSAppender"> + <param name="Threshold" value="ERROR"/> + <param name="TopicConnectionFactoryBindingName" value="java:/ConnectionFactory"/> + <param name="TopicBindingName" value="topic/MyErrorsTopic"/> + </appender> + --> + + <!-- ================ --> + <!-- Limit categories --> + <!-- ================ --> + + <!-- Limit JBoss categories to INFO + <category name="org.jboss"> + <priority value="INFO"/> + </category> + --> + + <!-- Increase the priority threshold for the DefaultDS category + <category name="DefaultDS"> + <priority value="FATAL"/> + </category> + --> + + <!-- Decrease the priority threshold for the org.jboss.varia category + <category name="org.jboss.varia"> + <priority value="DEBUG"/> + </category> + --> + + <!-- + | An example of enabling the custom TRACE level priority that is used + | by the JBoss internals to diagnose low level details. This example + | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its + | subpackages. This will produce A LOT of logging output. + If you use replace the log4j 1.2 jar with a 1.1.3 jar you will need to + change this from XLevel to XPriority. + <category name="org.jboss.system"> + <priority value="TRACE" class="org.jboss.logging.XLevel"/> + </category> + <category name="org.jboss.ejb.plugins"> + <priority value="TRACE" class="org.jboss.logging.XLevel"/> + </category> + --> + + <!-- ======================= --> + <!-- Setup the Root category --> + <!-- ======================= --> + + <root> + <appender-ref ref="CONSOLE"/> + <appender-ref ref="FILE"/> + </root> + +</log4j:configuration> diff --git a/net-www/jboss/files/digest-jboss-3.2.3 b/net-www/jboss/files/digest-jboss-3.2.3 new file mode 100644 index 000000000000..b8606100776c --- /dev/null +++ b/net-www/jboss/files/digest-jboss-3.2.3 @@ -0,0 +1 @@ +MD5 c432fd194205ed4b7b9fd55ae4bfe8f9 jboss-3.2.3-src.tar.bz2 33388734 diff --git a/net-www/jboss/jboss-3.2.3.ebuild b/net-www/jboss/jboss-3.2.3.ebuild new file mode 100644 index 000000000000..8836bae07c0d --- /dev/null +++ b/net-www/jboss/jboss-3.2.3.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/jboss/jboss-3.2.3.ebuild,v 1.1 2003/12/20 08:49:23 mkennedy Exp $ + +MY_P="${P}-src" + +DESCRIPTION="The JBoss/Server is the leading Open Source, standards-compliant, J2EE based application server implemented in 100% Pure Java." +SRC_URI="mirror://sourceforge/jboss/${MY_P}.tar.bz2" +RESTRICT="nomirror" +HOMEPAGE="http://www.jboss.org" +LICENSE="LGPL-2" +IUSE="doc" +SLOT="0" +KEYWORDS="~x86 ~ppc" + +RDEPEND=">=virtual/jdk-1.3" +DEPEND="${RDEPEND} + app-text/sgml-common + dev-java/ant" + +# This was once an installation into /opt. It has been changed to +# /usr/share/jboss so it conforms to the Linux Filesytem Hierarchy +# Standards. + +INSTALL_DIR=/usr/share/jboss +# INSTALL_DIR=/opt/${P} + +S=${WORKDIR}/${MY_P} + +src_compile() { + [ -n ${JDK_HOME} ] || JDK_HOME=$(java-config --jdk-home) + export JAVA_HOME=${JDK_HOME} + cd build + # For more options on the "groups" parameter, see build/build.xml + sh build.sh -Dgroups=all || die +# sh build.sh || die +} + +src_install() { + dodir ${INSTALL_DIR} + dodir ${INSTALL_DIR}/bin + + for f in run.sh shutdown.sh run.jar shutdown.jar; do + cp build/output/${PN}-${PV}/bin/${f} ${D}/${INSTALL_DIR}/bin + done + + exeinto /etc/init.d + doexe ${FILESDIR}/${PV}/init.d/jboss + dodir /etc/conf.d + cp ${FILESDIR}/${PV}/conf.d/jboss ${D}/etc/conf.d + dodir /etc/env.d + cp ${FILESDIR}/${PV}/env.d/50jboss ${D}/etc/env.d + sed "s#@JBOSSPREFIX@#${INSTALL_DIR}#" \ + <${FILESDIR}/${PV}/env.d/50jboss \ + >${D}/etc/env.d/50jboss + echo 'CONFIG_PROTECT="/var/lib/jboss"' >>${D}/etc/env.d/50jboss + + for i in build/output/${PN}-${PV}/server \ + build/output/${PN}-${PV}/lib \ + build/output/${PN}-${PV}/client + do + cp -a $i ${D}/${INSTALL_DIR}/ + done + + dodir /var/lib/jboss + mv ${D}/${INSTALL_DIR}/server/{all,default,minimal} ${D}/var/lib/jboss + for server in all default minimal; do + cp ${FILESDIR}/${PV}/log4j.xml ${D}/var/lib/jboss/${server}/conf/ + done + rmdir ${D}/${INSTALL_DIR}/server + + local classpath + classpath=$(find ${D}/${INSTALL_DIR}/client -type f -name \*.jar |sed "s,${D}/,,g") + classpath=$(echo ${classpath}) + cat >${D}/usr/share/jboss/package.env <<EOF +DESCRIPTION='Client side libraries for JBoss' +CLASSPATH='${classpath// /:}' +EOF + + dodoc server/src/docs/LICENSE.txt ${FILESDIR}/README.gentoo + cp -r build/output/${PN}-${PV}/docs/examples ${D}/usr/share/doc/${PF}/ + + insinto /usr/share/sgml/jboss/ + doins build/output/${P}/docs/dtd/* + doins ${FILESDIR}/${PV}/catalog + + keepdir /var/log/jboss + keepdir /var/tmp/jboss + keepdir /var/cache/jboss +} + +without_error() { + $@ &>/dev/null || true +} + +pkg_postinst() { + without_error userdel jboss + without_error groupdel jboss + if ! enewgroup jboss || ! enewuser jboss -1 /bin/sh /dev/null jboss; then + die "Unable to add jboss user and jboss group." + fi + + for dir in /var/log/jboss /var/tmp/jboss /var/cache/jboss /var/lib/jboss; do + chown -R jboss:jboss ${dir} + chmod o-rwx ${dir} + done + + install-catalog --add /etc/sgml/jboss.cat /usr/share/sgml/jboss/catalog +} + +pkg_prerm() { + if [ -e /etc/sgml/jboss.cat ]; then + install-catalog --remove /etc/sgml/jboss.cat /usr/share/sgml/jboss/catalog + fi +} + diff --git a/net-www/jboss/metadata.xml b/net-www/jboss/metadata.xml new file mode 100644 index 000000000000..bde0be74b322 --- /dev/null +++ b/net-www/jboss/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <maintainer> + <email>mkennedy@gentoo.org</email> + <name>Matthew Kennedy</name> + </maintainer> +</pkgmetadata> |