head	1.14;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.5;
locks; strict;
comment	@# @;


1.14
date	2012.11.20.19.25.43;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.11.17.06.02.28;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.10.03.01.15.48;	author jgh;	state Exp;
branches;
next	1.11;

1.11
date	2012.08.21.05.21.04;	author jgh;	state Exp;
branches;
next	1.10;

1.10
date	2012.06.25.23.09.08;	author jgh;	state Exp;
branches;
next	1.9;

1.9
date	2012.04.30.16.40.05;	author jgh;	state Exp;
branches;
next	1.8;

1.8
date	2012.04.24.20.00.44;	author jgh;	state Exp;
branches;
next	1.7;

1.7
date	2012.01.09.15.41.05;	author tabthorpe;	state Exp;
branches;
next	1.6;

1.6
date	2011.12.20.17.10.19;	author jgh;	state Exp;
branches;
next	1.5;

1.5
date	2011.12.03.08.29.29;	author eadler;	state Exp;
branches;
next	1.4;

1.4
date	2011.12.01.20.04.07;	author eadler;	state Exp;
branches;
next	1.3;

1.3
date	2011.09.28.17.21.46;	author crees;	state Exp;
branches;
next	1.2;

1.2
date	2011.09.27.18.38.18;	author crees;	state Exp;
branches;
next	1.1;

1.1
date	2011.09.20.01.24.41;	author eadler;	state Exp;
branches;
next	;


desc
@@


1.14
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 307596
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307596 | jgh | 2012-11-20 19:07:56 +0000 (Tue, 20 Nov 2012) | 7 lines
## SVN ##
## SVN ## - drop tomcat55 as an option, and pass maintainership to submitter
## SVN ## - drop hard-coded install in favor of ${INSTALL}
## SVN ##
## SVN ## PR:		173035
## SVN ## Submitted by:	nemysis@@gmx.ch
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# $FreeBSD: head/www/axis2/Makefile 307596 2012-11-20 19:07:56Z jgh $

PORTNAME=	axis2
PORTVERSION=	1.6.2
PORTREVISION=	1
CATEGORIES=	www java
MASTER_SITES=	APACHE
MASTER_SITE_SUBDIR=	axis/${PORTNAME}/java/core/${PORTVERSION}/
DISTNAME=	${PORTNAME}-${PORTVERSION}-bin

MAINTAINER=	nemysis@@gmx.ch
COMMENT=	Provides a Web Services,SOAP and WSDL engine from Apache

LICENSE=	AL2

USE_ZIP=	yes
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD=	yes

OPTIONS_SINGLE=	AS
OPTIONS_SINGLE_AS=	TOMCAT6 TOMCAT7
OPTIONS_DEFAULT=	TOMCAT6

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MTOMCAT6}
APPHOME=	${LOCALBASE}/apache-tomcat-6.0
BUILD_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
RUN_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
.endif

.if ${PORT_OPTIONS:MTOMCAT7}
APPHOME=	${LOCALBASE}/apache-tomcat-7.0
BUILD_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
RUN_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
.endif

USE_JAVA=	yes
JAVA_VERSION=	1.6+
SHAREOWN=	www
SHAREGRP=	www
PLIST_SUB+=	APPHOME=${APPHOME:S|^${PREFIX}/||} \
		CONF_EXT=${CONF_EXT}
CONF_EXT=	sample

PORTEXAMPLES=	*

