net-mgmt/nagios-check_clamav: add NAGPLUGINS option

Add NAGPLUGINS option to choose between monitoring-plugins and
nagios-plugins.
Update MASTER_SITES and WWW.
Add LICENSE and LICENSE_FILE. The file is extracted from source.
Add NO_ARCH=yes.
Switch to DISTVERSION.
Pet portfmt.

PR:		255031
Approved by:	maintainer timeout (2+ weeks)
This commit is contained in:
Krzysztof 2024-07-26 16:29:48 +02:00 committed by Zsolt Udvari
parent bd04537abb
commit c40d3451f8
2 changed files with 37 additions and 8 deletions

View file

@ -1,25 +1,40 @@
PORTNAME= check_clamav
PORTVERSION= 1.2
PORTREVISION= 3
DISTVERSION= 1.2
PORTREVISION= 4
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
MASTER_SITES= https://ftp.bsdserwis.com/pub/FreeBSD/ports/distfiles/
PKGNAMEPREFIX= nagios-
MAINTAINER= joneum@FreeBSD.org
COMMENT= Nagios plugin that verifies ClamAV local signature database revision
WWW= http://bsd.phoenix.az.us/projects/check_clamav
WWW= https://exchange.nagios.org/directory/Plugins/Anti-2DVirus/ClamAV/ClamAV-check-plugin/details
LICENSE= MIT
LICENSE_FILE= ${FILESDIR}/MIT
RUN_DEPENDS+= clamav>=0:security/clamav \
p5-Net-DNS>=0:dns/p5-Net-DNS
NO_BUILD= yes
USES= perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= check_clamav
RUN_DEPENDS+= ${LOCALBASE}/libexec/nagios/utils.pm:net-mgmt/nagios-plugins \
clamav>=0:security/clamav \
p5-Net-DNS>=0:dns/p5-Net-DNS
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= libexec/nagios/check_clamav
OPTIONS_DEFAULT= NAGPLUGINS
OPTIONS_RADIO= PLUGINS
OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS
MONPLUGINS_DESC= Use net-mgmt/monitoring-plugins
NAGPLUGINS_DESC= Use net-mgmt/nagios-plugins
MONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_SCRIPT} ${WRKSRC}/check_clamav \

View file

@ -0,0 +1,14 @@
Copyright (c) 2005-2008 Darren Spruell <phatbuckett@gmail.com>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.