git: c40d3451f8c0 - main - net-mgmt/nagios-check_clamav: add NAGPLUGINS option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jul 2024 14:33:06 UTC
The branch main has been updated by uzsolt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c40d3451f8c0d8800455ac2702ce10d1ca949863
commit c40d3451f8c0d8800455ac2702ce10d1ca949863
Author: Krzysztof <ports@bsdserwis.com>
AuthorDate: 2024-07-26 14:29:48 +0000
Commit: Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-07-26 14:32:31 +0000
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)
---
net-mgmt/nagios-check_clamav/Makefile | 31 +++++++++++++++++++++++--------
net-mgmt/nagios-check_clamav/files/MIT | 14 ++++++++++++++
2 files changed, 37 insertions(+), 8 deletions(-)
diff --git a/net-mgmt/nagios-check_clamav/Makefile b/net-mgmt/nagios-check_clamav/Makefile
index a2759f9b9569..d1213fd28b1e 100644
--- a/net-mgmt/nagios-check_clamav/Makefile
+++ b/net-mgmt/nagios-check_clamav/Makefile
@@ -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 \
diff --git a/net-mgmt/nagios-check_clamav/files/MIT b/net-mgmt/nagios-check_clamav/files/MIT
new file mode 100644
index 000000000000..dcd354d73a6b
--- /dev/null
+++ b/net-mgmt/nagios-check_clamav/files/MIT
@@ -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.
+