do-install:
	( ${MKDIR} ${APPHOME}/webapps/${PORTNAME}/WEB-INF/lib && cd ${WRKSRC}/lib && ${COPYTREE_SHARE} \* ${APPHOME}/webapps/${PORTNAME}/WEB-INF/lib)
	( ${MKDIR} ${APPHOME}/webapps/${PORTNAME}/WEB-INF/classes && cd ${WRKSRC}/webapp/WEB-INF/classes && ${COPYTREE_SHARE} \* ${APPHOME}/webapps/${PORTNAME}/WEB-INF/classes )$
	( ${MKDIR} ${APPHOME}/webapps/${PORTNAME}/axis2-web && cd ${WRKSRC}/webapp/axis2-web && ${COPYTREE_SHARE} \* ${APPHOME}/webapps/${PORTNAME}/axis2-web )
	( cd ${WRKSRC}/repository && ${COPYTREE_SHARE} \* ${APPHOME}/webapps/${PORTNAME}/WEB-INF )
	@@${CHOWN} ${SHAREGRP}:${SHAREOWN} ${APPHOME}/webapps/${PORTNAME}
	@@${INSTALL} -d -g ${SHAREGRP} -o ${SHAREOWN} ${APPHOME}/webapps/${PORTNAME}/WEB-INF/conf
	@@(cd ${WRKSRC};${FIND} conf -type f | ${SED} -e '/${CONF_EXT}/d') \
		| while read a; do \
			${MV} ${WRKSRC}/$$a ${WRKSRC}/$$a.${CONF_EXT}; \
			if [ ! -e "${APPHOME}/webapps/${PORTNAME}/WEB-INF/$$a" ]; then \
				${ECHO_MSG} "	Installing local configuration file: ${APPHOME}/webapps/${PORTNAME}/WEB-INF/$$a"; \
				${INSTALL_DATA} ${WRKSRC}/$$a.${CONF_EXT} ${APPHOME}/webapps/${PORTNAME}/WEB-INF/$$a; \
			else \
				${ECHO_MSG} "	Preserving local configuration file: ${APPHOME}/webapps/${PORTNAME}/WEB-INF/$$a"; \
			fi; \
		done
			${INSTALL_DATA} ${WRKSRC}/conf/*.${CONF_EXT} ${APPHOME}/webapps/${PORTNAME}/WEB-INF/conf
	${MV} ${WRKSRC}/webapp/WEB-INF/web.xml ${WRKSRC}/webapp/WEB-INF/web.xml.${CONF_EXT}
	@@if [ ! -e "${APPHOME}/webapps/axis2/WEB-INF/web.xml" ]; then \
		${ECHO_MSG} "	Installing local configuration file: ${APPHOME}/webapps/WEB-INF/web.xml"; \
		${INSTALL_DATA} ${WRKSRC}/webapp/WEB-INF/web.xml.${CONF_EXT} ${APPHOME}/webapps/${PORTNAME}/WEB-INF/web.xml; \
	else \
		${ECHO_MSG} "	Preserving local configuration file: ${APPHOME}/webapps/${PORTNAME}/WEB-INF/web.xml"; \
	fi;
		${INSTALL_DATA} ${WRKSRC}/webapp/WEB-INF/web.xml.${CONF_EXT} ${APPHOME}/webapps/${PORTNAME}/WEB-INF
.if ${PORT_OPTIONS:MEXAMPLES}
	${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \;
	cd ${WRKSRC}/samples && ${FIND} . -type f -not -name '*.class' -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
.endif

.include <bsd.port.mk>
@


1.13
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/www/axis2/Makefile 305180 2012-10-03 01:15:48Z jgh $
d11 1
a11 1
MAINTAINER=	ports@@FreeBSD.org
d21 1
a21 1
OPTIONS_SINGLE_AS=	TOMCAT5 TOMCAT6 TOMCAT7
a25 6
.if ${PORT_OPTIONS:MTOMCAT5}
APPHOME=	${LOCALBASE}/tomcat5.5
BUILD_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
RUN_DEPENDS+=	${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
.endif

d54 1
a54 1
	@@install -d -g ${SHAREGRP} -o ${SHAREOWN} ${APPHOME}/webapps/${PORTNAME}/WEB-INF/conf
@


1.12
log
@SVN rev 305180 on 2012-10-03 01:15:48Z by jgh

- reset maintainer to heap
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.11
log
@SVN rev 302842 on 2012-08-21 05:21:04Z by jgh

- fix examples installation, bump portrevision

PR:	170807
Submitted by:	Artis.Caune@@gmail.com
@
text
@a0 4
# New ports collection makefile for:	axis2
# Date created:				28 July 2011
# Whom:					Jason Helfman <jhelfman@@experts-exchange.com>
#
d11 1
a11 1
MAINTAINER=	jgh@@FreeBSD.org
@


1.10
log
@- adopt optionsNG
@
text
@d9 1
d84 2
a85 1
.if $(PORT_OPTIONS:MEXAMPLES}
@


1.9
log
@- Update to 1.6.2
- shorten MASTER_SITES
- move default to tomcat6

Changes: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=10611&version=12317875
Sponsored by: Experts-Exchange, LLC.
@
text
@d23 3
a25 3
OPTIONS=		TOMCAT5 "Enable Tomcat 5.x support"     off \
			TOMCAT6 "Enable Tomcat 6.x support"     on \
			TOMCAT7 "Enable Tomcat 7.x support"     off
d29 1
a29 1
.if defined(WITH_TOMCAT5)
d35 1
a35 1
.if defined(WITH_TOMCAT6)
d41 1
a41 1
.if defined(WITH_TOMCAT7)
a46 8
.if ( defined(WITH_TOMCAT5) && defined(WITH_TOMCAT6) || defined(WITH_TOMCAT7) )
IGNORE=	you can only define one application server
.elif ( defined(WITH_TOMCAT6) && defined(WITH_TOMCAT7) )
IGNORE=	you can only define one application server
.elif !defined(APPHOME)
IGNORE=	you need at least one application server
.endif

a54 1
.if !defined(NOPORTEXAMPLES)
a55 1
.endif
d83 1
a83 1
.if !defined(NOPORTEXAMPLES)
@


1.8
log
@- fix package installations, %D% => %D
- bump PORTREVISION

Sponsored by: Experts-Exchange, LLC.
@
text
@d8 1
a8 2
PORTVERSION=	1.6.1
PORTREVISION=	3
d10 1
a10 1
MASTER_SITES=	${MASTER_SITE_APACHE}
d23 2
a24 2
OPTIONS=		TOMCAT5 "Enable Tomcat 5.x support"     on \
			TOMCAT6 "Enable Tomcat 6.x support"     off \
@


1.7
log
@- The proper acronym for Apache Software License 2 is really AL2
- Thanks to crees@@ for generating the initial patch

PR:		ports/163521
Submitted by:	Pedro Giffuni <pfg apache.org>
Hat:		portmgr
Exp run by:	pav
@
text
@d9 1
a9 1
PORTREVISION=	2
@


1.6
log
@move contributor address => jgh

Approved by:	crees (mentor)
@
text
@d18 1
a18 1
LICENSE=	ASL
@


1.5
log
@- Package installation fixed for exec's
- Account for local web.xml file
- portrevision Bump (pkg-plist change)

PR:		ports/163032
Submitted by:	Jason Helfman <jhelfman@@experts-exchange.com> (maintainer)
Feature safe:	yes
@
text
@d15 1
a15 1
MAINTAINER=	jhelfman@@experts-exchange.com
@


1.4
log
@- Move to binary distribution to support building applications.
- Bump portrevision.

PR:		ports/162999
Submitted by:	Jason Helfman <jhelfman@@experts-exchange.com> (maintainer)
Feature safe:	yes
@
text
@d9 1
a9 1
PORTREVISION=	1
d70 2
a71 1
	( cd ${WRKSRC}/webapp && ${COPYTREE_SHARE} \* ${APPHOME}/webapps/${PORTNAME} )
d73 1
d86 8
@


1.3
log
@Remove reference to UNZIP_CMD in install target -- missed in previous commit.

Submitted by:	Jason Helfman (maintainer)
@
text
@d7 5
a11 4
PORTNAME=		axis2
PORTVERSION=		1.6.1
CATEGORIES=		www java
MASTER_SITES=		${MASTER_SITE_APACHE}
d13 1
a13 1
DISTNAME=		${PORTNAME}-${PORTVERSION}-war
d21 2
a33 1
WEBAPPDIR=	${APPHOME}/webapps
a39 1
WEBAPPDIR=	${APPHOME}/webapps
a45 1
WEBAPPDIR=	${APPHOME}/webapps
d52 1
a52 1
.elif !defined(WEBAPPDIR)
d60 3
a62 1
PLIST_SUB+=	WEBAPPS=${WEBAPPDIR:S|^${PREFIX}/||}
d64 3
a66 3
do-build:
	@@${MKDIR} ${WRKSRC}
	@@(cd ${WRKSRC} && ${TAR} xf ${WRKDIR}/${PORTNAME}.war)
d69 19
a87 2
	${MKDIR} ${WEBAPPDIR}/${PORTNAME}
	( cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTNAME} )
@


1.2
log
@Fix build and fail if no app servers are selected.

Submitted by:	Jason Helfman (maintainer), eadler
@
text
@a67 1
	${UNZIP_CMD} ${WRKDIR}/${PORTNAME}.war -d ${WEBAPPDIR}/${PORTNAME}
@


1.1
log
@Apache Axis2 is a Web Services / SOAP / WSDL engine, the successor to the
widely used Apache Axis SOAP stack. There are two implementations of the Apache
Axis2 Web services engine - Apache Axis2/Java and Apache Axis2/C

WWW: http://axis.apache.org/axis2/java/core/

PR:		ports/159269
Reviewed by:	glewis
Submitted by:	Jason Helfman <jhelfman@@e-e.com>
Approved by:	bapt (mentor)
@
text
@d19 2
d52 2
a55 4
.include <bsd.port.options.mk>

USE_ZIP=	yes
NO_BUILD=	YES
d58 2
d62 4
d69 1
@

