1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- add stage support

- add license
- simplify install target, owner/group is set via pkg-plist
- port use NO_BUILD=yes, so BUILD_DEPENDS= is not needed
This commit is contained in:
Olli Hauer 2014-05-24 19:22:01 +00:00
parent 01186891de
commit 3a9c62c1f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355075
2 changed files with 55 additions and 58 deletions

View File

@ -12,26 +12,25 @@ DISTNAME= axis-bin-${PORTVERSION:S,.,_,g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java SOAP implementation by Apache
OPTIONS_SINGLE= AS
LICENSE= APACHE20
OPTIONS_SINGLE= AS
OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7
OPTIONS_DEFAULT= TOMCAT6
NO_STAGE= yes
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTOMCAT6}
WEBAPPDIR= ${PREFIX}/apache-tomcat-6.0/webapps
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
.endif
.if ${PORT_OPTIONS:MTOMCAT7}
WEBAPPDIR= ${PREFIX}/apache-tomcat-7.0/webapps
BUILD_DEPENDS+= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
.endif
NO_BUILD= YES
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
USER= www
@ -39,28 +38,21 @@ GROUP= www
WRKSRC= ${WRKDIR}/axis-${PORTVERSION:S,.,_,g}
#
# Install procedure
#
SYSTEM_JARS= axis.jar jaxrpc.jar saaj.jar
PLIST_SUB+= WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||} USER=${USER} GROUP=${GROUP}
PORTDOCS= *
PORTEXAMPLES= *
do-install:
.for i in ${SYSTEM_JARS}
${INSTALL_DATA} ${WRKSRC}/lib/${i} ${JAVAJARDIR}
.endfor
cd ${WRKSRC}/webapps && ${FIND} axis -type d -exec ${INSTALL} -d -g ${GROUP} -o ${USER} -m 755 ${WEBAPPDIR}/{} \;
cd ${WRKSRC}/webapps && ${FIND} axis -type f -exec ${INSTALL} -g ${GROUP} -o ${USER} -m 444 {} ${WEBAPPDIR}/{} \;
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \;
cd ${WRKSRC}/samples && ${FIND} . -type f -not -name '*.class' -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
.endif
SYSTEM_JARS= axis.jar jaxrpc.jar saaj.jar
PLIST_SUB+= WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||} USER=${USER} GROUP=${GROUP}
.include <bsd.port.post.mk>
do-install:
${INSTALL_DATA} ${SYSTEM_JARS:S|^|${WRKSRC}/lib/|} ${STAGEDIR}${JAVAJARDIR}
@${MKDIR} ${STAGEDIR}${WEBAPPDIR}
(cd ${WRKSRC}/webapps && ${COPYTREE_SHARE} axis ${STAGEDIR}${WEBAPPDIR})
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/ "! -name *.class")
.include <bsd.port.mk>

View File

@ -1,6 +1,5 @@
%%JAVAJARDIR%%/axis.jar
%%JAVAJARDIR%%/jaxrpc.jar
%%JAVAJARDIR%%/saaj.jar
@owner www
@group www
%%WEBAPPS%%/axis/EchoHeaders.jws
%%WEBAPPS%%/axis/SOAPMonitorApplet.java
%%WEBAPPS%%/axis/StockQuoteService.jws
@ -173,37 +172,43 @@
%%WEBAPPS%%/axis/i18nLib.jsp
%%WEBAPPS%%/axis/index.html
%%WEBAPPS%%/axis/index.jsp
@dirrm %%WEBAPPS%%/axis/WEB-INF/lib
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example6
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example5
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example4
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example3
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example2
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example1
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide
%%JAVAJARDIR%%/axis.jar
%%JAVAJARDIR%%/jaxrpc.jar
%%JAVAJARDIR%%/saaj.jar
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/addr
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/attachments
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/bidbuy
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/echo
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/encoding
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/faults
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/handler
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/integrationGuide/example1
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/integrationGuide/example2
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/integrationGuide
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/jaxrpc/address
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/jaxrpc/hello
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/jaxrpc
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/math
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/message
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/misc
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/perf
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/proxy
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/stock
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/swa
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/transport/tcp
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/transport
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/swa
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/stock
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/proxy
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/perf
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/misc
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/message
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/math
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/jaxrpc/hello
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/jaxrpc/address
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/jaxrpc
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/integrationGuide/example2
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/integrationGuide/example1
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/integrationGuide
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/handler
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/faults
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/encoding
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/echo
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/bidbuy
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/attachments
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/addr
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example1
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example2
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example3
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example4
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example5
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide/example6
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples/userguide
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes/samples
@dirrm %%WEBAPPS%%/axis/WEB-INF/classes
@dirrm %%WEBAPPS%%/axis/WEB-INF/lib
@dirrm %%WEBAPPS%%/axis/WEB-INF
@dirrm %%WEBAPPS%%/axis
@comment reset owner for docs and examples
@owner root
@group wheel