aboutsummaryrefslogtreecommitdiff
path: root/graphics/deegree-wpvs
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-08-15 06:37:17 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-08-15 06:37:17 +0000
commitbfb43a501784ba5fd98d657dbb4e7e7fecbc0502 (patch)
tree27d0d904a380a6d3f8778d8ec725b7768867b15b /graphics/deegree-wpvs
parentdc5c4eb7e1f33bcff4635850ea189ab48773603d (diff)
downloadports-bfb43a501784ba5fd98d657dbb4e7e7fecbc0502.tar.gz
ports-bfb43a501784ba5fd98d657dbb4e7e7fecbc0502.zip
Notes
Diffstat (limited to 'graphics/deegree-wpvs')
-rw-r--r--graphics/deegree-wpvs/Makefile17
-rw-r--r--graphics/deegree-wpvs/pkg-plist2
2 files changed, 6 insertions, 13 deletions
diff --git a/graphics/deegree-wpvs/Makefile b/graphics/deegree-wpvs/Makefile
index 334951dfcb8a..0e132ba7e92b 100644
--- a/graphics/deegree-wpvs/Makefile
+++ b/graphics/deegree-wpvs/Makefile
@@ -21,16 +21,13 @@ APPHOME= ${LOCALBASE}/${TOMCATVER}
WEBAPPDIR= ${TOMCATDIR}/webapps
PORTDOCS= README.txt deegree_wpvs_documentation_en.pdf
DOCSDIR= ${PREFIX}/share/doc/deegree-wpvs
-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-wpvs.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>
diff --git a/graphics/deegree-wpvs/pkg-plist b/graphics/deegree-wpvs/pkg-plist
index 5f8f81ed13d4..ce6c1e584fb6 100644
--- a/graphics/deegree-wpvs/pkg-plist
+++ b/graphics/deegree-wpvs/pkg-plist
@@ -1,3 +1,4 @@
+@exec chown %%WWWOWN%%:%%WWWGRP%% %D/%%TOMCATDIR%%/webapps/deegree-wpvs
%%TOMCATDIR%%/webapps/deegree-wpvs/META-INF/MANIFEST.MF
%%TOMCATDIR%%/webapps/deegree-wpvs/WEB-INF/classes/log4j.properties
%%TOMCATDIR%%/webapps/deegree-wpvs/WEB-INF/classes/wpvsclient.properties
@@ -2216,4 +2217,3 @@
@dirrm %%TOMCATDIR%%/webapps/deegree-wpvs/WEB-INF
@dirrm %%TOMCATDIR%%/webapps/deegree-wpvs/META-INF
@dirrm %%TOMCATDIR%%/webapps/deegree-wpvs
-@dirrm %%TOMCATDIR%%/webapps