2012-12-10 14:18:28 +01:00
|
|
|
# Created by: Benjamin Close <benjsc@FreeBSD.org>
|
2008-01-29 15:43:28 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= avis
|
|
|
|
PORTVERSION= 1.2.0
|
2008-02-07 19:35:50 +01:00
|
|
|
PORTREVISION= 1
|
2008-01-29 15:43:28 +01:00
|
|
|
CATEGORIES= java net
|
2009-08-22 02:24:37 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Avis%20router/Release%20${PORTVERSION}
|
2008-01-29 15:43:28 +01:00
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= benjsc@FreeBSD.org
|
|
|
|
COMMENT= Elvin Publish/Subscribe Message Bus server based on the Elvin protocol
|
|
|
|
|
2014-03-10 16:21:21 +01:00
|
|
|
USES= zip
|
2008-01-29 15:43:28 +01:00
|
|
|
USE_JAVA= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_COMPILE)
|
2016-04-01 16:08:37 +02:00
|
|
|
BUILD_DEPENDS+= ${ANT_CMD}:devel/apache-ant
|
2008-01-29 15:43:28 +01:00
|
|
|
ANT_CMD?= ${LOCALBASE}/bin/ant
|
|
|
|
ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD}
|
|
|
|
ANT_TARGETS= jar-server
|
|
|
|
JAVA_BUILD= yes
|
|
|
|
.endif
|
|
|
|
|
2014-07-04 02:20:03 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2008-01-29 15:43:28 +01:00
|
|
|
PORTDOCS= README.txt\
|
|
|
|
LICENSE.txt\
|
|
|
|
history.txt
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You may use the following build options:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " WITHOUT_COMPILE=yes Install the pre-compiled .jar file"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.if !defined(WITHOUT_COMPILE)
|
|
|
|
@cd ${WRKSRC}/server && ${ANT} ${ANT_TARGETS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${ECHO_CMD} -n ">> Installing avisd..."
|
2014-06-17 09:53:12 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/avis/
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/server/bin/avisd ${STAGEDIR}${PREFIX}/sbin/avisd
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/server/lib/avis-router.jar ${STAGEDIR}${PREFIX}/libexec/avis/avis-router.jar
|
2008-01-29 15:43:28 +01:00
|
|
|
@${ECHO_CMD} " [DONE]"
|
2014-06-17 09:53:12 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/server/etc/avisd.config ${STAGEDIR}${PREFIX}/etc/avisd.conf.sample
|
2008-01-29 15:43:28 +01:00
|
|
|
|
|
|
|
@${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
|
2014-06-17 09:53:12 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2008-01-29 15:43:28 +01:00
|
|
|
@cd ${WRKSRC}/server/doc && ${FIND} . \
|
2014-06-17 09:53:12 +02:00
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR}
|
2008-01-29 15:43:28 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|