git: 498e86d310cb - main - net-mgmt/nrpe3: Mark DEPRECATED
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 May 2023 01:30:13 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=498e86d310cbc76dde46e6f9a4ddd1f4e0469437
commit 498e86d310cbc76dde46e6f9a4ddd1f4e0469437
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-03 01:26:40 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-03 01:29:51 +0000
net-mgmt/nrpe3: Mark DEPRECATED
- Fails to build with OpenSSL 3.0.0 and later
- This version has been released in 2018 and since then there has more
recent versions released.
- Use net-mgmt/nrpe which is the latest release from the upstream
Approved by: portmgr (blanket)
PR: 271220
Reported by: ngie
---
net-mgmt/nrpe3/Makefile | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/net-mgmt/nrpe3/Makefile b/net-mgmt/nrpe3/Makefile
index 6f923543bd0c..8f1152e9ded9 100644
--- a/net-mgmt/nrpe3/Makefile
+++ b/net-mgmt/nrpe3/Makefile
@@ -1,7 +1,7 @@
PORTNAME= nrpe
PORTVERSION= 3.2.1
DISTVERSIONPREFIX= nrpe-
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= net-mgmt
PKGNAMESUFFIX= 3
@@ -12,6 +12,9 @@ WWW= https://www.nagios.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE.md
+DEPRECATED= Fails to build with recent OpenSSL so use net-mgmt/nrpe
+EXPIRATION_DATE= 2023-06-03
+
USE_GITHUB= yes
GH_ACCOUNT= NagiosEnterprises
@@ -34,6 +37,8 @@ SSL_USES= ssl
SSL_CONFIGURE_ENABLE= ssl
SSL_CONFIGURE_WITH= ssl=${OPENSSLBASE} ssl-inc=${OPENSSLINC} ssl-lib=${OPENSSLLIB}
SSL_CFLAGS= -I${OPENSSLINC}
+SSL_VARS= BROKEN_SSL="openssl30 openssl31" \
+ BROKEN_SSL_REASON="error: undefined symbol: get_dh2048"
ARGS_CONFIGURE_ON= --enable-command-args
ARGS_CONFIGURE_OFF= --disable-command-args
@@ -61,6 +66,12 @@ SUB_LIST+= PIDDIR=${NRPE_PIDDIR}
SUB_FILES= pkg-message
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|/var/run/nrpe.pid|${NRPE_PIDDIR}/nrpe3.pid|g' \
-e 's|/usr/lib/nagios/plugins/|${LOCALBASE}/libexec/nagios/|g' \
@@ -74,4 +85,4 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${STAGEDIR}${PREFIX}/libexec/nagios/check_nrpe3
${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${STAGEDIR}${PREFIX}/etc/nrpe.cfg.sample
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>