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>
|
|
|
|
#
|
2003-07-28 21:34:56 +02:00
|
|
|
# Most of pkg-plist can be created with:
|
|
|
|
# # make PREFIX=`pwd`/install install
|
|
|
|
# # (echo @cwd %%WEBAPPS%% ; /usr/ports/Tools/scripts/plist -d -m /etc/mtree/BSD.local.dist /usr/local/jakarta-tomcat4.1/webapps/axis/ | sed -E 's,^([^@]),axis/\1,g ; s,^(@.+ ),\1axis/,g' ; echo @dirrm axis) > temp-pkg-plist
|
|
|
|
# # (echo @cwd %%PREFIX%% ; /usr/ports/Tools/scripts/plist -d -m /etc/mtree/BSD.local.dist `pwd`/install|sed -E 's,^.+share/nls/.+$,,g'|tr -s '\n') >> temp-pkg-plist
|
|
|
|
#
|
2003-06-23 07:10:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= axis
|
|
|
|
PORTVERSION= 1.1
|
2003-10-09 10:44:10 +02:00
|
|
|
PORTREVISION= 2
|
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}
|
2003-07-28 21:34:56 +02:00
|
|
|
DISTNAME= axis-${PORTVERSION:S,.,_,g}
|
2003-06-23 07:10:36 +02:00
|
|
|
|
2003-07-28 21:34:56 +02:00
|
|
|
MAINTAINER= rui@ruilopes.com
|
2003-06-23 07:10:36 +02:00
|
|
|
COMMENT= SOAP implementation by APACHE project
|
|
|
|
|
|
|
|
#
|
|
|
|
# Change webapp directory by TOMCAT version
|
|
|
|
#
|
|
|
|
.if exists(${LOCALBASE}/jakarta-tomcat4.1/webapps)
|
|
|
|
WEBAPPDIR= ${LOCALBASE}/jakarta-tomcat4.1/webapps
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/jakarta-tomcat41
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/jakarta-tomcat41
|
|
|
|
.elif exists(${LOCALBASE}/jakarta-tomcat4.0.6/webapps)
|
|
|
|
WEBAPPDIR= ${LOCALBASE}/jakarta-tomcat4.0.6/webapps
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.0.6:${PORTSDIR}/www/jakarta-tomcat4
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.0.6:${PORTSDIR}/www/jakarta-tomcat4
|
|
|
|
.else
|
|
|
|
WEBAPPDIR= ${LOCALBASE}/jakarta-tomcat4.1/webapps
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/jakarta-tomcat41
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/jakarta-tomcat4.1:${PORTSDIR}/www/jakarta-tomcat41
|
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
|
|
|
USE_JAVA= 1.4+
|
|
|
|
USER= www
|
|
|
|
GROUP= www
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
#
|
|
|
|
# Change install directory by JDK version
|
|
|
|
#
|
2004-04-03 08:49:00 +02:00
|
|
|
.if defined(JAVA_PORT_VERSION) && (${JAVA_PORT_VERSION} == "1.4.1")
|
2003-07-28 21:34:56 +02:00
|
|
|
LIB_SUBDIR= endorsed
|
2003-06-23 07:10:36 +02:00
|
|
|
.else
|
2003-07-28 21:34:56 +02:00
|
|
|
LIB_SUBDIR= ext
|
2003-06-23 07:10:36 +02:00
|
|
|
.endif
|
2003-07-28 21:34:56 +02:00
|
|
|
JAR_INSTALL_DEST_DIR= ${JAVA_HOME}/jre/lib/${LIB_SUBDIR}
|
2003-06-23 07:10:36 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Install procedure
|
|
|
|
#
|
|
|
|
SYSTEM_JARS= jaxrpc.jar saaj.jar
|
2003-07-28 21:34:56 +02:00
|
|
|
PLIST_SUB= PREFIX=${PREFIX} WEBAPPS=${WEBAPPDIR} JRE_HOME="${JAVA_HOME}/jre" \
|
|
|
|
LIB_SUBDIR=${LIB_SUBDIR} USER=${USER} GROUP=${GROUP}
|
2003-07-05 05:46:38 +02:00
|
|
|
|
2003-10-09 10:44:10 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
SAMPLECLASSES=''
|
|
|
|
.else
|
|
|
|
SAMPLECLASSES=classes
|
|
|
|
.endif
|
|
|
|
|
2003-06-23 07:10:36 +02:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${JAR_INSTALL_DEST_DIR}
|
|
|
|
.for i in ${SYSTEM_JARS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${i} ${JAR_INSTALL_DEST_DIR}
|
|
|
|
.endfor
|
2003-10-09 10:44:10 +02:00
|
|
|
(cd ${WRKSRC}/webapps ; tar cf - --exclude "${SAMPLECLASSES}" axis) | (cd ${WEBAPPDIR} ; tar xvf -)
|
2003-07-28 21:34:56 +02:00
|
|
|
${CHOWN} -R ${USER}:${GROUP} ${WEBAPPDIR}/axis
|
2003-10-09 10:44:10 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-06-23 07:10:36 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/axis
|
|
|
|
(cd ${WRKSRC}/docs ; tar cf - *) | (cd ${PREFIX}/share/doc/axis ; tar xvf -)
|
2003-10-09 10:44:10 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/axis
|
|
|
|
(cd ${WRKSRC}/samples ; tar cf - --exclude '*.class' *) | (cd ${PREFIX}/share/examples/axis ; tar xvf -)
|
|
|
|
.endif
|
2003-06-23 07:10:36 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|