2003-06-23 07:10:36 +02:00
|
|
|
# New ports collection makefile for: AXIS
|
|
|
|
# Date created: 6 JUNE 2003
|
|
|
|
# Whom: Kensaku MASUDA <greg@greg.rim.or.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= axis
|
2006-08-13 18:42:15 +02:00
|
|
|
PORTVERSION= 1.4
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 3
|
2003-06-23 07:10:36 +02:00
|
|
|
CATEGORIES= www java
|
2004-04-12 12:47:12 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
|
|
|
MASTER_SITE_SUBDIR= ws/axis/${PORTVERSION:S,.,_,g}
|
2006-08-13 18:42:15 +02:00
|
|
|
DISTNAME= axis-bin-${PORTVERSION:S,.,_,g}
|
2003-06-23 07:10:36 +02:00
|
|
|
|
2006-08-13 18:43:34 +02:00
|
|
|
MAINTAINER= hq@FreeBSD.org
|
2006-08-13 18:45:19 +02:00
|
|
|
COMMENT= Java SOAP implementation by Apache
|
2003-06-23 07:10:36 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Change webapp directory by TOMCAT version
|
|
|
|
#
|
2006-08-13 18:42:15 +02:00
|
|
|
.if exists(${LOCALBASE}/tomcat5.5/webapps)
|
|
|
|
WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
|
|
|
|
.elif exists(${LOCALBASE}/jakarta-tomcat5/webapps)
|
|
|
|
WEBAPPDIR= ${PREFIX}/jakarta-tomcat5/webapps
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/jakarta-tomcat5:${PORTSDIR}/www/jakarta-tomcat5
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/jakarta-tomcat5:${PORTSDIR}/www/jakarta-tomcat5
|
|
|
|
.elif exists(${LOCALBASE}/jakarta-tomcat4.1/webapps)
|
|
|
|
WEBAPPDIR= ${PREFIX}/jakarta-tomcat4.1/webapps
|
2007-03-17 23:53:48 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/tomcat41
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/tomcat41
|
2003-06-23 07:10:36 +02:00
|
|
|
.elif exists(${LOCALBASE}/jakarta-tomcat4.0.6/webapps)
|
2006-08-13 18:42:15 +02:00
|
|
|
WEBAPPDIR= ${PREFIX}/jakarta-tomcat4.0.6/webapps
|
2003-06-23 07:10:36 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.0.6:${PORTSDIR}/www/jakarta-tomcat4
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.0.6:${PORTSDIR}/www/jakarta-tomcat4
|
|
|
|
.else
|
2006-08-13 18:42:15 +02:00
|
|
|
WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5:${PORTSDIR}/www/tomcat55
|
2003-06-23 07:10:36 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
2006-08-13 18:42:15 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.4+
|
2003-06-23 07:10:36 +02:00
|
|
|
USER= www
|
|
|
|
GROUP= www
|
|
|
|
|
2006-08-13 18:42:15 +02:00
|
|
|
WRKSRC= ${WRKDIR}/axis-${PORTVERSION:S,.,_,g}
|
|
|
|
|
2003-06-23 07:10:36 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Install procedure
|
|
|
|
#
|
2006-04-30 13:23:23 +02:00
|
|
|
SYSTEM_JARS= axis.jar jaxrpc.jar saaj.jar
|
2006-08-16 23:23:54 +02:00
|
|
|
PLIST_SUB+= WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||} USER=${USER} GROUP=${GROUP}
|
2003-10-09 10:44:10 +02:00
|
|
|
|
2003-06-23 07:10:36 +02:00
|
|
|
do-install:
|
|
|
|
.for i in ${SYSTEM_JARS}
|
2006-08-13 18:42:15 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${i} ${JAVAJARDIR}
|
2003-06-23 07:10:36 +02:00
|
|
|
.endfor
|
2006-08-13 18:42:15 +02:00
|
|
|
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}/{} \;
|
2003-10-09 10:44:10 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-08-13 18:42:15 +02:00
|
|
|
cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
|
|
|
|
cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \;
|
|
|
|
cd ${WRKSRC}/samples && ${FIND} . -type f -not -name '*.class' -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
2003-10-09 10:44:10 +02:00
|
|
|
.endif
|
2003-06-23 07:10:36 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|