2021-04-23 21:12:33 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2021/04/23 21:12:33 sthen Exp $
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
COMMENT-main= monitoring plugins (for Nagios, Icinga, etc)
|
|
|
|
COMMENT-dbi= dbi monitoring plugin
|
|
|
|
COMMENT-fping= fping monitoring plugin
|
|
|
|
COMMENT-game= gameserver monitoring plugin
|
|
|
|
COMMENT-ldap= ldap monitoring plugin
|
|
|
|
COMMENT-mysql= mysql monitoring plugin
|
|
|
|
COMMENT-pgsql= postgresql monitoring plugin
|
|
|
|
COMMENT-samba= samba monitoring plugin
|
|
|
|
COMMENT-snmp= monitoring plugins using snmp
|
2016-11-30 20:46:42 +00:00
|
|
|
COMMENT-radius= RADIUS monitoring plugin
|
2014-07-11 20:08:04 +00:00
|
|
|
|
2021-04-23 21:12:33 +00:00
|
|
|
V= 2.3.1
|
2014-07-11 20:08:04 +00:00
|
|
|
DISTNAME= monitoring-plugins-$V
|
|
|
|
PKGNAME-main= monitoring-plugins-$V
|
|
|
|
PKGNAME-dbi= monitoring-plugins-dbi-$V
|
|
|
|
PKGNAME-fping= monitoring-plugins-fping-$V
|
|
|
|
PKGNAME-game= monitoring-plugins-game-$V
|
|
|
|
PKGNAME-ldap= monitoring-plugins-ldap-$V
|
|
|
|
PKGNAME-mysql= monitoring-plugins-mysql-$V
|
|
|
|
PKGNAME-pgsql= monitoring-plugins-pgsql-$V
|
|
|
|
PKGNAME-samba= monitoring-plugins-samba-$V
|
|
|
|
PKGNAME-snmp= monitoring-plugins-snmp-$V
|
2016-11-30 20:46:42 +00:00
|
|
|
PKGNAME-radius= monitoring-plugins-radius-$V
|
2014-07-11 20:08:04 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= https://www.monitoring-plugins.org/
|
|
|
|
|
2020-07-11 22:54:35 +00:00
|
|
|
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
# GPLv2
|
2019-06-03 16:06:50 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2014-07-11 20:08:04 +00:00
|
|
|
|
2017-11-13 15:36:16 +00:00
|
|
|
WANTLIB= c iconv intl pthread
|
2014-07-11 20:08:04 +00:00
|
|
|
|
2018-10-24 14:27:57 +00:00
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
|
2014-07-11 20:08:04 +00:00
|
|
|
MASTER_SITES= https://www.monitoring-plugins.org/download/
|
|
|
|
|
2019-05-20 22:15:00 +00:00
|
|
|
LIB_DEPENDS= devel/gettext,-runtime
|
2017-11-13 15:36:16 +00:00
|
|
|
|
2020-12-10 19:52:15 +00:00
|
|
|
WANTLIB-main= ${WANTLIB} crypto curl m nghttp2 ssl uriparser z
|
|
|
|
LIB_DEPENDS-main=${LIB_DEPENDS} \
|
|
|
|
net/curl \
|
|
|
|
www/uriparser
|
|
|
|
|
2014-07-11 20:08:04 +00:00
|
|
|
FAKE_FLAGS= setuid_root_mode=0555
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
AUTOCONF_VERSION= 2.69
|
2017-07-19 11:50:16 +00:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
2015-10-18 10:42:56 +00:00
|
|
|
# cgiurl is only used to produce an href to traceroute.cgi in check_ping output
|
2014-07-11 20:08:04 +00:00
|
|
|
CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios \
|
|
|
|
--with-cgiurl=/cgi-bin/nagios \
|
|
|
|
--with-openssl=/usr \
|
|
|
|
--without-gnutls
|
|
|
|
# can autodetect command paths, but hard-coding avoids build dependencies
|
2019-03-31 00:09:38 +00:00
|
|
|
CONFIGURE_ARGS+= --with-fping-command="${LOCALBASE}/sbin/fping -4" \
|
|
|
|
--with-fping6-command="${LOCALBASE}/sbin/fping -6" \
|
2014-07-11 20:08:04 +00:00
|
|
|
--with-smbclient-command=${LOCALBASE}/bin/smbclient \
|
|
|
|
--with-snmpget-command=${LOCALBASE}/bin/snmpget \
|
|
|
|
--with-snmpgetnext-command=${LOCALBASE}/bin/snmpgetnext \
|
|
|
|
--with-qstat-command=${LOCALBASE}/bin/qstat
|
|
|
|
# listed here to make it easier to move BIND to ports
|
2020-02-08 10:53:08 +00:00
|
|
|
CONFIGURE_ARGS+= --with-dig-command=/usr/bin/dig \
|
|
|
|
--with-nslookup-command=/usr/bin/nslookup
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
CFLAGS+= -DLDAP_DEPRECATED
|
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_db
|
|
|
|
FLAVOR?=
|
|
|
|
|
2016-11-30 20:46:42 +00:00
|
|
|
MULTI_PACKAGES= -main -fping -game -samba -snmp -dbi -ldap -mysql -pgsql -radius
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
# many broken tests, but...
|
|
|
|
TEST_IS_INTERACTIVE=Yes
|
|
|
|
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
|
|
|
.if ${FLAVOR:Mno_db}
|
|
|
|
BUILD_PACKAGES := ${BUILD_PACKAGES:N-dbi:N-ldap:N-mysql:N-pgsql}
|
|
|
|
.endif
|
|
|
|
|
2016-11-30 20:46:42 +00:00
|
|
|
# don't bother with no_XX for those with no build dependencies, or
|
|
|
|
# lightweight/common build dependencies
|
2014-07-11 20:08:04 +00:00
|
|
|
BUILD_DEPENDS+= net/p5-Net-SNMP
|
2016-11-30 20:46:42 +00:00
|
|
|
|
2014-07-11 20:08:04 +00:00
|
|
|
RUN_DEPENDS-fping= ${RUN_DEPENDS} net/fping
|
|
|
|
RUN_DEPENDS-game= ${RUN_DEPENDS} games/qstat
|
2016-11-30 20:46:42 +00:00
|
|
|
|
2014-07-11 20:08:04 +00:00
|
|
|
LIB_DEPENDS-samba=
|
|
|
|
WANTLIB-samba=
|
|
|
|
RUN_DEPENDS-samba= net/samba
|
2016-11-30 20:46:42 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS-snmp= ${RUN_DEPENDS} \
|
|
|
|
net/net-snmp \
|
|
|
|
net/p5-Net-SNMP
|
|
|
|
|
|
|
|
LIB_DEPENDS-radius= net/radcli
|
2021-04-23 21:12:33 +00:00
|
|
|
WANTLIB-radius+= ${WANTLIB} gmp gnutls hogweed idn2 nettle
|
2020-12-10 19:52:15 +00:00
|
|
|
WANTLIB-radius+= p11-kit radcli tasn1 unistring
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
# MYSQL
|
|
|
|
.if !${BUILD_PACKAGES:M-mysql}
|
|
|
|
CONFIGURE_ARGS += --without-mysql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS += --with-mysql=${LOCALBASE}
|
|
|
|
.endif
|
2014-09-13 18:09:20 +00:00
|
|
|
LIB_DEPENDS-mysql = ${LIB_DEPENDS} databases/mariadb
|
2020-12-10 19:52:15 +00:00
|
|
|
WANTLIB-mysql = ${WANTLIB} crypto m mariadb ssl z
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
# PGSQL
|
|
|
|
.if !${BUILD_PACKAGES:M-pgsql}
|
|
|
|
CONFIGURE_ARGS += --without-pgsql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS += --with-pgsql=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
LIB_DEPENDS-pgsql = ${LIB_DEPENDS} databases/postgresql
|
2020-12-10 19:52:15 +00:00
|
|
|
WANTLIB-pgsql += ${WANTLIB} crypto m pq ssl
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
# DBI
|
|
|
|
.if !${BUILD_PACKAGES:M-dbi}
|
|
|
|
CONFIGURE_ARGS += --without-dbi
|
|
|
|
.endif
|
|
|
|
LIB_DEPENDS-dbi = ${LIB_DEPENDS} databases/libdbi
|
|
|
|
WANTLIB-dbi = ${WANTLIB} dbi m
|
|
|
|
|
|
|
|
# LDAP
|
|
|
|
LIB_DEPENDS-ldap = ${LIB_DEPENDS} databases/openldap
|
2020-12-10 19:52:15 +00:00
|
|
|
WANTLIB-ldap += ${WANTLIB} crypto lber ldap sasl2 ssl
|
2014-07-11 20:08:04 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|