git: 09cd22642455 - main - net-mgmt/nagcon: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Tue, 02 Sep 2025 20:08:41 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=09cd226424555cc1885245e94dd2d33958aa396d

commit 09cd226424555cc1885245e94dd2d33958aa396d
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-09-02 20:08:36 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-09-02 20:08:36 +0000

    net-mgmt/nagcon: Remove expired port
    
    2025-07-31 net-mgmt/nagcon: Obsolete, only supports legacy versions of Nagios
---
 MOVED                                 |  1 +
 net-mgmt/Makefile                     |  1 -
 net-mgmt/nagcon/Makefile              | 35 -----------------------------------
 net-mgmt/nagcon/distinfo              |  3 ---
 net-mgmt/nagcon/files/patch-br.cpp    | 10 ----------
 net-mgmt/nagcon/files/patch-br.h      | 15 ---------------
 net-mgmt/nagcon/files/patch-nc.cpp    | 29 -----------------------------
 net-mgmt/nagcon/files/patch-utils.cpp | 12 ------------
 net-mgmt/nagcon/pkg-descr             |  2 --
 9 files changed, 1 insertion(+), 107 deletions(-)

diff --git a/MOVED b/MOVED
index 4de9d47724cf..a250f0698b23 100644
--- a/MOVED
+++ b/MOVED
@@ -4763,3 +4763,4 @@ security/p5-Dancer-Plugin-Passphrase||2025-09-02|Has expired: Depends on expired
 security/p5-Dancer2-Plugin-Passphrase||2025-09-02|Has expired: Depends on expired security/p5-Data-Entropy
 security/p5-Data-Entropy||2025-09-02|Has expired: The maintainer of this distribution has indicated that it is deprecated and no longer suitable for use
 security/libu2f-host||2025-09-02|Has expired: This project is deprecated and is no longer being maintained. libfido2 is a new project with support for U2F and FIDO2. Use security/libfido2 instead
+net-mgmt/nagcon||2025-09-02|Has expired: Obsolete, only supports legacy versions of Nagios
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 42df4439a887..a7e943abb5f7 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -152,7 +152,6 @@
     SUBDIR += mtrace
     SUBDIR += mysql-snmp
     SUBDIR += mysqld_exporter
-    SUBDIR += nagcon
     SUBDIR += nagios
     SUBDIR += nagios-certexp-plugin
     SUBDIR += nagios-check_bacula13
