blob: 9beff93a17ab4f7779b47bc03e638ca3345f246f (
plain)
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
|
# $NetBSD: Makefile,v 1.5 2020/01/18 23:33:13 rillig Exp $
#
APOLLOVERS= 1.4
DISTNAME= apache-apollo-${APOLLOVERS}-unix-distro
PKGNAME= apollo-${APOLLOVERS}
PKGREVISION= 1
CATEGORIES= net java
MASTER_SITES= ${MASTER_SITE_APACHE:=activemq/activemq-apollo/1.4/}
MAINTAINER= imil@NetBSD.org
HOMEPAGE= https://activemq.apache.org/apollo/
COMMENT= Messaging broker built from the foundations of ActiveMQ
LICENSE= apache-2.0
WRKSRC= ${WRKDIR}/apache-apollo-1.4
USE_JAVA= run
NO_BUILD= yes
USE_TOOLS+= pax
INSTALLATION_DIRS= bin lib/apollo ${EGDIR}
PKG_SYSCONFSUBDIR= apollo
EGDIR= share/examples/apollo
CONF_FILES= ${PREFIX}/${EGDIR}/jul.properties \
${PKG_SYSCONFDIR}/jul.properties
SUBST_CLASSES+= home
SUBST_FILES.home= ${WRKSRC}/bin/apollo
SUBST_SED.home= -e 's,@APOLLO_HOME@,${PREFIX},'
SUBST_SED.home+= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},'
SUBST_STAGE.home= pre-configure
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/apollo ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/etc/jul.properties \
${DESTDIR}${PREFIX}/${EGDIR}
cd ${WRKSRC}/lib && ${PAX} -wr * ${DESTDIR}${PREFIX}/lib/apollo
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/lib/apollo/*.jar
cd ${WRKSRC}/examples && ${PAX} -wr * ${DESTDIR}${PREFIX}/${EGDIR}
${FIND} ${DESTDIR}${PREFIX}/${EGDIR} -type f -print | \
${XARGS} ${CHMOD} ${SHAREMODE}
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|