summaryrefslogtreecommitdiff
path: root/sysutils/zabbix50-java/Makefile
blob: 7a96acd04bb1837cf55e3228d3bb100552ff9f16 (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
# $NetBSD: Makefile,v 1.3 2022/07/25 11:12:28 wiz Exp $

.include "../../sysutils/zabbix50-server/Makefile.common"

PKGNAME=	${DISTNAME:S/-/-java-/}
COMMENT=	Enterprise-class Monitoring Solution for Everyone

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--enable-java
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}

CONFIGURE_ENV+=	JAVAC=${PKG_JAVA_HOME}/bin/javac
CONFIGURE_ENV+=	JAR=${PKG_JAVA_HOME}/bin/jar

USE_JAVA=	run
PKG_JVMS_ACCEPTED=	openjdk8

SUBST_CLASSES+=			fix-paths
SUBST_STAGE.fix-paths=		pre-configure
SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
SUBST_FILES.fix-paths=		conf/*.conf
SUBST_FILES.fix-paths+=		man/*.man
SUBST_SED.fix-paths=		-e 's,/usr/local/etc,${PKG_SYSCONFDIR},g'

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.pkg.mk"