summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien ROZO2009-06-11 20:13:19 +0200
committerJulien ROZO2009-06-11 20:13:19 +0200
commita4c594adcb33057ae8bf39e5a8c2ec3e10480167 (patch)
tree926cfbd2abb78317d2667bbdca7a92521cbc66fd
parent6ed257215dbc2f3f9065ec4e7f5e92e525db9343 (diff)
tomcat-6-bin: added, an implementation of the Servlet and JSP technologies
added accounts and groups to create tomcat6:tomcat for this spell
-rw-r--r--ChangeLog6
-rwxr-xr-xaccounts3
-rwxr-xr-xbin-http/tomcat-6-bin/BUILD1
-rwxr-xr-xbin-http/tomcat-6-bin/DEPENDS1
-rwxr-xr-xbin-http/tomcat-6-bin/DETAILS15
-rw-r--r--bin-http/tomcat-6-bin/HISTORY4
-rwxr-xr-xbin-http/tomcat-6-bin/INSTALL4
-rwxr-xr-xbin-http/tomcat-6-bin/PRE_BUILD3
-rwxr-xr-xbin-http/tomcat-6-bin/init.d/tomcat654
-rw-r--r--bin-http/tomcat-6-bin/init.d/tomcat6.conf18
-rwxr-xr-xgroups3
11 files changed, 112 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ada9639..8b0e19f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-11 Julien "_kaze_" ROZO <julien@rozo.org>
+ * accounts: added, for tomcat6 user
+ * groups: added, for tomcat group
+ * bin-http/tomcat-6-bin: added, an implementation of the Servlet and
+ JSP technologies
+
2009-01-16 George Sherwood <gsherwood@sourcemage.org>
* bin-http/netscape4: deleted. Security risk. No updated.
diff --git a/accounts b/accounts
new file mode 100755
index 0000000..a2cbc3d
--- /dev/null
+++ b/accounts
@@ -0,0 +1,3 @@
+# FORMAT: <account>:<UID>:<Primary GID>:<GID>:<GID>:... etc.
+
+tomcat6:38:35
diff --git a/bin-http/tomcat-6-bin/BUILD b/bin-http/tomcat-6-bin/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/bin-http/tomcat-6-bin/BUILD
@@ -0,0 +1 @@
+true
diff --git a/bin-http/tomcat-6-bin/DEPENDS b/bin-http/tomcat-6-bin/DEPENDS
new file mode 100755
index 0000000..9521fc6
--- /dev/null
+++ b/bin-http/tomcat-6-bin/DEPENDS
@@ -0,0 +1 @@
+depends JDK5 "" "" z-rejected
diff --git a/bin-http/tomcat-6-bin/DETAILS b/bin-http/tomcat-6-bin/DETAILS
new file mode 100755
index 0000000..6dee7d2
--- /dev/null
+++ b/bin-http/tomcat-6-bin/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=tomcat-6-bin
+ VERSION=6.0.20
+ SOURCE="apache-tomcat-${VERSION}.tar.gz"
+ SOURCE_URL[0]=$APACHE_URL/tomcat/tomcat-6/v${VERSION}/bin/${SOURCE}
+ SOURCE_HASH=sha512:ee1a2d8ab7462eec65663648e984c064e9ed73e81c87847bdc1ab394ea35ee79640631bfcb6907f7353392277a18dc27b9bd075af5e9f172bb47514c75149e02
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/apache-tomcat-${VERSION}"
+ WEB_SITE="http://tomcat.apache.org"
+ LICENSE[0]=ASF
+ ENTERED=20090611
+ 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-6-bin/HISTORY b/bin-http/tomcat-6-bin/HISTORY
new file mode 100644
index 0000000..6f18d7d
--- /dev/null
+++ b/bin-http/tomcat-6-bin/HISTORY
@@ -0,0 +1,4 @@
+2009-06-11 Julien "_kaze_" ROZO <julien@rozo.org>
+ * BUILD, DEPENDS, DETAILS, HISTORY, INSTALL, PRE_BUILD, init.d/tomcat6,
+ init.d/tomcat6.conf: created this spell
+
diff --git a/bin-http/tomcat-6-bin/INSTALL b/bin-http/tomcat-6-bin/INSTALL
new file mode 100755
index 0000000..fa639dd
--- /dev/null
+++ b/bin-http/tomcat-6-bin/INSTALL
@@ -0,0 +1,4 @@
+INSTALL_DIR=${INSTALL_ROOT}/opt/tomcat6 &&
+mkdir -pv ${INSTALL_DIR} &&
+cp -rv ${SOURCE_DIRECTORY}/* ${INSTALL_DIR} &&
+find ${INSTALL_DIR}/ -print0 | xargs -r -0 -n 1 chown tomcat6:tomcat
diff --git a/bin-http/tomcat-6-bin/PRE_BUILD b/bin-http/tomcat-6-bin/PRE_BUILD
new file mode 100755
index 0000000..7ad500c
--- /dev/null
+++ b/bin-http/tomcat-6-bin/PRE_BUILD
@@ -0,0 +1,3 @@
+create_account tomcat6 &&
+create_group tomcat &&
+default_pre_build
diff --git a/bin-http/tomcat-6-bin/init.d/tomcat6 b/bin-http/tomcat-6-bin/init.d/tomcat6
new file mode 100755
index 0000000..9e63927
--- /dev/null
+++ b/bin-http/tomcat-6-bin/init.d/tomcat6
@@ -0,0 +1,54 @@
+#! /bin/sh
+#
+# tomcat Start the tomcat server.
+#
+
+PROGRAM=/bin/false
+PIDFILE="/var/run/tomcat6.pid"
+RUNLEVEL=3
+
+. /etc/init.d/smgl_init
+. /etc/sysconfig/tomcat6
+
+NAME="Jakarta Tomcat 6.0"
+
+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 tomcat6 -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-6-bin/init.d/tomcat6.conf b/bin-http/tomcat-6-bin/init.d/tomcat6.conf
new file mode 100644
index 0000000..53943f7
--- /dev/null
+++ b/bin-http/tomcat-6-bin/init.d/tomcat6.conf
@@ -0,0 +1,18 @@
+# where java is installed
+JAVA_HOME="/usr/lib/j2sdk"
+
+# where tomcat-6-bin is installed
+TOMCAT_HOME="/opt/tomcat6"
+
+# user launching the JVM
+TOMCAT_USER="tomcat6"
+
+# 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
diff --git a/groups b/groups
new file mode 100755
index 0000000..3d4e143
--- /dev/null
+++ b/groups
@@ -0,0 +1,3 @@
+# FORMAT: <group>:<GID>:
+
+tomcat:35: