summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Carlson <absinthe@gentoo.org>2003-04-30 13:17:41 +0000
committerDylan Carlson <absinthe@gentoo.org>2003-04-30 13:17:41 +0000
commitb8af22ec4f56ccad49f17302185d0ca02d1713c2 (patch)
tree6bebf5c8c11520064602b1ac156db9da9d2b701a /net-www/resin
parentInitial import. (diff)
downloadgentoo-2-b8af22ec4f56ccad49f17302185d0ca02d1713c2.tar.gz
gentoo-2-b8af22ec4f56ccad49f17302185d0ca02d1713c2.tar.bz2
gentoo-2-b8af22ec4f56ccad49f17302185d0ca02d1713c2.zip
Initial import.
Diffstat (limited to 'net-www/resin')
-rw-r--r--net-www/resin/ChangeLog15
-rw-r--r--net-www/resin/Manifest7
-rw-r--r--net-www/resin/files/2.1.9/21resin2
-rw-r--r--net-www/resin/files/2.1.9/resin.conf36
-rw-r--r--net-www/resin/files/2.1.9/resin.diff20
-rw-r--r--net-www/resin/files/2.1.9/resin.init32
-rw-r--r--net-www/resin/files/digest-resin-2.1.91
-rw-r--r--net-www/resin/resin-2.1.9.ebuild132
8 files changed, 242 insertions, 3 deletions
diff --git a/net-www/resin/ChangeLog b/net-www/resin/ChangeLog
new file mode 100644
index 000000000000..ba53b7bb4b7f
--- /dev/null
+++ b/net-www/resin/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for net-www/resin
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/resin/ChangeLog,v 1.1 2003/04/30 13:17:37 absinthe Exp $
+
+*resin-2.1.9 (30 Apr 2003)
+
+ 30 Apr 2003; Dylan Carlson <absinthe@gentoo.org> resin-2.1.9.ebuild,
+ files/2.1.9/21resin, files/2.1.9/resin.conf, files/2.1.9/resin.diff,
+ files/2.1.9/resin.init:
+ Initial import -- also closes #11778.
+
+ This is a binary ebuild until the source dist is sane enough where this
+ can be changed.
+
+ There are verbose post-installation comments; be sure to read them.
diff --git a/net-www/resin/Manifest b/net-www/resin/Manifest
index afcc89fdd2f7..af5b401dfcdc 100644
--- a/net-www/resin/Manifest
+++ b/net-www/resin/Manifest
@@ -1,6 +1,7 @@
-MD5 e7580eeee44c3a22971b128a1d7f46d2 resin-2.1.9.ebuild 3443
+MD5 bd50e905796e02dfce57f0c4bb6d04a8 ChangeLog 612
+MD5 5258d4802b69109a8fc88728a0f76a14 resin-2.1.9.ebuild 3540
MD5 5837c42d665786c9555b544428725ff6 files/digest-resin-2.1.9 64
-MD5 58c77e20578ce390691bd8d5adca7558 files/2.1.9/resin.conf 1136
+MD5 61545d3923eb43c48bd061ab224875d3 files/2.1.9/resin.conf 1237
MD5 cc895b3b901369aa2c6d80fb88369113 files/2.1.9/resin.diff 504
-MD5 2537d24b925fbc2faf07b5e231b2e584 files/2.1.9/resin.init 672
+MD5 c8ceba3ae7f7021c9357703d4e0605e7 files/2.1.9/resin.init 773
MD5 a810be4b68e920ebc5d2cf8160a5642a files/2.1.9/21resin 53
diff --git a/net-www/resin/files/2.1.9/21resin b/net-www/resin/files/2.1.9/21resin
new file mode 100644
index 000000000000..5a3ecc5b6e96
--- /dev/null
+++ b/net-www/resin/files/2.1.9/21resin
@@ -0,0 +1,2 @@
+RESIN_HOME=/opt/resin
+CONFIG_PROTECT=/opt/resin/conf
diff --git a/net-www/resin/files/2.1.9/resin.conf b/net-www/resin/files/2.1.9/resin.conf
new file mode 100644
index 000000000000..0504640fa641
--- /dev/null
+++ b/net-www/resin/files/2.1.9/resin.conf
@@ -0,0 +1,36 @@
+# $Header: /var/cvsroot/gentoo-x86/net-www/resin/files/2.1.9/resin.conf,v 1.1 2003/04/30 13:17:37 absinthe Exp $
+
+# JVM Runtime
+# Using the default setting, it will determine your JVM from the system-vm
+# set using java-config.
+# See java-config(1) manual page for assistance in determining this value.
+#
+# You can override this value with whatever path you wish.
+# Example: JAVA_HOME=/opt/sun-jdk-1.4.1.01
+
+JAVA_HOME=`/bin/grep -e "JAVA_HOME" /etc/profile.env | /bin/sed -e "s/^.*'\(.*\)'$/\1/"`
+
+# (Optional) Java runtime options used when the "start", "stop", or "run"
+# commands are executed.
+# JAVA_OPTS=""
+
+# Where your Resin is installed
+RESIN_HOME=/opt/resin
+SERVER_ROOT=${RESIN_HOME}
+
+# Resin's User
+RESIN_USER=resin
+
+# Resin Log Locations
+RESIN_OUT=/var/log/resin/resin_out.log
+RESIN_ERR=/var/log/resin/resin_err.log
+
+# Location of the Resin JARs and classes
+RESIN_LIBDIR=/usr/share/resin/lib
+
+# The CLASSPATH for Resin to use, plus any others you need.
+CLASSPATH=`/bin/grep -e "CLASSPATH" /usr/share/resin/package.env | /bin/sed -e "s/CLASSPATH=//"`:${RESIN_LIBDIR}/lib
+
+# START/STOP settings
+RESIN_START="-java_home ${JAVA_HOME} -resin_home ${RESIN_HOME} -stdout ${RESIN_OUT} -stderr ${RESIN_ERR} start"
+RESIN_STOP="stop"
diff --git a/net-www/resin/files/2.1.9/resin.diff b/net-www/resin/files/2.1.9/resin.diff
new file mode 100644
index 000000000000..156f1e020d31
--- /dev/null
+++ b/net-www/resin/files/2.1.9/resin.diff
@@ -0,0 +1,20 @@
+--- bin/wrapper.pl.orig 2003-04-30 08:35:27.000000000 -0400
++++ bin/wrapper.pl 2003-04-30 08:39:56.000000000 -0400
+@@ -381,7 +381,7 @@
+ chop($pid);
+
+ if ($cmd eq "stop") {
+- print("Stopping ${name}\n");
++ print("");
+ }
+ kill(15, $pid);
+ unlink($pid_file);
+@@ -652,7 +652,7 @@
+ $date = `date`;
+ chop($date);
+
+- print("Resin $name $cmd at $date\n");
++ print("");
+
+ # create a keepalive socket
+ # when the wrapper dies, the httpd class will detect that and
diff --git a/net-www/resin/files/2.1.9/resin.init b/net-www/resin/files/2.1.9/resin.init
new file mode 100644
index 000000000000..3c2576154d4a
--- /dev/null
+++ b/net-www/resin/files/2.1.9/resin.init
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-www/resin/files/2.1.9/resin.init,v 1.1 2003/04/30 13:17:37 absinthe Exp $
+
+depend() {
+ need net
+ use dns logger mysql postgresql
+}
+
+start() {
+ ebegin "Starting Resin"
+ cd ${RESIN_HOME}
+ su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_START}"
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping Resin"
+ su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_STOP}"
+ sleep 2
+ eend $?
+}
+
+svc_restart () {
+ ebegin "Restarting Resin"
+ su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_STOP}"
+ sleep 5
+ cd ${RESIN_HOME}
+ su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_START}"
+ eend $?
+}
diff --git a/net-www/resin/files/digest-resin-2.1.9 b/net-www/resin/files/digest-resin-2.1.9
new file mode 100644
index 000000000000..c0fad8e27467
--- /dev/null
+++ b/net-www/resin/files/digest-resin-2.1.9
@@ -0,0 +1 @@
+MD5 6f64fa9f520756110a30c8f9ea4f1a9c resin-2.1.9.tar.gz 3278232
diff --git a/net-www/resin/resin-2.1.9.ebuild b/net-www/resin/resin-2.1.9.ebuild
new file mode 100644
index 000000000000..f5b9ca18edc4
--- /dev/null
+++ b/net-www/resin/resin-2.1.9.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/resin/resin-2.1.9.ebuild,v 1.1 2003/04/30 13:17:37 absinthe Exp $
+
+inherit java-pkg
+
+S=${WORKDIR}/${P}
+DESCRIPTION="A fast Servlet 2.3 and JSP 1.2 engine with EJB and distributed session load balancing."
+SRC_URI="http://www.caucho.com/download/${P}.tar.gz"
+HOMEPAGE="http://www.caucho.com"
+KEYWORDS="~x86 ~ppc ~sparc"
+LICENSE="CAUCHO"
+SLOT="0"
+RDEPEND=">=virtual/jdk-1.2"
+
+pkg_setup() {
+ if ! groupmod resin ; then
+ groupadd -g 268 resin || die "problem adding group resin, gid 268"
+ fi
+ if ! id resin; then
+ useradd -u 268 -g resin -s /bin/bash -d /opt/resin -c "Apache Tomcat" resin || die "problem adding user resin, uid 268"
+ fi
+}
+
+src_compile() {
+ epatch ${FILESDIR}/${PV}/${PN}.diff
+}
+
+src_install() {
+ cd ${S}
+ RESIN_HOME="/opt/resin"
+ INSTALLING="yes"
+ DIROPTIONS="--mode=0775 --owner=resin --group=resin"
+
+ # Create directories
+ dodir ${RESIN_HOME}
+ dodir /var/log/${PN}
+ dosym /var/log/${PN} ${RESIN_HOME}/logs
+ touch ${D}/var/log/${PN}/.keep
+
+ # INIT SCRIPTS AND ENV
+
+ cp -a ${FILESDIR}/${PV}/resin.init ${S}/resin
+ insinto /etc/init.d
+ insopts -m0750
+ doins ${S}/resin
+
+ cp -a ${FILESDIR}/${PV}/resin.conf ${S}/resin
+ insinto /etc/conf.d
+ insopts -m0755
+ doins ${S}/resin
+
+ cp -a ${FILESDIR}/${PV}/21resin ${S}/21resin
+ insinto /etc/env.d
+ insopts -m0755
+ doins ${S}/21resin
+
+ chown -R resin.resin ${S}
+
+ dodir /opt/resin || die
+ dodoc LICENSE readme.txt
+
+ java-pkg_dojar lib/*.jar
+
+ cp -Rdp \
+ bin \
+ doc \
+ conf \
+ contrib \
+ webapps \
+ xsl \
+ ${D}${RESIN_HOME} || die
+ dosym /usr/share/${PN}/lib ${RESIN_HOME}/lib
+
+ dodir /etc/env.d
+ insinto /etc/env.d
+ doins ${FILESDIR}/${PV}/21resin
+}
+
+pkg_postinst() {
+ einfo " "
+ einfo " NOTICE!"
+ einfo " User and group 'resin' have been added."
+ einfo " "
+ einfo " FILE LOCATIONS:"
+ einfo " 1. Resin home directory: ${RESIN_HOME}"
+ einfo " Contains application data, configuration files."
+ einfo " 2. Runtime settings: /etc/conf.d/resin"
+ einfo " Contains CLASSPATH and JAVA_HOME settings."
+ einfo " 3. Logs: /var/log/resin/"
+ einfo " 4. Executables, libraries: /usr/share/resin/"
+ einfo " "
+ einfo " "
+ einfo " STARTING AND STOPPING RESIN:"
+ einfo " /etc/init.d/resin start"
+ einfo " /etc/init.d/resin stop"
+ einfo " /etc/init.d/resin restart"
+ einfo " "
+ einfo " "
+ einfo " NETWORK CONFIGURATION:"
+ einfo " By default, Resin runs on port 8080. You can change this"
+ einfo " value by editing ${RESIN_HOME}/conf/resin.conf."
+ einfo " "
+ einfo " To test Resin while it's running, point your web browser to:"
+ einfo " http://localhost:8080/"
+ einfo " "
+ einfo " Resin cannot run on port 80 as non-root (as of this time)."
+ einfo " The best way to get Resin to respond on port 80 is via port"
+ einfo " forwarding -- by installing a firewall on the machine running"
+ einfo " Resin or the network gateway. Simply redirect port 80 to"
+ einfo " port 8080."
+ einfo " "
+ einfo " BUGS:"
+ einfo " Please file any bugs at http://bugs.gentoo.org/ or else it"
+ einfo " may not get seen. Thank you."
+ einfo " "
+ echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1
+ sleep 10
+
+}
+
+pkg_postrm() {
+ if [ -z "${INSTALLING}" ] ; then
+ einfo ">>> Removing user for Resin"
+ userdel resin || die "Error removing Resin user"
+ einfo ">>> Removing group for Resin"
+ groupdel resin || die "Error removing Resin group"
+ else
+ einfo ">>> Resin user and group preserved"
+ fi
+}
+