ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
62 lines
1.8 KiB
Makefile
62 lines
1.8 KiB
Makefile
# Created by: Peter C. Lai <cowbert@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mk-livestatus
|
|
PORTVERSION= 1.2.8p25
|
|
PORTREVISION= 2
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://mathias-kettner.de/download/
|
|
DIST_SUBDIR= check_mk
|
|
|
|
MAINTAINER= egypcio@FreeBSD.org
|
|
COMMENT= Nagios event broker module
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= compiler:c++11-lang
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_FILES= lib/mk-livestatus/unixcat \
|
|
lib/mk-livestatus/livestatus.o
|
|
SUB_FILES= pkg-message
|
|
|
|
PORTEXAMPLES= *.py README
|
|
EXAMPLE_FILES= example_multisite.py example.py \
|
|
livestatus.py make_nagvis_map.py \
|
|
README
|
|
|
|
# parameter "command_file" from nagios.cfg
|
|
COMMAND_FILE?= /var/spool/nagios/rw/live
|
|
|
|
OPTIONS_DEFINE= EXAMPLES PERL
|
|
OPTIONS_SINGLE= NAGIOS
|
|
OPTIONS_SINGLE_NAGIOS= NAGIOS3 NAGIOS4
|
|
OPTIONS_DEFAULT= NAGIOS4
|
|
|
|
NAGIOS3_DESC= Build support for Nagios 3.x
|
|
NAGIOS4_DESC= Build support for Nagios 4.x
|
|
PERL_DESC= Install Monitoring-Livestatus Perl API
|
|
|
|
EXAMPLES_USES= python
|
|
NAGIOS3_RUN_DEPENDS= nagios>=3.5.1:net-mgmt/nagios
|
|
# --without-nagios4 is broken and is equivalent to --with-nagios4,
|
|
# so do not use NAGIOS4_CONFIGURE_WITH here or it breaks the NAGIOS3
|
|
# option, cf. PR 232716.
|
|
NAGIOS4_CONFIGURE_ON= --with-nagios4
|
|
NAGIOS4_RUN_DEPENDS= nagios4>=4.4:net-mgmt/nagios4
|
|
PERL_RUN_DEPENDS= p5-Monitoring-Livestatus>=0:net-mgmt/p5-Monitoring-Livestatus
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|/usr/local/nagios/var/rw/live|${COMMAND_FILE}|' \
|
|
${WRKSRC}/src/livestatus.h
|
|
|
|
post-install-EXAMPLES-on:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \
|
|
-e 's|/var/lib/nagios/rw/live|${COMMAND_FILE}|g' \
|
|
-e 's|/var/run/nagios/rw/live|${COMMAND_FILE}|g' \
|
|
${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|}
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|