1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
This commit is contained in:
Vanilla I. Shu 2014-08-15 06:12:18 +00:00
parent 68c8c46dcf
commit dc5c4eb7e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364936
2 changed files with 6 additions and 13 deletions

View File

@ -21,16 +21,13 @@ APPHOME= ${LOCALBASE}/${TOMCATVER}
WEBAPPDIR= ${TOMCATDIR}/webapps
PORTDOCS= README.txt deegree_charts_documentation_en.pdf deegree_wms_documentation_en.pdf
DOCSDIR= ${PREFIX}/share/doc/deegree-wms
PLIST_SUB= TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
PLIST_SUB= TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||} WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
SUB_LIST= TCPORT=${TCPORT}
OPTIONS_SINGLE= AS
OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7
OPTIONS_DEFAULT= TOMCAT6
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
@ -54,13 +51,9 @@ post-extract:
@${TAR} xf ${WRKDIR}/deegree-wms.war -C ${WRKDIR}/${PORTDIRNAME}
do-install:
${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${TOMCATDIR}/webapps/${PORTDIRNAME}
@cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTDIRNAME}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
${INSTALL} -d ${STAGEDIR}${WEBAPPDIR}/${PORTDIRNAME}
@cd ${WRKDIR}/${PORTDIRNAME} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WEBAPPDIR}/${PORTDIRNAME}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,3 +1,4 @@
@exec chown %%WWWOWN%%:%%WWWGRP%% %D/%%TOMCATDIR%%/webapps/deegree-wms
%%TOMCATDIR%%/webapps/deegree-wms/META-INF/MANIFEST.MF
%%TOMCATDIR%%/webapps/deegree-wms/WEB-INF/classes/log4j.properties
%%TOMCATDIR%%/webapps/deegree-wms/WEB-INF/classes/org/apache/batik/util/resources/XMLResourceDescriptor.properties
@ -2070,4 +2071,3 @@
@dirrm %%TOMCATDIR%%/webapps/deegree-wms/WEB-INF
@dirrm %%TOMCATDIR%%/webapps/deegree-wms/META-INF
@dirrm %%TOMCATDIR%%/webapps/deegree-wms
@dirrm %%TOMCATDIR%%/webapps