summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2005-04-01 13:34:51 +0000
committerabs <abs@pkgsrc.org>2005-04-01 13:34:51 +0000
commit352141a4bc722abbd44b2001acb09f600a83b3d4 (patch)
tree2a1a5c3dbc70500dbe8f97350735596a67d781f8
parentb5f92763f5417f901652e6fef9bae07bb9359f90 (diff)
downloadpkgsrc-352141a4bc722abbd44b2001acb09f600a83b3d4.tar.gz
Import jakarta-tomcat 5.5.7
Tomcat is the Java Servlet / Java Server Page environment produced by the Apache Foundation's Jakarta Project. Tomcat can be run as a standalone web server with Servlet and JSP support, or using Apache Server as its web server via the mod_jk Apache module (www/ap-jk). This is the Tomcat 5.5 package, which is a Java Serlet 2.4 and JSP 2.0 server.
-rw-r--r--Makefile133
1 files changed, 72 insertions, 61 deletions
diff --git a/Makefile b/Makefile
index d92ee368315..3324cb7f95c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,61 +1,72 @@
-# FreeBSD Id: Makefile,v 1.35 1997/08/19 07:10:01 fenner Exp
-#
-
-SUBDIR += archivers
-SUBDIR += astro
-SUBDIR += audio
-SUBDIR += benchmarks
-SUBDIR += cad
-SUBDIR += chinese
-SUBDIR += comms
-SUBDIR += converters
-SUBDIR += databases
-SUBDIR += devel
-SUBDIR += editors
-SUBDIR += emulators
-SUBDIR += games
-SUBDIR += german
-SUBDIR += graphics
-SUBDIR += japanese
-SUBDIR += korean
-SUBDIR += lang
-SUBDIR += mail
-SUBDIR += math
-SUBDIR += mbone
-SUBDIR += misc
-SUBDIR += net
-SUBDIR += news
-SUBDIR += plan9
-SUBDIR += print
-SUBDIR += russian
-SUBDIR += security
-SUBDIR += shells
-SUBDIR += sysutils
-SUBDIR += textproc
-SUBDIR += vietnamese
-SUBDIR += www
-SUBDIR += x11
-
-PORTSTOP= yes
-
-.include <bsd.port.subdir.mk>
-
-index:
- @rm -f ${.CURDIR}/INDEX
- @make ${.CURDIR}/INDEX
-
-${.CURDIR}/INDEX:
- @echo -n "Generating INDEX - please wait.."
- @make describe ECHO_MSG="echo > /dev/null" > ${.CURDIR}/INDEX
- @echo " Done."
-
-print-index: ${.CURDIR}/INDEX
- @awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }' < ${.CURDIR}/INDEX
-
-search: ${.CURDIR}/INDEX
-.if !defined(key)
- @echo "The search target requires a keyword parameter,"
- @echo "e.g.: \"make search key=somekeyword\""
-.else
- @grep ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }'
-.endif
+# $NetBSD: Makefile,v 1.1.1.2 2005/04/01 13:34:51 abs Exp $
+
+DISTNAME= jakarta-tomcat-${TOMCAT_VERSION}
+CATEGORIES= www java
+# The list of sites to download is generated by a jakarta website.
+# The getsite.sh script parses the HTML and extracts the urls.
+DYNAMIC_MASTER_SITES=1
+
+MAINTAINER= abs@NetBSD.org
+HOMEPAGE= http://jakarta.apache.org/tomcat/
+COMMENT= The Apache Project's Java Servlet 2.4 and JSP 2.0 server
+
+TOMCAT_VERSION= 5.5.7
+
+# This needs java 1.4 or higher.
+USE_JAVA2= yes
+USE_BUILDLINK3= yes
+
+TOMCAT_LIB= ${PREFIX}/tomcat
+CATALINA_DIR= Catalina/localhost
+
+EGDIR= ${TOMCAT_LIB}/share/examples/jakarta-tomcat
+EGDIR2= ${EGDIR}/${CATALINA_DIR}
+
+# Work around a horrible interaction with the gzip in NetBSD 2.0 (at least RC4)
+# If gzip is used in a pipeline the tarfile fails to extract. PR bin/27228
+EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKDIR}/tar.gz && ${GZIP_CMD} -d ${WRKDIR}/tar.gz && ${TAR} xf ${WRKDIR}/tar
+
+PKG_SYSCONFDIR.jakarta-tomcat55= ${TOMCAT_LIB}/conf
+MAKE_DIRS= ${PKG_SYSCONFDIR.jakarta-tomcat55}/${CATALINA_DIR}
+
+USE_PKGINSTALL= yes
+RCD_SCRIPTS= tomcat
+CFILES= server.xml web.xml tomcat-users.xml
+CFILES+= catalina.policy catalina.properties jk2.properties
+CF2FILES= manager.xml
+
+CONF_FILES= # empty
+.for f in ${CFILES}
+CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
+.endfor
+.undef f
+.for f in ${CF2FILES}
+CONF_FILES+= ${EGDIR2}/${f} ${PKG_SYSCONFDIR}/${CATALINA_DIR}/${f}
+.endfor
+.undef f
+
+FILES_SUBST+= JAVA_HOME=${PKG_JVM_HOME} TOMCAT_LIB=${TOMCAT_LIB}
+
+do-build:
+ @${MV} ${WRKSRC}/conf ${WRKDIR}
+do-install:
+ ${INSTALL_DATA_DIR} ${EGDIR2}
+.for f in ${CFILES}
+ ${INSTALL_DATA} ${WRKDIR}/conf/${f} ${EGDIR}
+.endfor
+.undef f
+.for f in ${CF2FILES}
+ ${INSTALL_DATA} ${WRKDIR}/conf/${CATALINA_DIR}/${f} ${EGDIR2}
+.endfor
+.undef f
+ ${INSTALL_DATA_DIR} ${TOMCAT_LIB}
+ @(cd ${WRKSRC} && ${PAX} -rw -pm . ${TOMCAT_LIB}; \
+ ${FIND} ${TOMCAT_LIB} -type f -print | ${XARGS} ${CHMOD} a+r; \
+ ${FIND} ${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \
+ | ${XARGS} ${CHMOD} a+rx; \
+ ${FIND} ${TOMCAT_LIB} -type d -print | ${XARGS} ${CHMOD} a+rx; \
+ ${FIND} ${TOMCAT_LIB} -type f -name \*.bat -print | \
+ ${XARGS} ${RM} -f)
+
+.include "../../mk/java-vm.mk"
+.include "../../mk/bsd.pkg.mk"