summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien ROZO2009-07-21 13:03:14 +0200
committerJulien ROZO2009-07-21 13:03:14 +0200
commita831461982c635c7aaf5ab13d755d1fed014dabd (patch)
tree38c6ddeacb80f2793941ef82a8f3f460ad5c28af
parent363075e5314dde1fabdff3e38ce685853925f64b (diff)
tomcat-5.5-bin: new spell, an implementation of the Servlet and JSP technologies
-rw-r--r--ChangeLog4
-rwxr-xr-xaccounts1
-rwxr-xr-xbin-http/tomcat-5.5-bin/BUILD1
-rwxr-xr-xbin-http/tomcat-5.5-bin/DEPENDS1
-rwxr-xr-xbin-http/tomcat-5.5-bin/DETAILS15
-rw-r--r--bin-http/tomcat-5.5-bin/HISTORY4
-rwxr-xr-xbin-http/tomcat-5.5-bin/INSTALL4
-rwxr-xr-xbin-http/tomcat-5.5-bin/PRE_BUILD3
-rwxr-xr-xbin-http/tomcat-5.5-bin/init.d/tomcat5.554
-rw-r--r--bin-http/tomcat-5.5-bin/init.d/tomcat5.5.conf18
10 files changed, 104 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4764560..6763bd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,9 @@
2009-07-21 Julien "_kaze_" ROZO <julien@rozo.org>
- * accounts: added tomcat5 user
+ * accounts: added tomcat5 and tomcat55 users
* bin-http/tomcat-5-bin: new spell, an implementation of the Servlet and
JSP technologies
+ * bin-http/tomcat-5.5-bin: new spell, an implementation of the Servlet and
+ JSP technologies
2009-06-11 Julien "_kaze_" ROZO <julien@rozo.org>
* accounts: added, for tomcat6 user
diff --git a/accounts b/accounts
index e41d6b0..e0c447a 100755
--- a/accounts
+++ b/accounts
@@ -1,4 +1,5 @@
# FORMAT: <account>:<UID>:<Primary GID>:<GID>:<GID>:... etc.
tomcat5:36:35
+tomcat55:37:35
tomcat6:38:35
diff --git a/bin-http/tomcat-5.5-bin/BUILD b/bin-http/tomcat-5.5-bin/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/BUILD
@@ -0,0 +1 @@
+true
diff --git a/bin-http/tomcat-5.5-bin/DEPENDS b/bin-http/tomcat-5.5-bin/DEPENDS
new file mode 100755
index 0000000..9521fc6
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/DEPENDS
@@ -0,0 +1 @@
+depends JDK5 "" "" z-rejected
diff --git a/bin-http/tomcat-5.5-bin/DETAILS b/bin-http/tomcat-5.5-bin/DETAILS
new file mode 100755
index 0000000..1da0405
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=tomcat-5.5-bin
+ VERSION=5.5.27
+ SOURCE="apache-tomcat-${VERSION}.tar.gz"
+ SOURCE_URL[0]=$APACHE_URL/tomcat/tomcat-5/v${VERSION}/bin/${SOURCE}
+ SOURCE_HASH=sha512:0945080a3d0cd022167538654d71dc041df20695ce448b0181caa2ea10ece57467731124eeb918f8f69680ae3736fb68ef0a9659ec5e6880f40c078df7f21141
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/apache-tomcat-${VERSION}"
+ WEB_SITE="http://tomcat.apache.org"
+ LICENSE[0]=ASF
+ ENTERED=20090721
+ SHORT="an implementation of the Servlet and JSP technologies"
+cat << EOF
+Apache Tomcat is an implementation of the Java Servlet and JavaServer Pages
+technologies. The Java Servlet and JavaServer Pages specifications are
+developed under the Java Community Process.
+EOF
diff --git a/bin-http/tomcat-5.5-bin/HISTORY b/bin-http/tomcat-5.5-bin/HISTORY
new file mode 100644
index 0000000..113039d
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/HISTORY
@@ -0,0 +1,4 @@
+2009-07-21 Julien "_kaze_" ROZO <julien@rozo.org>
+ * BUILD, DEPENDS, DETAILS, HISTORY, INSTALL, PRE_BUILD, init.d/tomcat5.5,
+ init.d/tomcat5.5.conf: created this spell
+
diff --git a/bin-http/tomcat-5.5-bin/INSTALL b/bin-http/tomcat-5.5-bin/INSTALL
new file mode 100755
index 0000000..0c8e867
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/INSTALL
@@ -0,0 +1,4 @@
+INSTALL_DIR=${INSTALL_ROOT}/opt/tomcat5.5 &&
+mkdir -pv ${INSTALL_DIR} &&
+cp -rv ${SOURCE_DIRECTORY}/* ${INSTALL_DIR} &&
+find ${INSTALL_DIR}/ -print0 | xargs -r -0 -n 1 chown tomcat55:tomcat
diff --git a/bin-http/tomcat-5.5-bin/PRE_BUILD b/bin-http/tomcat-5.5-bin/PRE_BUILD
new file mode 100755
index 0000000..dcf1951
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/PRE_BUILD
@@ -0,0 +1,3 @@
+create_account tomcat55 &&
+create_group tomcat &&
+default_pre_build
diff --git a/bin-http/tomcat-5.5-bin/init.d/tomcat5.5 b/bin-http/tomcat-5.5-bin/init.d/tomcat5.5
new file mode 100755
index 0000000..a81ae55
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/init.d/tomcat5.5
@@ -0,0 +1,54 @@
+#! /bin/sh
+#
+# tomcat Start the tomcat server.
+#
+
+PROGRAM=/bin/false
+PIDFILE="/var/run/tomcat5.5.pid"
+RUNLEVEL=3
+
+. /etc/init.d/smgl_init
+. /etc/sysconfig/tomcat5.5
+
+NAME="Jakarta Tomcat 5.5"
+
+start()
+{
+ echo -ne "Starting $NAME.\n"
+ if [ -e $PIDFILE ] ; then
+ echo "$NAME already running";
+ else
+ /bin/su -s /bin/sh $TOMCAT_USER -c $TOMCAT_HOME/bin/startup.sh
+ echo `ps -U ${TOMCAT_USER} -o pid=` > $PIDFILE
+ fi
+ evaluate_retval
+}
+
+stop()
+{
+ echo -ne "Stopping $NAME.\n"
+ if [ -e $PIDFILE ] ; then
+ /bin/su -s /bin/sh $TOMCAT_USER -c $TOMCAT_HOME/bin/shutdown.sh
+ rm -f $PIDFILE
+ else
+ echo "$NAME not running";
+ fi
+ evaluate_retval
+}
+
+restart()
+{
+ echo -ne "Restarting $NAME.\n"
+ stop &&
+ sleep 5 &&
+ start
+}
+
+status()
+{
+ if [ -e $PIDFILE ] ; then
+ echo "$NAME is running with Process ID(s) `cat $PIDFILE`";
+ else
+ echo "$NAME is not running";
+ fi
+}
diff --git a/bin-http/tomcat-5.5-bin/init.d/tomcat5.5.conf b/bin-http/tomcat-5.5-bin/init.d/tomcat5.5.conf
new file mode 100644
index 0000000..5a01888
--- /dev/null
+++ b/bin-http/tomcat-5.5-bin/init.d/tomcat5.5.conf
@@ -0,0 +1,18 @@
+# where java is installed
+JAVA_HOME="/usr/lib/j2sdk"
+
+# where tomcat-6-bin is installed
+TOMCAT_HOME="/opt/tomcat5.5"
+
+# user launching the JVM
+TOMCAT_USER="tomcat55"
+
+# parameters passed to the JVM
+JAVA_OPTS=""
+
+# locale used by the JVM
+LANG="en_US"
+
+# if not exported, those variables are not available
+# to tomcat startup and shutdown scripts
+export JAVA_HOME JAVA_OPTS LANG