2016-03-07 07:46:59 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2016/03/07 07:46:59 jasper Exp $
|
2013-02-05 15:08:45 +00:00
|
|
|
|
|
|
|
PKG_ARCH= *
|
|
|
|
|
|
|
|
COMMENT= open source message broker implementing JMS 1.1
|
|
|
|
|
2016-03-07 07:46:59 +00:00
|
|
|
V= 5.13.2
|
2013-02-05 15:08:45 +00:00
|
|
|
DISTNAME= apache-activemq-$V
|
|
|
|
|
|
|
|
CATEGORIES= net
|
|
|
|
|
2013-07-14 16:37:01 +00:00
|
|
|
HOMEPAGE= https://activemq.apache.org/
|
|
|
|
|
2013-04-26 12:46:06 +00:00
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
2013-03-13 16:30:11 +00:00
|
|
|
|
2013-02-05 15:08:45 +00:00
|
|
|
# Apache2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2014-05-20 19:34:48 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=activemq/${V}/}
|
2013-02-05 15:08:45 +00:00
|
|
|
EXTRACT_SUFX= -bin.tar.gz
|
|
|
|
|
|
|
|
MODULES= java
|
|
|
|
MODJAVA_VER= 1.6+
|
|
|
|
|
|
|
|
RUN_DEPENDS= java/javaPathHelper
|
|
|
|
|
|
|
|
SUBST_VARS += V
|
|
|
|
|
|
|
|
NO_BUILD= Yes
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2013-02-05 15:08:45 +00:00
|
|
|
|
2013-03-18 10:52:56 +00:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/bin/activemq
|
|
|
|
|
2015-10-24 11:40:32 +00:00
|
|
|
INSTALL_DIRS= ${PREFIX}/activemq/lib/ \
|
|
|
|
${PREFIX}/activemq/webapps{,-demo}/ \
|
|
|
|
${PREFIX}/activemq/examples \
|
|
|
|
${PREFIX}/share/examples/activemq/
|
|
|
|
|
2013-02-05 15:08:45 +00:00
|
|
|
do-install:
|
2015-02-04 12:27:44 +00:00
|
|
|
-rm -r ${WRKSRC}/bin/{macosx,linux-x86-*,*.orig} \
|
2013-03-18 10:52:56 +00:00
|
|
|
${WRKSRC}/data
|
2013-02-05 15:08:45 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/activemq/
|
2013-03-13 16:30:11 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/activemq/conf
|
2013-02-05 15:08:45 +00:00
|
|
|
cd ${WRKSRC} && tar cf - * | tar xf - -C ${PREFIX}/activemq/
|
2013-03-18 14:46:28 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/activemq.conf ${PREFIX}/share/examples/activemq/
|
2013-03-13 16:30:11 +00:00
|
|
|
mv ${PREFIX}/activemq/conf ${PREFIX}/share/examples/activemq/
|
2015-10-24 11:40:32 +00:00
|
|
|
# Lots of weird modes to fixup, use a sledgehammer
|
|
|
|
find ${INSTALL_DIRS} -type f -print0 | xargs -0 chmod ${SHAREMODE}
|
|
|
|
find ${PREFIX}/activemq/bin/ -type f -name \*.jar -print0 | xargs -0 chmod ${BINMODE}
|
2013-03-18 10:52:56 +00:00
|
|
|
cd ${PREFIX}/activemq && ln -sf /var/db/activemq/data data
|
|
|
|
cd ${PREFIX}/activemq && ln -sf /var/db/activemq/tmp tmp
|
|
|
|
cd ${PREFIX}/activemq && ln -sf ${SYSCONFDIR}/activemq conf
|
2013-02-05 15:08:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|