Changeset View
Changeset View
Standalone View
Standalone View
www/tomcat6/Makefile
# Created by: Nemo Liu <nemoliu@FreeBSD.org> | # Created by: Nemo Liu <nemoliu@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= tomcat | PORTNAME= tomcat | ||||
PORTVERSION= 6.0.53 | PORTVERSION= 6.0.53 | ||||
PORTREVISION= 1 | PORTREVISION= 2 | ||||
CATEGORIES= www java | CATEGORIES= www java | ||||
MASTER_SITES= APACHE/tomcat/tomcat-6/v${PORTVERSION}/bin | MASTER_SITES= APACHE/tomcat/tomcat-6/v${PORTVERSION}/bin | ||||
DISTNAME= apache-${PORTNAME}-${PORTVERSION} | DISTNAME= apache-${PORTNAME}-${PORTVERSION} | ||||
MAINTAINER= ale@FreeBSD.org | MAINTAINER= ale@FreeBSD.org | ||||
COMMENT= Open-source Java web server by Apache, 6.x branch | COMMENT= Open-source Java web server by Apache, 6.x branch | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
Show All 36 Lines | SUB_LIST= AJP_1_3_PORT=${AJP_1_3_PORT} \ | ||||
JAR_FILE=${JAR_FILE} \ | JAR_FILE=${JAR_FILE} \ | ||||
SHUTDOWN_PORT=${SHUTDOWN_PORT} \ | SHUTDOWN_PORT=${SHUTDOWN_PORT} \ | ||||
STDERR_LOG=${STDERR_LOG} \ | STDERR_LOG=${STDERR_LOG} \ | ||||
STDOUT_LOG=${STDOUT_LOG} \ | STDOUT_LOG=${STDOUT_LOG} \ | ||||
TOMCAT_HOME=${APP_HOME} \ | TOMCAT_HOME=${APP_HOME} \ | ||||
TOMCAT_VERSION=${MAJOR_VER:S/.//} \ | TOMCAT_VERSION=${MAJOR_VER:S/.//} \ | ||||
USER=${TOMCAT_USER} | USER=${TOMCAT_USER} | ||||
OPTIONS_DEFINE= HOST_MANAGER MANAGER DOCS EXAMPLES ROOT | |||||
OPTIONS_DEFAULT= HOST_MANAGER MANAGER ROOT | |||||
OPTIONS_SUB= yes | |||||
DOCS_DESC= Install Documentation web application | |||||
EXAMPLES_DESC= Install Examples web application | |||||
HOST_MANAGER_DESC= Install Host Manager application | |||||
MANAGER_DESC= Install Manager web application | |||||
ROOT_DESC= Install default ROOT web application | |||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
pre-patch: | pre-patch: | ||||
@${ECHO_MSG} "Installation settings:" | @${ECHO_MSG} "Installation settings:" | ||||
@${ECHO_MSG} " Destination directory: ${APP_HOME}" | @${ECHO_MSG} " Destination directory: ${APP_HOME}" | ||||
@${ECHO_MSG} " Location of JDK: ${JAVA_HOME}" | @${ECHO_MSG} " Location of JDK: ${JAVA_HOME}" | ||||
@${ECHO_MSG} " Location of Java port: ${JAVA_PORT}" | @${ECHO_MSG} " Location of Java port: ${JAVA_PORT}" | ||||
@${ECHO_MSG} " Running as (user/group): ${TOMCAT_USER}/${TOMCAT_GROUP}" | @${ECHO_MSG} " Running as (user/group): ${TOMCAT_USER}/${TOMCAT_GROUP}" | ||||
Show All 22 Lines | do-install: | ||||
@${ECHO_MSG} -n ">> Copying files to destination directory..." | @${ECHO_MSG} -n ">> Copying files to destination directory..." | ||||
@${CP} -R ${WRKSRC}/* ${STAGEDIR}${APP_HOME} | @${CP} -R ${WRKSRC}/* ${STAGEDIR}${APP_HOME} | ||||
@${ECHO_MSG} " [ DONE ]" | @${ECHO_MSG} " [ DONE ]" | ||||
@${ECHO_MSG} -n ">> Fixing permissions..." | @${ECHO_MSG} -n ">> Fixing permissions..." | ||||
@${FIND} ${STAGEDIR}${APP_HOME} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 | @${FIND} ${STAGEDIR}${APP_HOME} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 | ||||
@${ECHO_MSG} " [ DONE ]" | @${ECHO_MSG} " [ DONE ]" | ||||
post-install-HOST_MANAGER-off: | |||||
@${RM} -R ${STAGEDIR}${TOMCAT_HOME}/webapps/host-manager | |||||
post-install-MANAGER-off: | |||||
@${RM} -R ${STAGEDIR}${TOMCAT_HOME}/webapps/manager | |||||
post-install-DOCS-off: | |||||
@${RM} -R ${STAGEDIR}${TOMCAT_HOME}/webapps/docs | |||||
post-install-EXAMPLES-off: | |||||
@${RM} -R ${STAGEDIR}${TOMCAT_HOME}/webapps/examples | |||||
post-install-ROOT-off: | |||||
@${RM} -R ${STAGEDIR}${TOMCAT_HOME}/webapps/ROOT | |||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |