aboutsummaryrefslogtreecommitdiffstats
path: root/www/tomcat6
diff options
context:
space:
mode:
Diffstat (limited to 'www/tomcat6')
-rw-r--r--www/tomcat6/Makefile6
-rw-r--r--www/tomcat6/pkg-plist2
2 files changed, 5 insertions, 3 deletions
diff --git a/www/tomcat6/Makefile b/www/tomcat6/Makefile
index 629e8662c3ab..2202a0a1846a 100644
--- a/www/tomcat6/Makefile
+++ b/www/tomcat6/Makefile
@@ -7,9 +7,10 @@
PORTNAME= jakarta-tomcat
PORTVERSION= 5.0.12
+PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= http://www.apache.org/dist/jakarta/tomcat-5/v${PORTVERSION}-beta/bin/ \
- http://apache.lemon4ssc.org/dist/jakarta/tomcat-5/v{PORTVERSION}-beta/bin \
+ http://apache.lemon4ssc.org/dist/jakarta/tomcat-5/v{PORTVERSION}-beta/bin/ \
http://distfiles.coredump.cn/
MAINTAINER= liukang@bjpu.edu.cn
@@ -22,7 +23,6 @@ MAJOR_VER= ${PORTVERSION:R}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:R}
LOG_DIR= ${APP_HOME}/logs
-PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}
APP_TITLE= Jakarta Tomcat
APP_SHORTNAME= tomcat${MAJOR_VER:S/.//}
CONTROL_SCRIPT_NAME= ${APP_SHORTNAME}ctl
@@ -49,7 +49,7 @@ REPLACE_FILES= ${PORTSDIR}/www/jakarta-tomcat4/files/daemonctl.c \
${WRKSRC}/conf/server.xml
JAR_FILE= bin/bootstrap.jar
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
-
+PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP}
.include <bsd.port.pre.mk>
pre-patch:
diff --git a/www/tomcat6/pkg-plist b/www/tomcat6/pkg-plist
index 374608fa9a55..d2577b401c4c 100644
--- a/www/tomcat6/pkg-plist
+++ b/www/tomcat6/pkg-plist
@@ -1684,6 +1684,8 @@ etc/rc.d/020.jakarta-tomcat50.sh
%%T%%/webapps/tomcat-docs/ssl-howto.html
%%T%%/webapps/tomcat-docs/status.html
@exec mkdir %D/%%T%%/work || true
+@exec mkdir %D/%%T%%/common/classes ||true
+@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%T%%/
@dirrm %%T%%/work
@dirrm %%T%%/webapps/tomcat-docs/servletapi/resources
@dirrm %%T%%/webapps/tomcat-docs/servletapi/javax/servlet/http/class-use