Changeset View
Changeset View
Standalone View
Standalone View
head/net-mgmt/nagios-plugins/Makefile
# Created by: Blaz Zupan <blaz@si.FreeBSD.org> | # Created by: Blaz Zupan <blaz@si.FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= nagios-plugins | PORTNAME= nagios-plugins | ||||
PORTVERSION= 2.2.1 | PORTVERSION= 2.2.1 | ||||
PORTREVISION= 6 | PORTREVISION= 7 | ||||
PORTEPOCH= 1 | PORTEPOCH= 1 | ||||
CATEGORIES= net-mgmt | CATEGORIES= net-mgmt | ||||
MASTER_SITES= https://www.nagios-plugins.org/download/ \ | MASTER_SITES= https://www.nagios-plugins.org/download/ \ | ||||
LOCAL/mat/${PORTNAME} | LOCAL/mat/${PORTNAME} | ||||
MAINTAINER= mat@FreeBSD.org | MAINTAINER= mat@FreeBSD.org | ||||
COMMENT= Plugins for Nagios | COMMENT= Plugins for Nagios | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
CONFLICTS_INSTALL= monitoring-plugins-* | CONFLICTS_INSTALL= monitoring-plugins-* | ||||
USES= charsetfix gmake perl5 libtool ssl | USES= charsetfix gmake perl5 libtool ssl | ||||
USE_SUBMAKE= yes | USE_SUBMAKE= yes | ||||
BIND_VERS=11 12 14 | |||||
OPTIONS_DEFINE= QSTAT FPING NETSNMP RADIUS MYSQL PGSQL LDAP IPV6 NLS DBI EXTRAOPTS SSH_PORTABLE | OPTIONS_DEFINE= QSTAT FPING NETSNMP RADIUS MYSQL PGSQL LDAP IPV6 NLS DBI EXTRAOPTS SSH_PORTABLE | ||||
OPTIONS_SINGLE= DNS | OPTIONS_SINGLE= DNS | ||||
OPTIONS_SINGLE_DNS= DNS_BASE DNS_BINDTOOLS ${BIND_VERS:S/^/DNS_BIND9/} | OPTIONS_SINGLE_DNS= DNS_BASE DNS_BINDTOOLS | ||||
OPTIONS_DEFAULT=EXTRAOPTS DNS_BASE | OPTIONS_DEFAULT=EXTRAOPTS DNS_BASE | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
QSTAT_DESC= Game server query support (check_game) | QSTAT_DESC= Game server query support (check_game) | ||||
FPING_DESC= Support for non-flooding fast ping (check_fping) | FPING_DESC= Support for non-flooding fast ping (check_fping) | ||||
NETSNMP_DESC= SNMP support (check_snmp) | NETSNMP_DESC= SNMP support (check_snmp) | ||||
RADIUS_DESC= Radius support (check_radius) | RADIUS_DESC= Radius support (check_radius) | ||||
MYSQL_DESC= MySQL support (check_mysql) | MYSQL_DESC= MySQL support (check_mysql) | ||||
PGSQL_DESC= PostgreSQL support (check_pgsql) | PGSQL_DESC= PostgreSQL support (check_pgsql) | ||||
LDAP_DESC= OpenLDAP support (check_ldap) | LDAP_DESC= OpenLDAP support (check_ldap) | ||||
DBI_DESC= Check database using DBI | DBI_DESC= Check database using DBI | ||||
EXTRAOPTS_DESC= Parsing of plugins ini config files for extra options | EXTRAOPTS_DESC= Parsing of plugins ini config files for extra options | ||||
SSH_PORTABLE_DESC= Build check_ssh with ports openssh (instead of base) | SSH_PORTABLE_DESC= Build check_ssh with ports openssh (instead of base) | ||||
DNS_DESC= Configuration of check_dig and check_dns (see help) | DNS_DESC= Configuration of check_dig and check_dns (see help) | ||||
DNS_BASE_DESC= >= 10 means drill for check_dig and no check_dns | DNS_BASE_DESC= >= 10 means drill for check_dig and no check_dns | ||||
DNS_BINDTOOLS_DESC= Use dig and nslookup from dns/bind-tools | DNS_BINDTOOLS_DESC= Use dig and nslookup from dns/bind-tools | ||||
.for v in ${BIND_VERS} | |||||
DNS_BIND9${v}_DESC= Use dig and nslookup from dns/bind9${v} | |||||
.endfor | |||||
EXTRAOPTS_CONFIGURE_ENABLE= extra-opts | EXTRAOPTS_CONFIGURE_ENABLE= extra-opts | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
NAGIOSUSER?= nagios | NAGIOSUSER?= nagios | ||||
NAGIOSGROUP?= nagios | NAGIOSGROUP?= nagios | ||||
NAGIOSDIR?= /var/spool/nagios | NAGIOSDIR?= /var/spool/nagios | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
NLS_CONFIGURE_ENABLE= nls | NLS_CONFIGURE_ENABLE= nls | ||||
DBI_LIB_DEPENDS= libdbi.so:databases/libdbi | DBI_LIB_DEPENDS= libdbi.so:databases/libdbi | ||||
DBI_CONFIGURE_WITH= dbi | DBI_CONFIGURE_WITH= dbi | ||||
DNS_BINDTOOLS_BUILD_DEPENDS= ${LOCALBASE}/bin/dig:dns/bind-tools | DNS_BINDTOOLS_BUILD_DEPENDS= ${LOCALBASE}/bin/dig:dns/bind-tools | ||||
DNS_BINDTOOLS_CONFIGURE_ON= --with-dig-command=${LOCALBASE}/bin/dig \ | DNS_BINDTOOLS_CONFIGURE_ON= --with-dig-command=${LOCALBASE}/bin/dig \ | ||||
--with-nslookup-command=${LOCALBASE}/bin/nslookup | --with-nslookup-command=${LOCALBASE}/bin/nslookup | ||||
.for v in ${BIND_VERS} | |||||
DNS_BIND9${v}_BUILD_DEPENDS= ${LOCALBASE}/bin/dig:dns/bind9${v} | |||||
DNS_BIND9${v}_CONFIGURE_ON= --with-dig-command=${LOCALBASE}/bin/dig \ | |||||
--with-nslookup-command=${LOCALBASE}/bin/nslookup | |||||
.endfor | |||||
SSH_PORTABLE_BUILD_DEPENDS= ${LOCALBASE}/bin/ssh:security/openssh-portable | SSH_PORTABLE_BUILD_DEPENDS= ${LOCALBASE}/bin/ssh:security/openssh-portable | ||||
SSH_PORTABLE_RUN_DEPENDS:= ${SSH_PORTABLE_BUILD_DEPENDS} | SSH_PORTABLE_RUN_DEPENDS:= ${SSH_PORTABLE_BUILD_DEPENDS} | ||||
SSH_PORTABLE_CONFIGURE_ON= --with-ssh-command=${LOCALBASE}/bin/ssh | SSH_PORTABLE_CONFIGURE_ON= --with-ssh-command=${LOCALBASE}/bin/ssh | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MDNS_BASE} | .if ${PORT_OPTIONS:MDNS_BASE} | ||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-dig-to-drill.diff | EXTRA_PATCHES+= ${FILESDIR}/extra-patch-dig-to-drill.diff | ||||
CONFIGURE_ARGS+=--with-dig-command=/usr/bin/drill \ | CONFIGURE_ARGS+=--with-dig-command=/usr/bin/drill \ | ||||
ac_cv_path_PATH_TO_NSLOOKUP= | ac_cv_path_PATH_TO_NSLOOKUP= | ||||
PLIST_SUB+= CHECK_DNS="@comment " | PLIST_SUB+= CHECK_DNS="@comment " | ||||
.else | .else | ||||
. if ${PORT_OPTIONS:MDNS_BASE} | |||||
CONFIGURE_ARGS+= --with-dig-command=/usr/bin/dig \ | |||||
--with-nslookup-command=/usr/bin/nslookup | |||||
. endif | |||||
PLIST_SUB+= CHECK_DNS="" | PLIST_SUB+= CHECK_DNS="" | ||||
.endif | .endif | ||||
.if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE) | .if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE) | ||||
PLIST_SUB+= SSH="@comment " | PLIST_SUB+= SSH="@comment " | ||||
.else | .else | ||||
PLIST_SUB+= SSH="" | PLIST_SUB+= SSH="" | ||||
.endif | .endif | ||||
Show All 15 Lines |