diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 18:21:19 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 18:21:19 +0000 |
commit | a0361d4a775ce4a97f4b32516ada445356aeb3ed (patch) | |
tree | e1abb17c34e3cbf3842feadccf6492318fac8b94 /www-servers/resin | |
parent | The fPIC patch didn't work, so here's a fix. (Manifest recommit) (diff) | |
download | gentoo-2-a0361d4a775ce4a97f4b32516ada445356aeb3ed.tar.gz gentoo-2-a0361d4a775ce4a97f4b32516ada445356aeb3ed.tar.bz2 gentoo-2-a0361d4a775ce4a97f4b32516ada445356aeb3ed.zip |
Moved from net-www/resin to www-servers/resin.
Diffstat (limited to 'www-servers/resin')
21 files changed, 696 insertions, 0 deletions
diff --git a/www-servers/resin/ChangeLog b/www-servers/resin/ChangeLog new file mode 100644 index 000000000000..5ef83a5ad831 --- /dev/null +++ b/www-servers/resin/ChangeLog @@ -0,0 +1,51 @@ +# ChangeLog for net-www/resin +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/ChangeLog,v 1.1 2004/08/08 18:21:19 stuart Exp $ + +*resin-2.1.14 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml, + +files/2.1.14/21resin, +files/2.1.14/resin.conf, +files/2.1.14/resin.diff, + +files/2.1.14/resin.init, +files/2.1.9/21resin, +files/2.1.9/resin.conf, + +files/2.1.9/resin.diff, +files/2.1.9/resin.init, +files/3.0.8/21resin, + +files/3.0.8/resin.conf, +files/3.0.8/resin.init, + +files/3.0.8/wrapper.pl.diff, +resin-2.1.14.ebuild, +resin-2.1.9.ebuild, + +resin-3.0.8.ebuild: + Moved from net-www/resin to www-servers/resin. + +*resin-3.0.8 (30 Jul 2004) + + 30 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +files/3.0.8/21resin, + +files/3.0.8/resin.conf, +files/3.0.8/resin.init, + +files/3.0.8/wrapper.pl.diff, resin-2.1.14.ebuild, +resin-3.0.8.ebuild: + new upstream version + +*resin-2.1.14 (30 Jul 2004) + + 27 Jul 2004; Thomas Matthijs <axxo@gentoo.org> resin-2.1.14.ebuild: + Version bump + + 26 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +metadata.xml, + resin-2.1.9.ebuild: + ebuild cleanup + + 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> resin-2.1.9.ebuild: + Add inherit eutils + + 15 Dec 2003; <spider@gentoo.org> resin-2.1.9.ebuild: + QA: fixing chown user.group to user:group, bug #35127 + + 30 Apr 2003; Dylan Carlson <absinthe@gentoo.org> resin-2.1.9.ebuild: + With the addition of resin-ee, the two are now set to block each other. + +*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/www-servers/resin/Manifest b/www-servers/resin/Manifest new file mode 100644 index 000000000000..228f8982f707 --- /dev/null +++ b/www-servers/resin/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 291f6bdbd04dab23732d5edae7042fe1 resin-3.0.8.ebuild 3008 +MD5 aaa97f11aa9e852650c7439973399ef8 ChangeLog 1417 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 71aaae109bfbf0c1ccb0a1230f2c76d7 resin-2.1.14.ebuild 3046 +MD5 9c83a0cca4668dbc79df30c1385a5e4c resin-2.1.9.ebuild 3117 +MD5 0e0d2bb7422b3b0f88fe7bb4302738a1 files/digest-resin-2.1.14 65 +MD5 5837c42d665786c9555b544428725ff6 files/digest-resin-2.1.9 64 +MD5 fb879fef5b9755ced18f4715f5c8d0ca files/digest-resin-3.0.8 64 +MD5 177e0d5de914991fbf4bc14297cb1cea files/2.1.9/resin.conf 1239 +MD5 cc895b3b901369aa2c6d80fb88369113 files/2.1.9/resin.diff 504 +MD5 30f17d8fdd8dc59b8cb96cbcb6d2dd47 files/2.1.9/resin.init 748 +MD5 a810be4b68e920ebc5d2cf8160a5642a files/2.1.9/21resin 53 +MD5 bbe6be9c9b6105af982400a135816261 files/3.0.8/resin.conf 1120 +MD5 ce5ad526999297ba5f587f0e0579a44b files/3.0.8/resin.init 539 +MD5 a810be4b68e920ebc5d2cf8160a5642a files/3.0.8/21resin 53 +MD5 fc791301841bde6c69ec74e35fcc07e9 files/3.0.8/wrapper.pl.diff 526 +MD5 edcf8dbbfe51e68a46e710c40d9b4913 files/2.1.14/resin.conf 1172 +MD5 cc895b3b901369aa2c6d80fb88369113 files/2.1.14/resin.diff 504 +MD5 5a2a223ab9c787831c5b95a4707f676a files/2.1.14/resin.init 745 +MD5 a810be4b68e920ebc5d2cf8160a5642a files/2.1.14/21resin 53 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.4 (GNU/Linux) + +iD8DBQFBCZ3N/rLF9B432nYRAt27AKCDftPMfnh+QDRl5zGoQRPC3GAlhgCeOCKl +Ozgrd59A8440hL2BI3iUL/8= +=PEI3 +-----END PGP SIGNATURE----- diff --git a/www-servers/resin/files/2.1.14/21resin b/www-servers/resin/files/2.1.14/21resin new file mode 100644 index 000000000000..5a3ecc5b6e96 --- /dev/null +++ b/www-servers/resin/files/2.1.14/21resin @@ -0,0 +1,2 @@ +RESIN_HOME=/opt/resin +CONFIG_PROTECT=/opt/resin/conf diff --git a/www-servers/resin/files/2.1.14/resin.conf b/www-servers/resin/files/2.1.14/resin.conf new file mode 100644 index 000000000000..d676db94df7a --- /dev/null +++ b/www-servers/resin/files/2.1.14/resin.conf @@ -0,0 +1,36 @@ +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/2.1.14/resin.conf,v 1.1 2004/08/08 18:21:19 stuart 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=`java-config -O` + +# (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/www-servers/resin/files/2.1.14/resin.diff b/www-servers/resin/files/2.1.14/resin.diff new file mode 100644 index 000000000000..156f1e020d31 --- /dev/null +++ b/www-servers/resin/files/2.1.14/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/www-servers/resin/files/2.1.14/resin.init b/www-servers/resin/files/2.1.14/resin.init new file mode 100644 index 000000000000..93f78d489f6b --- /dev/null +++ b/www-servers/resin/files/2.1.14/resin.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/2.1.14/resin.init,v 1.1 2004/08/08 18:21:19 stuart 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 $? +} + +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/www-servers/resin/files/2.1.9/21resin b/www-servers/resin/files/2.1.9/21resin new file mode 100644 index 000000000000..5a3ecc5b6e96 --- /dev/null +++ b/www-servers/resin/files/2.1.9/21resin @@ -0,0 +1,2 @@ +RESIN_HOME=/opt/resin +CONFIG_PROTECT=/opt/resin/conf diff --git a/www-servers/resin/files/2.1.9/resin.conf b/www-servers/resin/files/2.1.9/resin.conf new file mode 100644 index 000000000000..d44ca3331013 --- /dev/null +++ b/www-servers/resin/files/2.1.9/resin.conf @@ -0,0 +1,36 @@ +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/2.1.9/resin.conf,v 1.1 2004/08/08 18:21:19 stuart 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/www-servers/resin/files/2.1.9/resin.diff b/www-servers/resin/files/2.1.9/resin.diff new file mode 100644 index 000000000000..156f1e020d31 --- /dev/null +++ b/www-servers/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/www-servers/resin/files/2.1.9/resin.init b/www-servers/resin/files/2.1.9/resin.init new file mode 100644 index 000000000000..dbb812c3ecdb --- /dev/null +++ b/www-servers/resin/files/2.1.9/resin.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/2.1.9/resin.init,v 1.1 2004/08/08 18:21:19 stuart 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 $? +} + +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/www-servers/resin/files/3.0.8/21resin b/www-servers/resin/files/3.0.8/21resin new file mode 100644 index 000000000000..5a3ecc5b6e96 --- /dev/null +++ b/www-servers/resin/files/3.0.8/21resin @@ -0,0 +1,2 @@ +RESIN_HOME=/opt/resin +CONFIG_PROTECT=/opt/resin/conf diff --git a/www-servers/resin/files/3.0.8/resin.conf b/www-servers/resin/files/3.0.8/resin.conf new file mode 100644 index 000000000000..3b78207497b4 --- /dev/null +++ b/www-servers/resin/files/3.0.8/resin.conf @@ -0,0 +1,36 @@ +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/3.0.8/resin.conf,v 1.1 2004/08/08 18:21:19 stuart 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=`java-config -O` + +# (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=$(java-config -p resin 2>/dev/null):${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/www-servers/resin/files/3.0.8/resin.init b/www-servers/resin/files/3.0.8/resin.init new file mode 100644 index 000000000000..53d9386c42c5 --- /dev/null +++ b/www-servers/resin/files/3.0.8/resin.init @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/3.0.8/resin.init,v 1.1 2004/08/08 18:21:19 stuart 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 $? +} diff --git a/www-servers/resin/files/3.0.8/wrapper.pl.diff b/www-servers/resin/files/3.0.8/wrapper.pl.diff new file mode 100644 index 000000000000..0bd8702e6a0f --- /dev/null +++ b/www-servers/resin/files/3.0.8/wrapper.pl.diff @@ -0,0 +1,21 @@ +--- bin/wrapper.pl.in 2004-07-30 01:59:20.680348752 +0200 ++++ bin/wrapper.pl.in 2004-07-30 02:04:38.745995424 +0200 +@@ -418,9 +418,6 @@ + $pid=`cat $pid_file`; + chop($pid); + +- if ($cmd eq "stop") { +- print("Stopping ${name}\n"); +- } + kill(15, $pid); + unlink($pid_file); + } +@@ -679,8 +676,6 @@ + $date = `date`; + chop($date); + +- print "Resin $name $cmd at $date\n"; +- + # create a keepalive socket + # when the wrapper dies, the httpd class will detect that and + # close gracefully diff --git a/www-servers/resin/files/digest-resin-2.1.14 b/www-servers/resin/files/digest-resin-2.1.14 new file mode 100644 index 000000000000..f5f6dcb16823 --- /dev/null +++ b/www-servers/resin/files/digest-resin-2.1.14 @@ -0,0 +1 @@ +MD5 03d1ce8746ba3a5082298fd617929620 resin-2.1.14.tar.gz 3305648 diff --git a/www-servers/resin/files/digest-resin-2.1.9 b/www-servers/resin/files/digest-resin-2.1.9 new file mode 100644 index 000000000000..c0fad8e27467 --- /dev/null +++ b/www-servers/resin/files/digest-resin-2.1.9 @@ -0,0 +1 @@ +MD5 6f64fa9f520756110a30c8f9ea4f1a9c resin-2.1.9.tar.gz 3278232 diff --git a/www-servers/resin/files/digest-resin-3.0.8 b/www-servers/resin/files/digest-resin-3.0.8 new file mode 100644 index 000000000000..129da14e35e0 --- /dev/null +++ b/www-servers/resin/files/digest-resin-3.0.8 @@ -0,0 +1 @@ +MD5 30498b230b287d45ce914befdeaa0fee resin-3.0.8.tar.gz 5757738 diff --git a/www-servers/resin/metadata.xml b/www-servers/resin/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/www-servers/resin/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/www-servers/resin/resin-2.1.14.ebuild b/www-servers/resin/resin-2.1.14.ebuild new file mode 100644 index 000000000000..27925bbe4a58 --- /dev/null +++ b/www-servers/resin/resin-2.1.14.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/resin-2.1.14.ebuild,v 1.1 2004/08/08 18:21:19 stuart Exp $ + +inherit java-pkg eutils + +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 ~amd64" +LICENSE="CAUCHO" +SLOT="0" +DEPEND="!net-www/resin-ee" +RDEPEND=">=virtual/jdk-1.2 + dev-lang/perl" +IUSE="" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}/${PN}.diff +} + +pkg_preinst() { + enewgroup resin + enewuser resin -1 /bin/bash /opt/resin resin + chown -R resin:resin ${D}/opt/resin + chown -R resin:resin ${D}/var/log/${PN} +} +src_compile() { :; } + +src_install() { + cd ${S} + RESIN_HOME="/opt/resin" + diropts -m0755 + + # Create directories + dodir ${RESIN_HOME} + dodir /var/log/${PN} + dosym /var/log/${PN} ${RESIN_HOME}/logs + keepdir /var/log/${PN}/ + + # 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 + + 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 +} + +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 " " +} + +pkg_postrm() { + einfo "You may want to remove the resin user and group" +} + diff --git a/www-servers/resin/resin-2.1.9.ebuild b/www-servers/resin/resin-2.1.9.ebuild new file mode 100644 index 000000000000..17fe81548e4e --- /dev/null +++ b/www-servers/resin/resin-2.1.9.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/resin-2.1.9.ebuild,v 1.1 2004/08/08 18:21:19 stuart Exp $ + +inherit java-pkg eutils + +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 ~amd64" +LICENSE="CAUCHO" +SLOT="0" +DEPEND="!net-www/resin-ee" +RDEPEND=">=virtual/jdk-1.2 + dev-lang/perl" +IUSE="" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}/${PN}.diff +} + +pkg_preinst() { + enewgroup resin + enewuser resin -1 /bin/bash /opt/resin resin + chown -R resin:resin ${D}/opt/resin + chown -R resin:resin ${D}/var/log/${PN} +} +src_compile() { :; } + +src_install() { + cd ${S} + RESIN_HOME="/opt/resin" + diropts -m0755 + + # Create directories + dodir ${RESIN_HOME} + dodir /var/log/${PN} + dosym /var/log/${PN} ${RESIN_HOME}/logs + keepdir /var/log/${PN}/ + + # 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 + + 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 " " +} + +pkg_postrm() { + einfo "You may want to remove the resin user and group" +} + diff --git a/www-servers/resin/resin-3.0.8.ebuild b/www-servers/resin/resin-3.0.8.ebuild new file mode 100644 index 000000000000..0a35d10a3724 --- /dev/null +++ b/www-servers/resin/resin-3.0.8.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/resin-3.0.8.ebuild,v 1.1 2004/08/08 18:21:19 stuart Exp $ + +inherit java-pkg eutils + +S=${WORKDIR}/${P} +DESCRIPTION="A fast Servlet 2.4 and JSP 2.0 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 ~amd64" +LICENSE="CAUCHO" +SLOT="0" +DEPEND="!net-www/resin-ee" +RDEPEND=">=virtual/jdk-1.3 + dev-lang/perl" +IUSE="" + +RESIN_HOME="/opt/resin" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}/wrapper.pl.diff +} + +pkg_preinst() { + enewgroup resin + enewuser resin -1 /bin/bash /opt/resin resin + chown -R resin:resin ${D}${RESIN_HOME} + chown -R resin:resin ${D}/var/log/${PN} +} + +src_compile() { + ./configure --prefix=${D}${RESIN_HOME} + make +} +src_install() { + dodir ${RESIN_HOME} /etc/resin + cp -r libexec bin webapps doc ${D}${RESIN_HOME} + + dodir /etc/resin + cp -r conf ${D}/etc/resin + dosym /etc/resin ${D}${RESIN_HOME}/conf + + dodir /var/log/${PN} + dosym /var/log/${PN} ${RESIN_HOME}/logs + keepdir /var/log/${PN}/ + + # INIT SCRIPTS AND ENV + insinto /etc/init.d ; insopts -m0750 ; newins ${FILESDIR}/${PV}/resin.init resin + insinto /etc/conf.d ; insopts -m0755 ; newins ${FILESDIR}/${PV}/resin.conf resin + insinto /etc/env.d ; insopts -m0755 ; doins ${FILESDIR}/${PV}/21resin + + dodoc LICENSE readme.txt + java-pkg_dojar ${S}/lib/*.jar + + dosym /usr/share/${PN}/lib ${RESIN_HOME}/lib +} + +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 " " +} + +pkg_postrm() { + einfo "You may want to remove the resin user and group" +} + |