49 lines
985 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.12 2019/07/12 20:48:28 sthen Exp $
COMMENT= command-line interface to Icinga
2014-06-14 14:04:07 +00:00
V= 0.48
DISTNAME= App-Icli-$V
PKGNAME= icli-$V
2017-12-28 12:53:01 +00:00
REVISION= 1
CATEGORIES= net
2017-12-28 12:53:01 +00:00
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
2014-06-14 14:04:07 +00:00
DATDIR= ${VARBASE}/nagios
.else
RUN_DEPENDS= net/icinga/core
2014-06-14 14:04:07 +00:00
DATDIR= ${VARBASE}/icinga
.endif
2014-06-14 14:04:07 +00:00
RUN_DEPENDS+= devel/p5-DateTime-Format-Strptime \
devel/p5-List-MoreUtils \
2014-03-09 22:03:27 +00:00
devel/p5-Term-Size
CONFIGURE_STYLE= modbuild
2014-06-14 14:04:07 +00:00
CONFIGURE_ARGS= --icli-object-file=${DATDIR}/objects.cache \
--icli-status-file=${DATDIR}/status.dat \
--icli-command-file=${DATDIR}/icinga.cmd
# some deps not ported
2013-03-11 11:35:43 +00:00
NO_TEST= Yes
2014-06-14 14:04:07 +00:00
#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>