2021-03-11 11:56:00 +00:00

49 lines
993 B
Makefile

# $OpenBSD: Makefile,v 1.14 2021/03/11 11:56:00 kirby Exp $
COMMENT= command-line interface to Icinga
V= 0.48
DISTNAME= App-Icli-$V
PKGNAME= icli-$V
REVISION= 3
CATEGORIES= net
HOMEPAGE= https://finalrewind.org/projects/App-Icli/
# custom, see COPYING.
PERMIT_PACKAGE= Yes
MASTER_SITES= ${HOMEPAGE}
FLAVORS= nagios
FLAVOR?=
.if ${FLAVOR:Mnagios}
RUN_DEPENDS= net/nagios/nagios
DATDIR= ${VARBASE}/nagios
.else
RUN_DEPENDS= net/icinga/core2
DATDIR= ${VARBASE}/cache/icinga2
.endif
RUN_DEPENDS+= devel/p5-DateTime-Format-Strptime \
devel/p5-List-MoreUtils \
devel/p5-Term-Size
CONFIGURE_STYLE= modbuild
CONFIGURE_ARGS= --icli-object-file=${DATDIR}/objects.cache \
--icli-status-file=${DATDIR}/status.dat \
--icli-command-file=${DATDIR}/icinga.cmd
# some deps not ported
NO_TEST= Yes
#TEST_DEPENDS+= devel/p5-Test-Command \ (unported)
# devel/p5-Test-Compile \ (unported)
# devel/p5-Test-More \
# devel/p5-Test-Pod
PKG_ARCH= *
.include <bsd.port.mk>