diff options
author | ryoon <ryoon@pkgsrc.org> | 2011-11-19 17:11:10 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2011-11-19 17:11:10 +0000 |
commit | c4260e080285933b354a19c42e267d20bcab7d4d (patch) | |
tree | 87574da1860ac391b8316055fd58a1973a6601fd /www/apache-tomcat7/Makefile | |
parent | 190224ef7b279b7b2e85d80f242e002c6434eff7 (diff) | |
download | pkgsrc-c4260e080285933b354a19c42e267d20bcab7d4d.tar.gz |
Import apache-tomcat-7.0.22 as www/apache-tomcat7
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.
Apache Tomcat is developed in an open and participatory environment and
released under the Apache Software License. Apache Tomcat is intended to
be a collaboration of the best-of-breed developers from around the world.
We invite you to participate in this open development project.
Apache Tomcat powers numerous large-scale, mission-critical web applications
across a diverse range of industries and organizations.
I have tested some war apps and they works. But not fully tested.
Diffstat (limited to 'www/apache-tomcat7/Makefile')
-rw-r--r-- | www/apache-tomcat7/Makefile | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/www/apache-tomcat7/Makefile b/www/apache-tomcat7/Makefile new file mode 100644 index 00000000000..6016bb5f1b9 --- /dev/null +++ b/www/apache-tomcat7/Makefile @@ -0,0 +1,104 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/11/19 17:11:10 ryoon Exp $ +# + +DISTNAME= apache-tomcat-${TOMCAT_VER} +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_APACHE:=tomcat/tomcat-7/v${TOMCAT_VER}/bin/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://tomcat.apache.org/ +COMMENT= Implementation of Java Servlet and JavaServer Pages technologies + +CONFLICTS+= jakarta-tomcat55-[0-9]* +CONFLICTS+= jakarta-tomcat-[0-9]* + +NO_BUILD= yes +USE_LANGUAGES= # none +USE_JAVA= run +USE_JAVA2= 1.5 +USE_TOOLS+= pax + +PKG_DESTDIR_SUPPORT= destdir + +.include "../../mk/bsd.prefs.mk" + +TOMCAT_VER= 7.0.22 +TOMCAT_HOME= ${PREFIX}/share/tomcat +EGDIR= ${PREFIX}/share/examples/tomcat +DOCDIR= ${PREFIX}/share/doc/tomcat +RCD_SCRIPTS= tomcat +TOMCAT_USER?= tomcat +TOMCAT_GROUP?= tomcat +USERGROUP_PHASE= pre-install +PKG_GROUPS= ${TOMCAT_GROUP} +PKG_USERS= ${TOMCAT_USER}:${TOMCAT_GROUP} +PKG_GROUPS_VARS+= TOMCAT_GROUP +PKG_USERS_VARS+= TOMCAT_USER +PKG_HOME.tomcat= ${TOMCAT_HOME} +PKG_SHELL.tomcat= ${SH} +PKG_SYSCONFDIR.tomcat= ${TOMCAT_HOME}/conf +OWN_DIRS+= ${PKG_SYSCONFDIR.tomcat} +FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME} TOMCAT_HOME=${TOMCAT_HOME} \ + TOMCAT_USER=${TOMCAT_USER} TOMCAT_GROUP=${TOMCAT_GROUP} + +PRIVATE_EGFILES= server.xml tomcat-users.xml +PUBLIC_EGFILES= catalina.policy catalina.properties \ + context.xml logging.properties web.xml +DOCFILES= LICENSE NOTICE RELEASE-NOTES RUNNING.txt +WORK_DIRS= work temp logs + +.for f in ${PRIVATE_EGFILES} +CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR.tomcat}/${f} \ + ${TOMCAT_USER} ${TOMCAT_GROUP} 0640 +.endfor + +.for f in ${PUBLIC_EGFILES} +CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR.tomcat}/${f} \ + ${TOMCAT_USER} ${TOMCAT_GROUP} 0644 +.endfor + +.for d in ${WORK_DIRS} +OWN_DIRS_PERMS+= ${TOMCAT_HOME}/${d} ${TOMCAT_USER} ${TOMCAT_GROUP} 0755 +.endfor + +INSTALLATION_DIRS+= ${TOMCAT_HOME} ${EGDIR} ${DOCDIR} + +do-install: +.for d in ${WORK_DIRS} + ${RM} -rf ${WRKSRC}/${d} +.endfor + +.for f in ${DOCFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}/${f} + ${RM} -f ${WRKSRC}/${f} +.endfor + +.for f in ${PRIVATE_EGFILES} + ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${DESTDIR}${EGDIR}/${f} + ${RM} -f ${WRKSRC}/conf/${f} +.endfor + +.for f in ${PUBLIC_EGFILES} + ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${DESTDIR}${EGDIR}/${f} + ${RM} -f ${WRKSRC}/conf/${f} +.endfor + + ${FIND} ${WRKSRC} -name \*.exe -type f -print | ${XARGS} ${RM} -f + ${FIND} ${WRKSRC} -name \*.bat -type f -print | ${XARGS} ${RM} -f + + cd ${WRKSRC} && ${PAX} -rw -pm . ${DESTDIR}${TOMCAT_HOME} + + ${FIND} ${DESTDIR}${TOMCAT_HOME} -type d -print | \ + ${XARGS} ${CHMOD} ${PKGDIRMODE} + ${FIND} ${DESTDIR}${TOMCAT_HOME} -type f -print | \ + ${XARGS} ${CHMOD} ${SHAREMODE} + ${FIND} ${DESTDIR}${TOMCAT_HOME} -type f -name \*.sh -print | \ + ${XARGS} ${CHMOD} ${BINMODE} + + ${CHOWN} -R ${TOMCAT_USER}:${TOMCAT_GROUP} \ + ${DESTDIR}${TOMCAT_HOME}/webapps + ${CHOWN} ${TOMCAT_USER}:${TOMCAT_GROUP} \ + ${DESTDIR}${TOMCAT_HOME}/conf + +.include "../../mk/java-vm.mk" +.include "../../mk/bsd.pkg.mk" |