summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-02-06 16:18:07 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-02-06 16:18:07 +0000
commitea02240d1d4324d737e181824021cfa6df75d227 (patch)
treee2110c3b568157062aaaa02bfe2840c4caa11f56 /dev-java/openjms
parentNew package for the caml-light language. (diff)
downloadhistorical-ea02240d1d4324d737e181824021cfa6df75d227.tar.gz
historical-ea02240d1d4324d737e181824021cfa6df75d227.tar.bz2
historical-ea02240d1d4324d737e181824021cfa6df75d227.zip
Initial import, fixes #63286
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-java/openjms')
-rw-r--r--dev-java/openjms/ChangeLog12
-rw-r--r--dev-java/openjms/Manifest9
-rw-r--r--dev-java/openjms/files/0.7.6.1/10openjms-0.7.6.11
-rw-r--r--dev-java/openjms/files/0.7.6.1/buildfile.patch.bz2bin0 -> 797 bytes
-rw-r--r--dev-java/openjms/files/0.7.6.1/conf1
-rw-r--r--dev-java/openjms/files/0.7.6.1/rc241
-rw-r--r--dev-java/openjms/files/0.7.6.1/source.patch.bz2bin0 -> 2628 bytes
-rw-r--r--dev-java/openjms/files/digest-openjms-0.7.6.12
-rw-r--r--dev-java/openjms/metadata.xml5
-rw-r--r--dev-java/openjms/openjms-0.7.6.1.ebuild92
10 files changed, 163 insertions, 0 deletions
diff --git a/dev-java/openjms/ChangeLog b/dev-java/openjms/ChangeLog
new file mode 100644
index 000000000000..136e9c8e6575
--- /dev/null
+++ b/dev-java/openjms/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-java/openjms
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/ChangeLog,v 1.1 2005/02/06 16:18:07 luckyduck Exp $
+
+*openjms-0.7.6.1 (06 Feb 2005)
+
+ 06 Feb 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/0.7.6.1/10openjms-0.7.6.1, +files/0.7.6.1/buildfile.patch.bz2,
+ +files/0.7.6.1/conf, +files/0.7.6.1/rc2, +files/0.7.6.1/source.patch.bz2,
+ +openjms-0.7.6.1.ebuild:
+ Initial import, fixes #63286
+
diff --git a/dev-java/openjms/Manifest b/dev-java/openjms/Manifest
new file mode 100644
index 000000000000..26bb22e0f416
--- /dev/null
+++ b/dev-java/openjms/Manifest
@@ -0,0 +1,9 @@
+MD5 f8b6c076199b12a4e648afdbb23cc1b5 openjms-0.7.6.1.ebuild 2283
+MD5 aef1f30bf052d563e4387c6f77190e58 ChangeLog 514
+MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
+MD5 8727b914d0542c7961c2cf56f8114e46 files/digest-openjms-0.7.6.1 145
+MD5 d1af3351d5e9ab88690027aab468d22b files/0.7.6.1/rc2 759
+MD5 fdae6fd4595f87aba37b3a3674faf490 files/0.7.6.1/conf 21
+MD5 2b897d3922776b256092ce64beb2792c files/0.7.6.1/source.patch.bz2 2628
+MD5 11397a4bdb1b5d7d6a489766a6c58279 files/0.7.6.1/buildfile.patch.bz2 797
+MD5 c515bd2931ce697be23219be4556b62e files/0.7.6.1/10openjms-0.7.6.1 37
diff --git a/dev-java/openjms/files/0.7.6.1/10openjms-0.7.6.1 b/dev-java/openjms/files/0.7.6.1/10openjms-0.7.6.1
new file mode 100644
index 000000000000..ab4ed71a978d
--- /dev/null
+++ b/dev-java/openjms/files/0.7.6.1/10openjms-0.7.6.1
@@ -0,0 +1 @@
+CONFIG_PROTECT="/opt/openjms/config"
diff --git a/dev-java/openjms/files/0.7.6.1/buildfile.patch.bz2 b/dev-java/openjms/files/0.7.6.1/buildfile.patch.bz2
new file mode 100644
index 000000000000..02cb5c1e0b07
--- /dev/null
+++ b/dev-java/openjms/files/0.7.6.1/buildfile.patch.bz2
Binary files differ
diff --git a/dev-java/openjms/files/0.7.6.1/conf b/dev-java/openjms/files/0.7.6.1/conf
new file mode 100644
index 000000000000..e62a1eaa56db
--- /dev/null
+++ b/dev-java/openjms/files/0.7.6.1/conf
@@ -0,0 +1 @@
+JMSDIR=/opt/openjms/
diff --git a/dev-java/openjms/files/0.7.6.1/rc2 b/dev-java/openjms/files/0.7.6.1/rc2
new file mode 100644
index 000000000000..0cdaa1e6ac58
--- /dev/null
+++ b/dev-java/openjms/files/0.7.6.1/rc2
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+check_config() {
+ [ -n "${JMSDIR}" ] || return 1
+ if [ -z "${JAVA_HOME}" ]; then
+ JAVA_HOME="$(/usr/bin/java-config --jre-home)"
+ if [ -z "${JAVA_HOME}" ]; then
+ JAVA_HOME="$(/usr/bin/java-config --jdk-home)"
+ fi
+ fi
+ export JAVA_HOME
+ [ -n "${JAVA_HOME}" ] || return 1
+}
+
+# See how we were called.
+start() {
+ check_config || return 1
+ ebegin "Starting JMS server"
+ cd ${JMSDIR}bin
+ ./startup.sh > /var/log/openjms.log 2>&1 &
+ sleep 5
+ if ps ax|grep '[o]rg\.exolab\.jms\.server\.JmsServer' > /dev/null; then
+ eend 0
+ else
+ eend 1
+ fi
+}
+stop() {
+ check_config || return 1
+ ebegin "Stopping JMS server"
+ cd ${JMSDIR}/bin
+ if ./shutdown.sh 2>&1 |grep '[Ff]ailed' > /dev/null; then
+ eend 1
+ else
+ eend 0
+ fi
+}
diff --git a/dev-java/openjms/files/0.7.6.1/source.patch.bz2 b/dev-java/openjms/files/0.7.6.1/source.patch.bz2
new file mode 100644
index 000000000000..8ce3a3535aec
--- /dev/null
+++ b/dev-java/openjms/files/0.7.6.1/source.patch.bz2
Binary files differ
diff --git a/dev-java/openjms/files/digest-openjms-0.7.6.1 b/dev-java/openjms/files/digest-openjms-0.7.6.1
new file mode 100644
index 000000000000..fcd05c4dce1b
--- /dev/null
+++ b/dev-java/openjms/files/digest-openjms-0.7.6.1
@@ -0,0 +1,2 @@
+MD5 eb72c8a4141371cc373ab4e09314b2c8 openjms-0.7.6.1-src.tar.gz 7665924
+MD5 2c87474700becdf9501c5009464e3d0b openjms-0.7.6.1-scripts.tar.gz 8737
diff --git a/dev-java/openjms/metadata.xml b/dev-java/openjms/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/openjms/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>
diff --git a/dev-java/openjms/openjms-0.7.6.1.ebuild b/dev-java/openjms/openjms-0.7.6.1.ebuild
new file mode 100644
index 000000000000..a19b521d900b
--- /dev/null
+++ b/dev-java/openjms/openjms-0.7.6.1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/openjms-0.7.6.1.ebuild,v 1.1 2005/02/06 16:18:07 luckyduck Exp $
+
+inherit java-pkg eutils
+
+SLOT="0"
+LICENSE="GPL-2"
+DESCRIPTION="Open Java Messaging System"
+HOMEPAGE="http://openjms.sourceforge.net/"
+KEYWORDS="~x86 ~amd64"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz
+ mirror://gentoo/${P}-scripts.tar.gz"
+IUSE="doc jikes"
+DEPEND=">=virtual/jdk-1.4
+ dev-java/ant
+ virtual/libc"
+RDEPEND="virtual/jdk
+ >=virtual/jre-1.4
+ dev-java/antlr
+ =dev-java/castor-0.9*
+ dev-java/cdegroot-db
+ dev-java/commons-collections
+ dev-java/commons-dbcp
+ dev-java/commons-logging
+ dev-java/commons-pool
+ dev-java/concurrent-util
+ dev-java/exolabcore
+ dev-db/hsqldb
+ dev-java/jms
+ dev-java/jta
+ dev-java/log4j
+ dev-java/oro
+ ~dev-java/servletapi-2.3
+ =dev-java/xerces-2.3*"
+
+src_unpack() {
+ unpack ${A}
+ mv ${WORKDIR}/bin ${S}
+ mv ${WORKDIR}/config ${S}
+
+
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/buildfile.patch.bz2
+ epatch ${FILESDIR}/${PV}/source.patch.bz2
+
+ cd ${S}/lib
+ rm -f *.jar
+
+ java-pkg_jar-from antlr
+ java-pkg_jar-from castor-0.9
+ java-pkg_jar-from cdegroot-db-1
+ java-pkg_jar-from commons-collections
+ java-pkg_jar-from commons-dbcp
+ java-pkg_jar-from commons-logging
+ java-pkg_jar-from commons-pool
+ java-pkg_jar-from concurrent-util
+ java-pkg_jar-from exolabcore
+ java-pkg_jar-from hsqldb
+ java-pkg_jar-from jdbm-1
+ java-pkg_jar-from jms
+ java-pkg_jar-from jta
+ java-pkg_jar-from log4j
+ java-pkg_jar-from servletapi-2.3
+ java-pkg_jar-from xerces-2.3
+}
+
+src_compile() {
+ local antflags="jar war"
+ use doc && antflags="${antflags}"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "ant failed"
+}
+
+src_install() {
+ mv ${S}/lib/${P}.jar ${S}/lib/${PN}.jar
+ mv ${S}/lib/${PN}-client-${PV}.jar ${S}/lib/${PN}-client.jar
+ java-pkg_dojar lib/${PN}*.jar
+ java-pkg_dowar lib/${PN}.war
+
+ dodir /opt/${PN}
+ cp -rP {bin,config,lib} ${D}/opt/${PN}/
+ use doc && cp -rP {docs,src} ${D}/opt/${PN}/
+
+ fperms 755 /opt/${PN}/bin/*
+ insinto /etc/env.d/
+ newins ${FILESDIR}/${PV}/10${P} 10${PN}
+ exeinto /etc/init.d/
+ newexe ${FILESDIR}/${PV}/rc2 openjms
+ insinto /etc/conf.d
+ newins ${FILESDIR}/${PV}/conf openjms
+}