diff options
author | Stefan Walter <stefan@FreeBSD.org> | 2010-06-29 10:39:30 +0000 |
---|---|---|
committer | Stefan Walter <stefan@FreeBSD.org> | 2010-06-29 10:39:30 +0000 |
commit | e2db4d350b10ed0c67f83192a83b118925c1b411 (patch) | |
tree | 180d0d4edbc8cea3bbb9445df1a5f30fb79b203a /www/tomcat55 | |
parent | 98f39c1126e5a168ad77d25a731de9e87df744db (diff) |
Make the UID as configurable as the user/group.
PR: 144878
Submitted by: Jason Helfman <jhelfman@e-e.com>
Approved by: maintainer timeout (>3 months)
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=257148
Diffstat (limited to 'www/tomcat55')
-rw-r--r-- | www/tomcat55/Makefile | 6 | ||||
-rw-r--r-- | www/tomcat55/files/pkg-install.in | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/tomcat55/Makefile b/www/tomcat55/Makefile index e2b9d745b2e3..b78de38dbb51 100644 --- a/www/tomcat55/Makefile +++ b/www/tomcat55/Makefile @@ -30,6 +30,7 @@ APP_TITLE= Apache Tomcat APP_SHORTNAME= tomcat${MAJOR_VER:S/.//} TOMCAT_USER?= www TOMCAT_GROUP?= www +TOMCAT_UID?= 80 HTTP_PORT?= 8180 SHUTDOWN_PORT?= 8005 AJP_1_3_PORT?= 8009 @@ -59,7 +60,8 @@ SUB_LIST= AJP_1_3_PORT=${AJP_1_3_PORT} \ STDOUT_LOG=${STDOUT_LOG} \ TOMCAT_HOME=${APP_HOME} \ TOMCAT_VERSION=${MAJOR_VER:S/.//} \ - USER=${TOMCAT_USER} + USER=${TOMCAT_USER} \ + UID=${TOMCAT_UID} .include <bsd.port.pre.mk> @@ -75,7 +77,7 @@ pre-patch: @${ECHO_MSG} " Destination directory: ${APP_HOME}" @${ECHO_MSG} " Location of JDK: ${JAVA_HOME}" @${ECHO_MSG} " Location of Java port: ${JAVA_PORT}" - @${ECHO_MSG} " Running as (user/group): ${TOMCAT_USER}/${TOMCAT_GROUP}" + @${ECHO_MSG} " Running as (user/group/uid): ${TOMCAT_USER}/${TOMCAT_GROUP}/${TOMCAT_UID}" @${ECHO_MSG} " HTTP port: ${HTTP_PORT}" @${ECHO_MSG} " Shutdown listener port: ${SHUTDOWN_PORT}" @${ECHO_MSG} " AJP 1.3 connector port: ${AJP_1_3_PORT}" diff --git a/www/tomcat55/files/pkg-install.in b/www/tomcat55/files/pkg-install.in index ddc5dfda878a..4e4134e1512c 100644 --- a/www/tomcat55/files/pkg-install.in +++ b/www/tomcat55/files/pkg-install.in @@ -12,7 +12,7 @@ if [ "$2" != "PRE-INSTALL" ]; then fi # Set some constants -UID=80 +UID=%%UID%% GID=${UID} USER=%%USER%% GROUP=%%GROUP%% |