diff options
author | Dylan Carlson <absinthe@gentoo.org> | 2003-03-17 09:19:09 +0000 |
---|---|---|
committer | Dylan Carlson <absinthe@gentoo.org> | 2003-03-17 09:19:09 +0000 |
commit | a3a9bc5dda712f288ca9952cfd867b596b23723b (patch) | |
tree | b9b82e72c7216ec91ca735cf7e9cf3688c08d3d0 /net-www | |
parent | new version (diff) | |
download | historical-a3a9bc5dda712f288ca9952cfd867b596b23723b.tar.gz historical-a3a9bc5dda712f288ca9952cfd867b596b23723b.tar.bz2 historical-a3a9bc5dda712f288ca9952cfd867b596b23723b.zip |
Version bump. Connector patch; numerous fixes; 'doc' use flag added.
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/jboss/ChangeLog | 10 | ||||
-rw-r--r-- | net-www/jboss/files/digest-jboss-3.0.6 | 1 | ||||
-rw-r--r-- | net-www/jboss/files/jboss-3.0.6-connector.patch | 18 | ||||
-rw-r--r-- | net-www/jboss/jboss-3.0.6.ebuild | 103 |
4 files changed, 131 insertions, 1 deletions
diff --git a/net-www/jboss/ChangeLog b/net-www/jboss/ChangeLog index ba85a6e48d06..6cc509286ed9 100644 --- a/net-www/jboss/ChangeLog +++ b/net-www/jboss/ChangeLog @@ -1,6 +1,14 @@ # 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.4 2003/02/18 10:06:55 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/jboss/ChangeLog,v 1.5 2003/03/17 09:19:09 absinthe Exp $ + +*jboss-3.0.6 (17 Mar 2003) + + 17 Mar 2003; Dylan Carlson <absinthe@gentoo.org> jboss-3.0.6.ebuild, + files/jboss-3.0.6-connector.patch: + Version bump. Closes bug # 15642, thanks to Roman Majer <roman.majer@ct.cz> + for the connector patch. Added 'doc' use flag for API docs. Numerous minor + ebuild fixes. *jboss-3.0.1_rc1 (14 Jul 2002) diff --git a/net-www/jboss/files/digest-jboss-3.0.6 b/net-www/jboss/files/digest-jboss-3.0.6 new file mode 100644 index 000000000000..867b3e74f795 --- /dev/null +++ b/net-www/jboss/files/digest-jboss-3.0.6 @@ -0,0 +1 @@ +MD5 c3c05302658dbf0c073d8b7a2bf6f74f jboss-3.0.6-src.tgz 21080667 diff --git a/net-www/jboss/files/jboss-3.0.6-connector.patch b/net-www/jboss/files/jboss-3.0.6-connector.patch new file mode 100644 index 000000000000..0dc445adf406 --- /dev/null +++ b/net-www/jboss/files/jboss-3.0.6-connector.patch @@ -0,0 +1,18 @@ +--- connector/build.xml 2002-10-07 22:19:32.000000000 +0200 ++++ connector/build.new.xml 2003-02-13 17:35:32.000000000 +0100 +@@ -543,6 +543,7 @@ + + + <!-- Force the use of SAXON XSLT --> ++<!-- + <property system="true" + name="javax.xml.transform.TransformerFactory" + value="com.icl.saxon.TransformerFactoryImpl"/> +@@ -557,6 +558,7 @@ + <param name="quiet" expression="${oasis.docbook.xsl.chunker.quiet}"/> + <param name="base.dir" expression="${build.jmx-api}${file.separator}"/> + </style> ++--> + + </target> + diff --git a/net-www/jboss/jboss-3.0.6.ebuild b/net-www/jboss/jboss-3.0.6.ebuild new file mode 100644 index 000000000000..dbfcd010fc7e --- /dev/null +++ b/net-www/jboss/jboss-3.0.6.ebuild @@ -0,0 +1,103 @@ +# 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.0.6.ebuild,v 1.1 2003/03/17 09:19:09 absinthe Exp $ + +MY_P="jboss-3.0.6-src" +S=${WORKDIR}/${MY_P} + +DESCRIPTION="The Open Source J2EE app server implementation" +SRC_URI="mirror://sourceforge/jboss/${MY_P}.tgz" +HOMEPAGE="http://www.jboss.org" +LICENSE="LGPL" +IUSE="doc" + +RDEPEND=">=virtual/jdk-1.3" + +DEPEND="${RDEPEND} + dev-java/ant" + +SLOT="0" +KEYWORDS="~x86" + +INSTALL_DIR=/opt/${P} + +src_unpack() { + unpack $MY_P.tgz + cd ${S} + patch -p0 < ${FILESDIR}/${P}-connector.patch || die +} + +src_compile() { + export JAVA_HOME=${JDK_HOME} + cd build + sh build.sh || die +} + +pkg_preinst() { + einfo ">>> Adding user and group for JBoss" + if ! groupmod jboss ; then + groupadd jboss || die "problem adding jboss group" + fi + if ! id jboss ; then + useradd jboss -g jboss || die "problem adding jboss user" + fi +} + +src_install() { + + dodir ${INSTALL_DIR} + dodir ${INSTALL_DIR}/bin + + cp build/output/${PN}-${PV}/bin/run.sh ${D}/${INSTALL_DIR}/bin + cp build/output/${PN}-${PV}/bin/shutdown.sh ${D}/${INSTALL_DIR}/bin + cp build/output/${PN}-${PV}/bin/run.jar ${D}/${INSTALL_DIR}/bin + cp build/output/${PN}-${PV}/bin/shutdown.jar ${D}/${INSTALL_DIR}/bin + + exeinto /etc/init.d + doexe ${FILESDIR}/init.d/jboss + exeinto /etc/conf.d + sed -e "s#@jbossprefix@#/opt/${P}#" ${FILESDIR}/conf.d/jboss >${D}/etc/conf.d/jboss + + einfo ">>> Setting up configuration files and library packages..." + local dirs="build/output/${PN}-${PV}/server build/output/${PN}-${PV}/lib" + for i in $dirs ; do + cp -a $i ${D}/${INSTALL_DIR}/ + done + cp ${FILESDIR}/log4j.xml ${D}/${INSTALL_DIR}/server/all/conf + cp ${FILESDIR}/log4j.xml ${D}/${INSTALL_DIR}/server/default/conf + cp ${FILESDIR}/log4j.xml ${D}/${INSTALL_DIR}/server/minimal/conf + + einfo ">>> Installing client libraries..." + local dirs="build/output/${PN}-${PV}/client/*" + for i in $dirs ; do + dojar $i + done + + einfo ">>> Setting up documentation..." + dodoc build/output/${PN}-${PV}/docs/LICENSE.txt ${FILESDIR}/README.gentoo + if [ -n "`use doc`" ] ; then + dohtml -a html,htm,png,gif,css,java -r build/output/${PN}-${PV}/docs/ + fi + + einfo ">>> Creating log directory..." + dodir /var/log/jboss + touch ${D}/var/log/jboss/.keep +} + +pkg_postinst() { + einfo ">>> Assigning access rights..." + chown -R jboss ${INSTALL_DIR}/server + chgrp -R jboss ${INSTALL_DIR}/server + chown jboss /var/log/jboss + chgrp jboss /var/log/jboss +} + +pkg_postrm() { + einfo ">>> Removing user and group for JBoss" + if ! groupmod jboss ; then + groupdel jboss + fi + if ! id jboss ; then + userdel jboss + fi +} |