blob: cbee1425044028faa767757c78e54b2a196ebaf4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# New ports collection makefile for: AXIS
# Date created: 6 JUNE 2003
# Whom: Kensaku MASUDA <greg@greg.rim.or.jp>
#
# 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
#
# $FreeBSD$
PORTNAME= axis
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= http://ws.apache.org/axis/dist/1_1/
DISTNAME= axis-${PORTVERSION:S,.,_,g}
MAINTAINER= rui@ruilopes.com
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
#
.if defined(JAVA_VER) && (${JAVA_VER} == 1.4.1)
LIB_SUBDIR= endorsed
.else
LIB_SUBDIR= ext
.endif
JAR_INSTALL_DEST_DIR= ${JAVA_HOME}/jre/lib/${LIB_SUBDIR}
#
# Install procedure
#
SYSTEM_JARS= jaxrpc.jar saaj.jar
PLIST_SUB= PREFIX=${PREFIX} WEBAPPS=${WEBAPPDIR} JRE_HOME="${JAVA_HOME}/jre" \
LIB_SUBDIR=${LIB_SUBDIR} USER=${USER} GROUP=${GROUP}
do-install:
${MKDIR} ${JAR_INSTALL_DEST_DIR}
.for i in ${SYSTEM_JARS}
${INSTALL_DATA} ${WRKSRC}/lib/${i} ${JAR_INSTALL_DEST_DIR}
.endfor
(cd ${WRKSRC}/webapps ; tar cf - axis) | (cd ${WEBAPPDIR} ; tar xvf -)
${CHOWN} -R ${USER}:${GROUP} ${WEBAPPDIR}/axis
${MKDIR} ${PREFIX}/share/doc/axis
(cd ${WRKSRC}/docs ; tar cf - *) | (cd ${PREFIX}/share/doc/axis ; tar xvf -)
.include <bsd.port.post.mk>
|