summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2004-01-05 23:22:43 +0000
committerBrandon Low <lostlogic@gentoo.org>2004-01-05 23:22:43 +0000
commitbf3eb50018a18117e1688eddf2316fd51f5f0647 (patch)
treeeef36bd52054cc84254d139aa703c5b12096f91a
parentMake bin dir executable, and add a startup script (diff)
downloadhistorical-bf3eb50018a18117e1688eddf2316fd51f5f0647.tar.gz
historical-bf3eb50018a18117e1688eddf2316fd51f5f0647.tar.bz2
historical-bf3eb50018a18117e1688eddf2316fd51f5f0647.zip
Make bin dir executable, and add a startup script
-rw-r--r--dev-java/openjms-bin/Manifest6
-rw-r--r--dev-java/openjms-bin/files/conf1
-rw-r--r--dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r11
-rw-r--r--dev-java/openjms-bin/files/rc35
-rw-r--r--dev-java/openjms-bin/openjms-bin-0.7.5-r1.ebuild30
5 files changed, 70 insertions, 3 deletions
diff --git a/dev-java/openjms-bin/Manifest b/dev-java/openjms-bin/Manifest
index a204a54f65af..6b03517373d8 100644
--- a/dev-java/openjms-bin/Manifest
+++ b/dev-java/openjms-bin/Manifest
@@ -1,7 +1,7 @@
MD5 826bf7e7aa1118aeada60acb8960242c openjms-bin-0.7.5.ebuild 572
-MD5 f46bcb986448c7536ba51888a9b00ffe openjms-bin-0.7.5-r1.ebuild 707
-MD5 843b0ce63ad0f6248bb85482dd3c869e ChangeLog 472
-MD5 6f9d00dccd7e2ea6f0efc4cd36967c20 files/rc 580
+MD5 6c1cc2476f2e8fca8c31a5fce750fdfb openjms-bin-0.7.5-r1.ebuild 716
+MD5 aa11f3e345ef4ddc33dfbc6e0c42279c ChangeLog 665
+MD5 52b03e41003218cadb61ff7bd5379d53 files/rc 643
MD5 b7476bad5b940d9e264bf03b1392cf5f files/conf 27
MD5 1461aa95027a29b9282a711045a06058 files/digest-openjms-bin-0.7.5-r1 63
MD5 1461aa95027a29b9282a711045a06058 files/digest-openjms-bin-0.7.5 63
diff --git a/dev-java/openjms-bin/files/conf b/dev-java/openjms-bin/files/conf
new file mode 100644
index 000000000000..eed0adf5cf25
--- /dev/null
+++ b/dev-java/openjms-bin/files/conf
@@ -0,0 +1 @@
+JMSDIR=/opt/openjms-0.7.5/
diff --git a/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r1 b/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r1
new file mode 100644
index 000000000000..3b88a4333b78
--- /dev/null
+++ b/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r1
@@ -0,0 +1 @@
+MD5 7d78003bdb3935e47ab34cd9f291498a openjms-0.7.5.tgz 7970936
diff --git a/dev-java/openjms-bin/files/rc b/dev-java/openjms-bin/files/rc
new file mode 100644
index 000000000000..a608be2bf053
--- /dev/null
+++ b/dev-java/openjms-bin/files/rc
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+#This was heavily copied from the generic-init.d script which comes with the
+#binary version of firebird-ss
+
+depend() {
+ need net
+}
+
+check_config() {
+ [ -n "${JMSDIR}" ] || return 1
+}
+
+# See how we were called.
+start() {
+ check_config || return 1
+ ebegin "Starting JMS server"
+ cd ${JMSDIR}/bin
+ ./startjms.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-bin/openjms-bin-0.7.5-r1.ebuild b/dev-java/openjms-bin/openjms-bin-0.7.5-r1.ebuild
new file mode 100644
index 000000000000..888d309b88ba
--- /dev/null
+++ b/dev-java/openjms-bin/openjms-bin-0.7.5-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms-bin/openjms-bin-0.7.5-r1.ebuild,v 1.1 2004/01/05 23:22:24 lostlogic Exp $
+
+SLOT=0
+LICENSE="GPL-2"
+DESCRIPTION="Open Java Messaging System"
+DEPEND="virtual/glibc"
+RDEPEND="virtual/jdk"
+KEYWORDS="~x86"
+SRC_URI="mirror://sourceforge/${PN/-bin/}/${P/-bin/}.tgz"
+
+src_unpack() {
+ einfo "Nothing to unpack"
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+ dodir /opt
+ cd ${D}/opt
+ unpack ${A}
+ fperms 755 /opt/${P/-bin/}/bin/*
+ exeinto /etc/init.d/
+ newexe ${FILESDIR}/rc openjms
+ insinto /etc/conf.d
+ newins ${FILESDIR}/conf openjms
+}