diff --git a/net-mgmt/nagcon/Makefile b/net-mgmt/nagcon/Makefile
deleted file mode 100644
index 73ccac61326c..000000000000
--- a/net-mgmt/nagcon/Makefile
+++ /dev/null
@@ -1,35 +0,0 @@
-PORTNAME=	nagcon
-PORTVERSION=	0.0.32
-CATEGORIES=	net-mgmt
-MASTER_SITES=	http://www.vanheusden.com/nagcon/
-
-MAINTAINER=	rand@iteris.com
-COMMENT=	Nagios console monitor
-WWW=		http://www.vanheusden.com/nagcon
-
-DEPRECATED=	Obsolete, only supports legacy versions of Nagios
-EXPIRATION_DATE=2025-07-31
-
-LIB_DEPENDS=	libstrfunc.so:devel/libstrfunc
-
-PLIST_FILES=	bin/nagcon
-
-CFILES=		error.c
-CPPFILES=	utils.cpp br.cpp nc.cpp pl.cpp
-
-USES=		ncurses tar:tgz
-CFLAGS+=	-DVERSION=\"${PORTVERSION}\" -I${LOCALBASE}/include
-LDFLAGS+=	-lncurses -lstdc++ -L${LOCALBASE}/lib -lstrfunc -ltinfo
-
-do-build:
-	${CC} ${CFLAGS} -c -o ${WRKSRC}/${CFILES:C/\.c//}.o ${WRKSRC}/${CFILES}
-.for f in ${CPPFILES}
-	${CXX} ${CFLAGS} -c -o ${WRKSRC}/${f:C/\.cpp//}.o ${WRKSRC}/${f}
-.endfor
-	${CC} ${LDFLAGS} ${WRKSRC}/error.o ${CPPFILES:C/(.*)\.cpp/${WRKSRC}\/\1.o/} \
-		-o ${WRKSRC}/${PORTNAME}
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-
-.include <bsd.port.mk>
diff --git a/net-mgmt/nagcon/distinfo b/net-mgmt/nagcon/distinfo
deleted file mode 100644
index eebf34eeed1a..000000000000
--- a/net-mgmt/nagcon/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1523541513
-SHA256 (nagcon-0.0.32.tgz) = e11071cb36d4a13326c371a2f5f17f13c42fbed7c38e0ef926e220f6bfa4e88c
-SIZE (nagcon-0.0.32.tgz) = 15746
diff --git a/net-mgmt/nagcon/files/patch-br.cpp b/net-mgmt/nagcon/files/patch-br.cpp
deleted file mode 100644
index a56f8a045a99..000000000000
--- a/net-mgmt/nagcon/files/patch-br.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- br.cpp.orig	2017-12-27 12:07:16 UTC
-+++ br.cpp
-@@ -12,6 +12,7 @@
- #include <sys/mman.h>
- #include <fcntl.h>
- #include <syslog.h>
-+#include <strfunc.h>
- #include "br.h"
- 
- buffered_reader::buffered_reader(int cur_fd, int cur_block_size)
diff --git a/net-mgmt/nagcon/files/patch-br.h b/net-mgmt/nagcon/files/patch-br.h
deleted file mode 100644
index 55976d409430..000000000000
--- a/net-mgmt/nagcon/files/patch-br.h
+++ /dev/null
@@ -1,15 +0,0 @@
---- br.h.orig	2017-12-27 12:07:16 UTC
-+++ br.h
-@@ -10,6 +10,12 @@
- #define likely(x)       __builtin_expect((x),1)
- #define unlikely(x)     __builtin_expect((x),0)
- 
-+/* FreeBSD uses open/stat/lseek/off_t rather than open64/stat64/lseek64/off64_t */
-+#define stat64 stat
-+#define lseek64 lseek
-+#define open64 open
-+#define off64_t off_t
-+
- class buffered_reader
- {
- private:
diff --git a/net-mgmt/nagcon/files/patch-nc.cpp b/net-mgmt/nagcon/files/patch-nc.cpp
deleted file mode 100644
index 7289f18f42ac..000000000000
--- a/net-mgmt/nagcon/files/patch-nc.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
---- nc.cpp.orig	2017-12-27 12:07:16 UTC
-+++ nc.cpp
-@@ -178,7 +178,7 @@ void help(void)
- 
- 	printf("-f file   what file to monitor (usuallly:\n");
- 	printf("-F host:port   connect to a host for retrieving the status.log information\n");
--	printf("          /usr/local/nagios/var/status.log, look for status_file in\n");
-+	printf("          /var/spool/nagios/status.log, look for status_file in\n");
- 	printf("          the nagios.cfg file\n");
- 	printf("-i x      check interval (in seconds)\n");
- 	printf("-a        list also the services for hosts that are down\n");
-@@ -210,7 +210,7 @@ int main(int argc, char *argv[])
- 	WINDOW *win;
- 	int sw;
- 
--	char *status_log = "/usr/local/nagios/var/status.log";
-+	char *status_log = "/var/spool/nagios/status.log";
- 	int interval = 5;
- 	char list_all_problems = 0;
- 	char always_notify = 0;
-@@ -322,7 +322,7 @@ int main(int argc, char *argv[])
- 		wattroff(win, COLOR_PAIR(MY_DRAW));
- 
- 		if (file_mode == 0)	/* file */
--			fd = open64(status_log, O_RDONLY);
-+			fd = open(status_log, O_RDONLY);
- 		else
- 			fd = connect_to(status_log);
- 
diff --git a/net-mgmt/nagcon/files/patch-utils.cpp b/net-mgmt/nagcon/files/patch-utils.cpp
deleted file mode 100644
index d4be5394379a..000000000000
--- a/net-mgmt/nagcon/files/patch-utils.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
---- utils.cpp.orig	2017-12-27 12:07:16 UTC
-+++ utils.cpp
-@@ -10,6 +10,9 @@
- #include <netdb.h>
- #include <sys/types.h>
- #include <sys/socket.h>
-+#include <arpa/inet.h>
-+#include <netinet/in.h>
-+#include <strfunc.h>
- extern "C" {
- #include "error.h"
- }
diff --git a/net-mgmt/nagcon/pkg-descr b/net-mgmt/nagcon/pkg-descr
deleted file mode 100644
index 7767a27faf72..000000000000
--- a/net-mgmt/nagcon/pkg-descr
+++ /dev/null
@@ -1,2 +0,0 @@
-Nagcon is a console application interfacing to Nagios 2.0 and 3.0
-which gives you an overview of all services with troubled services.