From 5bd0ba05d3d9ce0b561c0f5f52e3dbea8835dfef Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Fri, 16 Jan 2004 03:41:22 +0000 Subject: Make the RC script work :) --- dev-java/openjms-bin/ChangeLog | 10 ++++-- dev-java/openjms-bin/Manifest | 5 ++- .../openjms-bin/files/digest-openjms-bin-0.7.5-r3 | 1 + dev-java/openjms-bin/files/rc2 | 41 ++++++++++++++++++++++ dev-java/openjms-bin/openjms-bin-0.7.5-r3.ebuild | 32 +++++++++++++++++ 5 files changed, 86 insertions(+), 3 deletions(-) create mode 100644 dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r3 create mode 100644 dev-java/openjms-bin/files/rc2 create mode 100644 dev-java/openjms-bin/openjms-bin-0.7.5-r3.ebuild (limited to 'dev-java/openjms-bin') diff --git a/dev-java/openjms-bin/ChangeLog b/dev-java/openjms-bin/ChangeLog index a2eeb2a452e0..b2d550e3fb82 100644 --- a/dev-java/openjms-bin/ChangeLog +++ b/dev-java/openjms-bin/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/openjms-bin -# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms-bin/ChangeLog,v 1.4 2004/01/06 15:46:06 lostlogic Exp $ +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms-bin/ChangeLog,v 1.5 2004/01/16 03:41:22 lostlogic Exp $ + +*openjms-bin-0.7.5-r3 (15 Jan 2004) + + 15 Jan 2004; Brandon Low openjms-bin-0.7.5-r3.ebuild, + files/rc2: + Make the RC script work :) *openjms-bin-0.7.5-r2 (06 Jan 2004) diff --git a/dev-java/openjms-bin/Manifest b/dev-java/openjms-bin/Manifest index fc7b4809cccf..dd2ee2eb3de2 100644 --- a/dev-java/openjms-bin/Manifest +++ b/dev-java/openjms-bin/Manifest @@ -1,10 +1,13 @@ MD5 826bf7e7aa1118aeada60acb8960242c openjms-bin-0.7.5.ebuild 572 MD5 7a1276e5c1e9d9c03432049e8e6c8f85 openjms-bin-0.7.5-r2.ebuild 784 MD5 4957071fc1507284f17b03865103c8be openjms-bin-0.7.5-r1.ebuild 716 -MD5 f6e9a63cd1e51e9b6b477c233a27cbdc ChangeLog 860 +MD5 98b2555d1fefe275d3182b31ca8f2333 openjms-bin-0.7.5-r3.ebuild 785 +MD5 10bfa3f4c4c452c7b5c681c4aceff04e ChangeLog 1019 MD5 42fa91f02427c73b570e4907058ea05e files/rc 535 +MD5 463cee3ced345a76c84d5a3acfcc2d81 files/rc2 777 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-r2 63 +MD5 1461aa95027a29b9282a711045a06058 files/digest-openjms-bin-0.7.5-r3 63 MD5 1c1f7f56172148c05424af03c5a42148 files/10openjms-0.7.5 43 MD5 1461aa95027a29b9282a711045a06058 files/digest-openjms-bin-0.7.5 63 diff --git a/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r3 b/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r3 new file mode 100644 index 000000000000..3b88a4333b78 --- /dev/null +++ b/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r3 @@ -0,0 +1 @@ +MD5 7d78003bdb3935e47ab34cd9f291498a openjms-0.7.5.tgz 7970936 diff --git a/dev-java/openjms-bin/files/rc2 b/dev-java/openjms-bin/files/rc2 new file mode 100644 index 000000000000..47a2ab350705 --- /dev/null +++ b/dev-java/openjms-bin/files/rc2 @@ -0,0 +1,41 @@ +#!/sbin/runscript + +depend() { + need net firebird xinetd +} + +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 + ./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-r3.ebuild b/dev-java/openjms-bin/openjms-bin-0.7.5-r3.ebuild new file mode 100644 index 000000000000..b6202bb65b1b --- /dev/null +++ b/dev-java/openjms-bin/openjms-bin-0.7.5-r3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2004 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-r3.ebuild,v 1.1 2004/01/16 03:41:22 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/* + insinto /etc/env.d/ + newins ${FILESDIR}/10${P/-bin/} 10${PN/-bin/} + exeinto /etc/init.d/ + newexe ${FILESDIR}/rc2 openjms + insinto /etc/conf.d + newins ${FILESDIR}/conf openjms +} -- cgit v1.2.3-65-gdbad