freebsd-ports/net-mgmt/monitoring-plugins/Makefile
Tobias C. Berner 43ac3e28ab net-mgmt: remove 'Created by' lines
A big Thank You to the original contributors of these ports:

  *  @BABOLO <.@babolo.ru>
  *  Alex Samorukov, samm@freebsd.org
  *  Alexander Kriventsov <avk@vl.ru>
  *  Alexander Sulfrian <alexander@sulfrian.net>
  *  Alexander Y. Grigoryev <alexander.4mail@gmail.com>
  *  Alexandre Biancalana <ale@biancalanas.net>
  *  Alexandre Snarskii <snar@paranoia.ru>
  *  Alexandre Snarskii <snar@snar.spb.ru>
  *  Alexey Bobkov <mr.deadlystorm@gmail.com>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Alexey V. Degtyarev
  *  Anders Nordby <anders@FreeBSD.org>
  *  Anders Troback
  *  Andreas Klemm <andreas@klemm.gtn.com>
  *  Andrew 'derfi' Sidorov <derfi@vei.ru>
  *  Andrew Pantyukhin <infofarmer@FreeBSD.org>
  *  Andrew Thompson <andy@fud.org.nz>
  *  Andrew Thompson <thompsa@freebsd.org>
  *  Anton Berezin <tobez@FreeBSD.org>
  *  Anton Berezin <tobez@tobez.org>
  *  Athanasios Douitsis <aduitsis@cpan.org>
  *  Babak Farrokhi <farrokhi@FreeBSD.org>
  *  Bartlomiej Rutkowski <r@robakdesign.com>
  *  Bill Fenner <fenner@FreeBSD.org>
  *  Blaz Zupan <blaz@si.FreeBSD.org>
  *  BluePex Security Solutions <freebsd-ports@bluepex.com>
  *  Boris Samorodov <bsam@FreeBSDD.org>
  *  Brad Davis <brd@FreeBSD.org>
  *  Brad Hendrickse <bradh@uunet.co.za>
  *  Brian Somers <brian@FreeBSD.org>
  *  Bruce M Simpson <bms@FreeBSD.org>
  *  Bruce Simpson
  *  Chris S.J. Peron <maneo@bsdpro.com>
  *  Chris St Denis <chris@smartt.com>
  *  Christer Edwards <christer.edwards@gmail.com>
  *  Christopher N. Harrell <cnh@ivmg.net>
  *  Clement Laforet <sheepkiller@cultdeadsheep.org>
  *  Corey Smith <corsmith@gmail.com>
  *  Craig Boston <craig@yekse.gank.org>
  *  Dave Cottlehuber <dch@FreeBSD.org>
  *  Dave Cottlehuber <dch@skunkwerks.at>
  *  David O'Brien (obrien@NUXI.com)
  *  David Shane Holden <dpejesh@yahoo.com>
  *  David Yeske <dyeske@gmail.com>
  *  Denis Shaposhnikov <dsh@vlink.ru>
  *  Dennis Herrmann <adox@mcx2.org>
  *  Dikshie <dikshie@sfc.wide.ad.jp>
  *  Dmitry Sivachenko <demon@FreeBSD.org>
  *  Domas Mituzas <midom@dammit.lt>
  *  Douglas Fraser <doug@idmf.net>
  *  Douglas K. Rand <rand@iteris.com>
  *  Douglas K. Rand <rand@meridian-enviro.com>
  *  Edwin Groothuis <edwin@mavetju.org>
  *  El Vampiro <vampiro@rootshell.ru>
  *  Emanuel Haupt <ehaupt@FreeBSD.org>
  *  Eric F Crist <ecrist@secure-computing.net>
  *  Eric Turgeon <ericturgeon.bsd@gmail.org>
  *  Eugene Grosbein <eugen@FreeBSD.org>
  *  Fotis Zabaras <fotis@zabaras.eu>
  *  Frank Wall <freebsd@moov.de>
  *  Frank Wall <fw@moov.de>
  *  Gea-Suan Lin <gslin@gslin.org>
  *  Geoffroy Desvernay <dgeo@centrale-marseille.fr>
  *  George Reid <greid@ukug.uk.freebsd.org>
  *  Gerrit Beine <gerrit.beine@gmx.de>
  *  Henrik Brix Andersen <henrik@brixandersen.dk>
  *  Holger Lamm <holger@eit.uni-kl.de>
  *  Hsin-Han You <hhyou@cs.nctu.edu.tw>
  *  Hung-Yi Chen <gaod@hychen.org>
  *  Inacio <nacho319+freebsdZilla@gmail.com>
  *  J.R. Oldroyd <fbsd@opal.com>
  *  JJ Behrens <jj@nttmcl.com>
  *  Jake Smith <jake@xz.cx>
  *  James FitzGibbon <jfitz@FreeBSD.org>
  *  James Flemer <jflemer@acm.jhu.edu>
  *  Janos Mohacsi <janos.mohacsi@bsd.hu>
  *  Janos Mohacsi <mohacsi@niif.hu>
  *  Janos.Mohacsi@bsd.hu
  *  Janos.Mohacsi@dante.org.uk
  *  Jason Helfman <jgh@FreeBSD.org>
  *  Jeremy Chadwick <koitsu@FreeBSD.org>
  *  Jerry A! <jerry@thehutt.org>
  *  Jev Björsell <ports@ecadlabs.com>
  *  Joe Clarke <marcus@marcuscom.com
  *  Joe Clarke <marcus@marcuscom.com>
  *  Johannes Jost Meixner <johannes@FreeBSD.org>
  *  Johannes Jost Meixner <johannes@perceivon.net>
  *  Josh Carroll <josh.carroll@gmail.com>
  *  KIKUCHI Koichiro <koichiro@rworks.jp>
  *  Kevin Hung <khung@nullaxiom.com>
  *  Kian Mohageri <kian.mohageri@gmail.com>
  *  Kimura Fuyuki <fuyuki@hadaly.org>
  *  Kirill Ponomarew <ponomarew@oberon.net>
  *  Kris Kennaway <kris@FreeBSD.org>
  *  Lars Engels <lars.engels@0x20.net>
  *  Lars Thegler <lars@thegler.dk>
  *  Lawrence Chen <beastie@tardisi.com>
  *  Lev Walkin <vlm@lionet.info>
  *  Luca Pizzamiglio <pizzamig@FreeBSD.org>
  *  Mahdi Mokhtari <mokhi63@gmail.com>
  *  Manuel Kreutz <mk@nomtec.net>
  *  Marcin Cieslak <saper@system.pl>
  *  Mark Felder <feld@FreeBSD.org>
  *  Mark Pulford <mark@kyne.com.au>
  *  Martin Jackson <mhjacks@swbell.net>
  *  Martin Matuska <mm@FreeBSD.org>
  *  Mathieu Simon <freebsd@simweb.ch>
  *  Matt Moriarity <matt@mattmoriarity.com>
  *  Matt Peterson <matt@peterson.org>
  *  Matthew Seaman <matthew@FreeBSD.org>
  *  Michael L. Hostbaek (mich@freebsdcluster.org)
  *  Michael Lyngbøl <lyngbol@wheel.dk>
  *  Michael Reifenberger <mr@FreeBSD.org>
  *  Michal Hanula <michal@hanu.la>
  *  Mike Bristow <mike@urgle.com>
  *  Mikhail T. <mi@aldan.algebra.com>
  *  Mikolaj Golub <to.my.trociny@gmail.com>
  *  Muhammad Moinur Rahman <5u623l20@gmail.com>
  *  Muhammad Moinur Rahman <bofh@FreeBSD.org>
  *  Nicholas Esborn <nick@netdot.net>
  *  Nick F <ffault@gmail.com>
  *  Nick Hilliard
  *  Nick Hilliard <nick@foobar.org>
  *  Pakhom Golynga <pg@pakhom.spb.ru>
  *  Paul Chvostek <paul@it.ca>
  *  Paul Dlug <paul@nerdlabs.com>
  *  Paul Dlug<paul@nerdlabs.com>
  *  Pavel I Volkov
  *  Peter C. Lai <cowbert@gmail.com>
  *  Phil Phillips
  *  Pierre David <pdagog@gmail.com>, Jean Benoit <jean@unistra.fr>
  *  Rihaz Jerrin <rihaz.jerrin@gmail.com>
  *  Roar Pettersen <roar@uib.no>
  *  Russell A. Jackson <rjackson@cserv62.csub.edu>
  *  Ryan Steinmetz
  *  Ryan Steinmetz <rpsfa@rit.edu>
  *  Ryan Steinmetz <zi@FreeBSD.org>
  *  Serge Maslov <serge@maslov.biz>
  *  Sergey Skvortsov <skv@protey.ru>
  *  Sevan Janiyan <venture37@geeklan.co.uk>
  *  Shaun Amott <shaun@inerd.com>
  *  Simon 'corecode' Schubert <corecode@corecode.ath.cx>
  *  Stefan Esser <se@FreeBSD.org>
  *  Stefan Lambrev <cheffo@freebsd-bg.org>
  *  Stephen J. Roznowski <sjr@home.net>
  *  Steve Wills <swills@FreeBSD.org>
  *  Steven Kreuzer <skreuzer@FreeBSD.org>
  *  Tassilo Philipp <tphilipp@potion-studios.com>
  *  Thomas Spreng <spreng@socket.ch>
  *  Tim Bishop <tdb@FreeBSD.org>
  *  Timur I. Bakeyev <bat@cpan.org>
  *  Tom Judge <tj@FreeBSD.org>
  *  Tor Halvard "Squat" Furulund <squat@squat.no>
  *  Tsung-Han Yeh <snowfly@yuntech.edu.tw>
  *  Tsung-Han Yeh <snowfly@yunteche.du.tw>
  *  Tuc <freebsd-ports@t-b-o-h.net>
  *  Vaida Bogdan
  *  Veniamin Gvozdikov <vg@FreeBSD.org>
  *  Vladimir Ermakov <samflanker@gmail.com>
  *  Vladimir Kotal <vlada@devnull.cz>
  *  Wei-chun Chao
  *  Xavier Beaudouin <kiwi@oav.net>
  *  Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
  *  Yuan-Chung Hsiao <ychsiao@ychsiao.org>
  *  anarcat@anarcat.ath.cx
  *  arved
  *  babak@farrokhi.net
  *  brock@cotcomsol.com
  *  clement@FreeBSD.org
  *  cnh@ivmg.net
  *  dom@happygiraffe.net
  *  dpejesh@yahoo.com
  *  ecronin@gizmolabs.org
  *  ehaupt@FreeBSD.org
  *  gpalmer
  *  gslin <gslin@gslin.org>
  *  hr <holgerrepp@googlemail.com>
  *  ijliao
  *  itojun@itojun.org
  *  jabley
  *  jabley@clear.co.nz
  *  jamrich.majo@gmail.com
  *  janos.mohacsi@bsd.hu
  *  joris
  *  joseph@randomnetworks.com
  *  marck@rinet.ru
  *  mich@FreeBSD.org
  *  mich@freebsdcluster.org
  *  nbm
  *  rea-fbsd@codelabs.ru
  *  rflynn@acsalaska.net
  *  salexanov@gmail.com
  *  sanpei@FreeBSD.org
  *  steinex
  *  torstenb
  *  trevor
  *  vfom@narod.ru
  * # Created by Kevin Bowling <kbowling@FreeBSD.org>

