Changeset View
Changeset View
Standalone View
Standalone View
www/tomcat8/Makefile
# Created by: Alex Dupre <ale@FreeBSD.org> | # Created by: Alex Dupre <ale@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= tomcat | PORTNAME= tomcat | ||||
PORTVERSION= 8.0.50 | PORTVERSION= 8.0.50 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= www java | CATEGORIES= www java | ||||
MASTER_SITES= APACHE/tomcat/tomcat-8/v${PORTVERSION}/bin | MASTER_SITES= APACHE/tomcat/tomcat-8/v${PORTVERSION}/bin | ||||
PKGNAMESUFFIX= 8 | PKGNAMESUFFIX= 8 | ||||
DISTNAME= apache-${PORTNAME}-${PORTVERSION} | DISTNAME= apache-${PORTNAME}-${PORTVERSION} | ||||
MAINTAINER= ale@FreeBSD.org | MAINTAINER= ale@FreeBSD.org | ||||
COMMENT= Open-source Java web server by Apache, 8.x branch | COMMENT= Open-source Java web server by Apache, 8.x branch | ||||
Show All 18 Lines | TOMCAT_CONF_FILES= \ | ||||
server.xml tomcat-users.xml tomcat-users.xsd web.xml | server.xml tomcat-users.xml tomcat-users.xsd web.xml | ||||
PLIST_SUB= T=${TOMCAT_SUBDIR} \ | PLIST_SUB= T=${TOMCAT_SUBDIR} \ | ||||
WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} | WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} | ||||
SUB_LIST= TOMCAT_HOME=${TOMCAT_HOME} \ | SUB_LIST= TOMCAT_HOME=${TOMCAT_HOME} \ | ||||
TOMCAT_USER=${WWWOWN} \ | TOMCAT_USER=${WWWOWN} \ | ||||
JAVA_HOME=${JAVA_HOME} | JAVA_HOME=${JAVA_HOME} | ||||
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: ${TOMCAT_HOME}" | @${ECHO_MSG} " Destination directory: ${TOMCAT_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}" | ||||
Show All 11 Lines | do-install: | ||||
@${ECHO_MSG} -n ">> Copying files to destination directory..." | @${ECHO_MSG} -n ">> Copying files to destination directory..." | ||||
@${CP} -R ${WRKSRC}/* ${STAGEDIR}${TOMCAT_HOME} | @${CP} -R ${WRKSRC}/* ${STAGEDIR}${TOMCAT_HOME} | ||||
@${ECHO_MSG} " [ DONE ]" | @${ECHO_MSG} " [ DONE ]" | ||||
@${ECHO_MSG} -n ">> Fixing permissions..." | @${ECHO_MSG} -n ">> Fixing permissions..." | ||||
@${FIND} ${STAGEDIR}${TOMCAT_HOME} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 | @${FIND} ${STAGEDIR}${TOMCAT_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> |