From cfaba9a100831c882195940890c262e4ea8eba6a Mon Sep 17 00:00:00 2001 From: reinhard Date: Sun, 17 Jun 2001 12:22:17 +0000 Subject: [PATCH] Tomcat is the Java Servlet / Java Server Page environment produced by the Apache Foundation's Jakarta Project. This package provides the Apache Tomcat connector. --- www/jserv/Makefile | 42 +++++ www/jserv/files/jserv-enable | 27 +++ www/jserv/files/md5 | 3 + www/jserv/files/server.xml | 321 +++++++++++++++++++++++++++++++++++ www/jserv/pkg/DEINSTALL | 29 ++++ www/jserv/pkg/DESCR | 5 + www/jserv/pkg/INSTALL | 47 +++++ www/jserv/pkg/PLIST | 5 + 8 files changed, 479 insertions(+) create mode 100644 www/jserv/Makefile create mode 100644 www/jserv/files/jserv-enable create mode 100644 www/jserv/files/md5 create mode 100644 www/jserv/files/server.xml create mode 100644 www/jserv/pkg/DEINSTALL create mode 100644 www/jserv/pkg/DESCR create mode 100644 www/jserv/pkg/INSTALL create mode 100644 www/jserv/pkg/PLIST diff --git a/www/jserv/Makefile b/www/jserv/Makefile new file mode 100644 index 00000000000..8873f6797e0 --- /dev/null +++ b/www/jserv/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/06/17 12:22:17 reinhard Exp $ + +# Build just the Tomcat connector for our in-tree Apache +COMMENT= "Tomcat (Servlet/JSP) - Apache Connector" + +VER= 3.2.1 +PKGNAME= jserv-${VER} +DISTNAME= jakarta-tomcat-${VER}-src +CATEGORIES= www +NEED_VERSION= 1.414 +MASTER_SITES= http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/ + +HOMEPAGE= http://jakarta.apache.org/ + +MAINTAINER= Reinhard J. Sammer + +# XXX: USE_JAVA=TBD +JAVA_HOME= ${LOCALBASE}/jdk1.2-blackdown +BUILD_DEPENDS= ${JAVA_HOME}/bin/java::devel/jdk/1.2-blackdown +RUN_DEPENDS= ${LOCALBASE}/tomcat/bin/tomcat.sh::www/jakarta-tomcat + +# Apache Software License +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +do-build: + cd ${WRKSRC}/src/native/apache/jserv && /usr/sbin/apxs -c *.c -o mod_jserv.so + +post-build: + strip ${WRKSRC}/src/native/apache/jserv/mod_jserv.so + +do-install: + sed 's,y0y0y0,${TRUEPREFIX},' \ + <${FILESDIR}/jserv-enable >${WRKSRC}/jserv-enable + ${INSTALL_SCRIPT} ${WRKSRC}/jserv-enable ${PREFIX}/sbin/jserv-enable + ${INSTALL_DATA} ${WRKSRC}/src/native/apache/jserv/mod_jserv.so ${PREFIX}/lib + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/jserv + ${INSTALL_DATA} ${FILESDIR}/server.xml ${PREFIX}/share/examples/jserv + +.include "bsd.port.mk" diff --git a/www/jserv/files/jserv-enable b/www/jserv/files/jserv-enable new file mode 100644 index 00000000000..96e83469565 --- /dev/null +++ b/www/jserv/files/jserv-enable @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $OpenBSD: jserv-enable,v 1.1.1.1 2001/06/17 12:22:17 reinhard Exp $ + +set -e +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +HTTPD_CONF=`apxs -q SYSCONFDIR`/httpd.conf +#HTTPD_CONF=/var/www/conf/httpd.conf +MODULE=y0y0y0/lib/mod_jserv.so +XML=y0y0y0/share/examples/jserv/server.xml + +if [ ! -f ${MODULE} ]; then + echo "can't find jserv module (${MODULE})" + exit 1 +else + echo "enabling jserv (Apache-Tomcat connector)..." + apxs -i -a -n jserv ${MODULE} + echo "" >> $HTTPD_CONF + echo "# jserv (Apache-Tomcat connector)" >> $HTTPD_CONF + echo "include /etc/tomcat/tomcat-apache.conf" >> $HTTPD_CONF + echo "" + echo "You may want to disable the 'HttpConnectionHandler' on port 8080" + echo "in /etc/tomcat/server.xml if jakarta-tomcat should only serve" + echo "requests for Apache." + echo "See ${XML} for an example." +fi diff --git a/www/jserv/files/md5 b/www/jserv/files/md5 new file mode 100644 index 00000000000..23d21280a7c --- /dev/null +++ b/www/jserv/files/md5 @@ -0,0 +1,3 @@ +MD5 (jakarta-tomcat-3.2.1-src.tar.gz) = ca0307722836c778392a17b2c6c9a598 +RMD160 (jakarta-tomcat-3.2.1-src.tar.gz) = b0d22dbe471b215fe8e6f4611a664fbbe2eca23f +SHA1 (jakarta-tomcat-3.2.1-src.tar.gz) = c28d97378dcc1c9a15d15cae404733674ae91c9c diff --git a/www/jserv/files/server.xml b/www/jserv/files/server.xml new file mode 100644 index 00000000000..9beec9da252 --- /dev/null +++ b/www/jserv/files/server.xml @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/jserv/pkg/DEINSTALL b/www/jserv/pkg/DEINSTALL new file mode 100644 index 00000000000..733db7ffcb6 --- /dev/null +++ b/www/jserv/pkg/DEINSTALL @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/06/17 12:22:17 reinhard Exp $ +# +# jserv de-installation + +set -e +PATH=/bin:/usr/bin:/sbin:/usr/sbin +CONF=`apxs -q SYSCONFDIR`/httpd.conf + +rm -f /usr/lib/apache/modules/mod_jserv.so + +echo +echo "+---------------" +echo "| To completely deinstall the $1 package you" +echo "| need to perform these steps as root:" +echo "|" +echo "| edit ${CONF}" +echo "| and remove the lines +echo "| 'LoadModule jserv_module'" +echo "| and" +echo "| 'include /etc/tomcat/tomcat-apache.conf'" +echo "|" +echo "| Do not do this if you plan on re-installing jserv" +echo "| package at some future time." +echo "+---------------" +echo + +exit 0 diff --git a/www/jserv/pkg/DESCR b/www/jserv/pkg/DESCR new file mode 100644 index 00000000000..316c876babc --- /dev/null +++ b/www/jserv/pkg/DESCR @@ -0,0 +1,5 @@ +Tomcat is the Java Servlet / Java Server Page environment produced +by the Apache Foundation's Jakarta Project. This package provides +the Apache Tomcat connector. + +WWW: ${HOMEPAGE} diff --git a/www/jserv/pkg/INSTALL b/www/jserv/pkg/INSTALL new file mode 100644 index 00000000000..b5efa4dbaef --- /dev/null +++ b/www/jserv/pkg/INSTALL @@ -0,0 +1,47 @@ +#!/bin/sh +# +# $OpenBSD: INSTALL,v 1.1.1.1 2001/06/17 12:22:17 reinhard Exp $ +# +# jserv installation + +# exit on errors, use a sane path and install prefix +# +set -e +PATH=/bin:/usr/bin:/sbin:/usr/sbin +PREFIX=${PKG_PREFIX:-/usr/local} + +do_notice() +{ + echo + echo "+---------------" + echo "| To finish the install, you need to enable the jserv" + echo "| module using the following command" + echo "|" + echo "| $PREFIX/sbin/jserv-enable" + echo "+---------------" + echo +} + +# verify proper execution +# +if [ $# -ne 2 ]; then + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 +fi + +# Verify/process the command +# +case $2 in + PRE-INSTALL) + : nothing to pre-install for this port + ;; + POST-INSTALL) + do_notice $1 + ;; + *) + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/www/jserv/pkg/PLIST b/www/jserv/pkg/PLIST new file mode 100644 index 00000000000..ff40cf2731d --- /dev/null +++ b/www/jserv/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/06/17 12:22:17 reinhard Exp $ +lib/mod_jserv.so +sbin/jserv-enable +share/examples/jserv/server.xml +@dirrm share/examples/jserv