With hat:	portmgr
2022-07-20 16:22:42 +02:00

143 lines
4.4 KiB
Makefile

PORTNAME= monitoring-plugins
PORTVERSION= 2.3.1
CATEGORIES= net-mgmt
MASTER_SITES= https://www.monitoring-plugins.org/download/ \
LOCAL/mat/${PORTNAME}
MAINTAINER= mat@FreeBSD.org
COMMENT= Monitoring Plugins for Nagios
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= charsetfix gmake libtool perl5 ssl
USE_SUBMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${PREFIX}/share \
--libexecdir=${PREFIX}/libexec/nagios \
--localstatedir=${NAGIOSDIR} \
--prefix=${PREFIX} \
--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
--sysconfdir=${PREFIX}/etc/nagios \
--with-cgiurl=${NAGIOSCGIURL} \
--with-perl=${PERL}
# Also, force some commands with their expected paths so that they don't get
# disabled.
CONFIGURE_ARGS+= --with-ping-command="/sbin/ping -n -t %d -c %d %s" \
--with-ping6-command="${_PING6_CMD}" \
ac_cv_path_PATH_TO_PING6=/sbin/ping6 \
ac_cv_path_PATH_TO_PING=/sbin/ping \
ac_cv_path_PATH_TO_QMAIL_QSTAT=/var/qmail/bin/qmail-qstat \
ac_cv_path_PATH_TO_SMBCLIENT=${LOCALBASE}/bin/smbclient \
ac_cv_path_PATH_TO_SUDO=${LOCALBASE}/bin/sudo
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFLICTS_INSTALL= nagios-plugins
OPTIONS_DEFINE= DBI EXTRAOPTS FPING IPV6 LDAP MYSQL NETSNMP NLS PGSQL \
QSTAT RADIUS SSH_PORTABLE
OPTIONS_DEFAULT= DNS_BASE EXTRAOPTS
OPTIONS_SINGLE= DNS
OPTIONS_SINGLE_DNS= DNS_BASE DNS_BINDTOOLS
OPTIONS_SUB= yes
DBI_DESC= Check database using DBI
DNS_BASE_DESC= Use drill for check_dig and no check_dns
DNS_BINDTOOLS_DESC= Use dig and nslookup from dns/bind-tools
DNS_DESC= Configuration of check_dig and check_dns (see help)
EXTRAOPTS_DESC= Parsing of plugins ini config files for extra options
FPING_DESC= Support for non-flooding fast ping (check_fping)
LDAP_DESC= OpenLDAP support (check_ldap)
MYSQL_DESC= MySQL support (check_mysql)
NETSNMP_DESC= SNMP support (check_snmp)
PGSQL_DESC= PostgreSQL support (check_pgsql)
QSTAT_DESC= Game server query support (check_game)
RADIUS_DESC= Radius support (check_radius)
SSH_PORTABLE_DESC= Build check_ssh with ports openssh (instead of base)
DBI_LIB_DEPENDS= libdbi.so:databases/libdbi
DBI_CONFIGURE_WITH= dbi
DNS_BASE_CONFIGURE_ON= --with-dig-command=/usr/bin/drill \
ac_cv_path_PATH_TO_NSLOOKUP=
DNS_BASE_EXTRA_PATCHES= ${FILESDIR}/extra-patch-dig-to-drill.diff
DNS_BINDTOOLS_BUILD_DEPENDS= ${LOCALBASE}/bin/dig:dns/bind-tools
DNS_BINDTOOLS_RUN_DEPENDS= ${DNS_BINDTOOLS_BUILD_DEPENDS}
DNS_BINDTOOLS_CONFIGURE_ON= --with-dig-command=${LOCALBASE}/bin/dig \
--with-nslookup-command=${LOCALBASE}/bin/nslookup
EXTRAOPTS_CONFIGURE_ENABLE= extra-opts
FPING_BUILD_DEPENDS= fping:net/fping
FPING_RUN_DEPENDS= fping:net/fping
FPING_CONFIGURE_OFF= ac_cv_path_PATH_TO_FPING6= \
ac_cv_path_PATH_TO_FPING=
IPV6_CONFIGURE_WITH= ipv6
LDAP_USE= OPENLDAP=yes
LDAP_CONFIGURE_WITH= ldap
MYSQL_USES= mysql
MYSQL_CONFIGURE_WITH= mysql=${LOCALBASE}
NETSNMP_BUILD_DEPENDS= p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP \
snmpcheck:net-mgmt/net-snmp
NETSNMP_RUN_DEPENDS= p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP \
snmpcheck:net-mgmt/net-snmp
NETSNMP_CONFIGURE_OFF= ac_cv_path_PATH_TO_SNMPGET= \
ac_cv_path_PATH_TO_SNMPGETNEXT=
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
PGSQL_USES= pgsql
PGSQL_CONFIGURE_WITH= pgsql=${LOCALBASE}
QSTAT_BUILD_DEPENDS= qstat:games/qstat
QSTAT_RUN_DEPENDS= qstat:games/qstat
QSTAT_CONFIGURE_OFF= ac_cv_path_PATH_TO_QSTAT= \
ac_cv_path_PATH_TO_QUAKESTAT=
RADIUS_LIB_DEPENDS= libradiusclient-ng.so:net/radiusclient
RADIUS_CONFIGURE_WITH= radius
SSH_PORTABLE_BUILD_DEPENDS= ${LOCALBASE}/bin/ssh:security/openssh-portable
SSH_PORTABLE_RUN_DEPENDS:= ${SSH_PORTABLE_BUILD_DEPENDS}
SSH_PORTABLE_CONFIGURE_ON= --with-ssh-command=${LOCALBASE}/bin/ssh
NAGIOSDIR?= /var/spool/nagios
NAGIOSWWWDIR?= www/nagios
NAGIOSHTMURL?= /nagios
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
.include <bsd.port.options.mk>
.if ${OSVERSION} < 1300041
_PING6_CMD= /sbin/ping6 -n -X %d -c %d %s
.else
_PING6_CMD= /sbin/ping6 -n -t %d -c %d %s
.endif
.if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE)
PLIST_SUB+= SSH="@comment "
.else
PLIST_SUB+= SSH=""
.endif
post-patch:
.for file in check_by_ssh.c check_disk.c check_http.c check_mrtgtraf.c \
check_nagios.c check_ntp.c check_ntp_peer.c check_ntp_time.c \
check_pgsql.c check_snmp.c check_ssh.c check_swap.c check_time.c \
check_users.c
@${REINPLACE_CMD} -e 's|setlocale (LC_ALL, "");|setlocale (LC_ALL, ""); setlocale(LC_NUMERIC, "C");|g' ${WRKSRC}/plugins/${file}
.endfor
.include <bsd.port.mk>