diff --git a/net-mgmt/nrpe/Makefile b/net-mgmt/nrpe/Makefile deleted file mode 100644 index ea00d05..0000000 --- a/net-mgmt/nrpe/Makefile +++ /dev/null @@ -1,84 +0,0 @@ -PORTNAME= nrpe -DISTVERSIONPREFIX= nrpe- -DISTVERSION= 4.1.1 -CATEGORIES= net-mgmt - -MAINTAINER= bofh@FreeBSD.org -COMMENT?= Nagios Remote Plugin Executor -WWW= https://www.nagios.org/ - -LICENSE= GPLv2+ -LICENSE_FILE= ${WRKSRC}/LICENSE.md - -FLAVORS= default monplugins -FLAVOR?= ${FLAVORS:[1]} -monplugins_PKGNAMESUFFIX= -monplugins - -USES= perl5 -USE_GITHUB= yes -GH_ACCOUNT= NagiosEnterprises -USE_PERL5= build -USE_RC_SUBR= nrpe - -GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--bindir=${PREFIX}/sbin \ - --libexecdir=${PREFIX}/libexec/nagios \ - --sysconfdir=${PREFIX}/etc \ - --with-inetd-type=inetd \ - --with-nrpe-user=${NAGIOSUSER} \ - --with-nrpe-group=${NAGIOSGROUP} \ - --with-piddir=${NRPE_PIDDIR} - -SUB_FILES= pkg-message -SUB_LIST+= PIDDIR=${NRPE_PIDDIR} - -USERS= ${NAGIOSUSER} -GROUPS= ${NAGIOSGROUP} - -PLIST_SUB= NAGIOSUSER=${NAGIOSUSER} \ - NAGIOSGROUP=${NAGIOSGROUP} \ - NRPE_PIDDIR=${NRPE_PIDDIR} - -OPTIONS_DEFINE= SSL ARGS -OPTIONS_DEFAULT=SSL -OPTIONS_RADIO= PLUGINS -OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS - -ARGS_DESC= Enable command argument processing -MONPLUGINS_DESC=Use net-mgmt/monitoring-plugins -NAGPLUGINS_DESC=Use net-mgmt/nagios-plugins - -ARGS_CONFIGURE_ENABLE= command-args -MONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins -NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins -SSL_USES= ssl -SSL_CONFIGURE_ENABLE= ssl -SSL_CONFIGURE_WITH= ssl=${OPENSSLBASE} ssl-inc=${OPENSSLINC} ssl-lib=${OPENSSLLIB} -SSL_CFLAGS= -I${OPENSSLINC} - -NAGIOSUSER?= nagios -NAGIOSGROUP?= nagios - -NRPE_PIDDIR?= /var/run/nrpe - -.if ${FLAVOR:U} == monplugins -OPTIONS_DEFAULT+= MONPLUGINS -.endif - -.if ${FLAVOR:U} == default -OPTIONS_DEFAULT+= NAGPLUGINS -.endif - -post-patch: - @${REINPLACE_CMD} -e 's|/var/run/nrpe.pid|${NRPE_PIDDIR}/nrpe.pid|g' \ - -e 's|/usr/lib/nagios/plugins/|${LOCALBASE}/libexec/nagios/|g' \ - -e 's|/usr/bin/sudo|${LOCALBASE}/bin/sudo|g' \ - ${WRKSRC}/sample-config/nrpe.cfg.in - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${STAGEDIR}${PREFIX}/sbin/nrpe - ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios - ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${STAGEDIR}${PREFIX}/libexec/nagios/check_nrpe - ${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${STAGEDIR}${PREFIX}/etc/nrpe.cfg.sample - -.include diff --git a/net-mgmt/nrpe/distinfo b/net-mgmt/nrpe/distinfo deleted file mode 100644 index a9c2087..0000000 --- a/net-mgmt/nrpe/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1722626850 -SHA256 (NagiosEnterprises-nrpe-nrpe-4.1.1_GH0.tar.gz) = ba97734d39cf67a70a7c517d7d62c57df08395df643984cac827819b5d179dae -SIZE (NagiosEnterprises-nrpe-nrpe-4.1.1_GH0.tar.gz) = 528280 diff --git a/net-mgmt/nrpe/files/nrpe.in b/net-mgmt/nrpe/files/nrpe.in deleted file mode 100644 index 50be3d8..0000000 --- a/net-mgmt/nrpe/files/nrpe.in +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# PROVIDE: nrpe -# REQUIRE: LOGIN -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to enable nrpe: -# nrpe_enable (bool): Set to "NO" by default. -# Set it to "YES" to enable nrpe. -# nrpe_flags (str): Not set by default. -# nrpe_configfile (str): Set to "%%PREFIX%%/etc/nrpe.cfg" by default. - -. /etc/rc.subr - -name=nrpe -rcvar=nrpe_enable - -load_rc_config "${name}" - -: ${nrpe_enable:=NO} -: ${nrpe_configfile:=%%PREFIX%%/etc/nrpe.cfg} - -required_files="${nrpe_configfile}" - -command="%%PREFIX%%/sbin/nrpe" -command_args="-c ${nrpe_configfile} -d" -extra_commands=reload -sig_reload=HUP - -start_precmd=nrpe_prestart -stop_precmd=find_pidfile - -find_pidfile() -{ - [ -n "$nrpe_pidfile" ] && - warn "No longer necessary to set nrpe_pidfile in rc.conf[.local]" - - if get_pidfile_from_conf pid_file ${nrpe_configfile}; then - pidfile="$_pidfile_from_conf" - else - pidfile='%%PIDDIR%%/nrpe.pid' - fi -} - -nrpe_prestart() -{ - find_pidfile - install -d -o ${nrpe_user:-nagios} ${pidfile%/*} -} - -run_rc_command "$1" diff --git a/net-mgmt/nrpe/files/patch-include_common.h.in b/net-mgmt/nrpe/files/patch-include_common.h.in deleted file mode 100644 index 0061680..0000000 --- a/net-mgmt/nrpe/files/patch-include_common.h.in +++ /dev/null @@ -1,18 +0,0 @@ ---- include/common.h.in.orig 2022-07-18 19:27:53 UTC -+++ include/common.h.in -@@ -34,10 +34,15 @@ - # define OPENSSL_NO_DEPRECATED - #endif - #include <@SSL_INC_PREFIX@@SSL_HDR@> -+#include <@SSL_INC_PREFIX@crypto.h> - # ifdef SSL_TYPE_openssl - # include <@SSL_INC_PREFIX@err.h> - # include <@SSL_INC_PREFIX@rand.h> - # include <@SSL_INC_PREFIX@engine.h> -+# include <@SSL_INC_PREFIX@crypto.h> -+# if defined (LIBRESSL_VERSION_NUMBER) -+# include <@SSL_INC_PREFIX@opensslfeatures.h> -+# endif - # endif - #endif - diff --git a/net-mgmt/nrpe/files/patch-src_check__nrpe.c b/net-mgmt/nrpe/files/patch-src_check__nrpe.c deleted file mode 100644 index 4e3fe94..0000000 --- a/net-mgmt/nrpe/files/patch-src_check__nrpe.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/check_nrpe.c.orig 2022-07-18 19:27:53 UTC -+++ src/check_nrpe.c -@@ -899,7 +899,7 @@ void setup_ssl() - exit(timeout_return_code); - } - --#if OPENSSL_VERSION_NUMBER >= 0x10100000 -+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) - - SSL_CTX_set_max_proto_version(ctx, 0); - diff --git a/net-mgmt/nrpe/files/patch-src_nrpe.c b/net-mgmt/nrpe/files/patch-src_nrpe.c deleted file mode 100644 index 912e70f..0000000 --- a/net-mgmt/nrpe/files/patch-src_nrpe.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/nrpe.c.orig 2022-07-18 19:27:53 UTC -+++ src/nrpe.c -@@ -357,7 +357,7 @@ void init_ssl(void) - exit(STATE_CRITICAL); - } - --#if OPENSSL_VERSION_NUMBER >= 0x10100000 -+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) - - SSL_CTX_set_max_proto_version(ctx, 0); - diff --git a/net-mgmt/nrpe/files/pkg-message.in b/net-mgmt/nrpe/files/pkg-message.in deleted file mode 100644 index ac998ea..0000000 --- a/net-mgmt/nrpe/files/pkg-message.in +++ /dev/null @@ -1,12 +0,0 @@ -[ -{ type: install - message: <