Date: Thu, 28 Feb 2008 16:25:47 -0600 (CST) From: "Douglas K. Rand" <rand@meridian-enviro.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/121190: [maintainer] port net-mgmt/nagcon unfetchable, upgrade from 0.0.15 to 0.0.26 Message-ID: <200802282225.m1SMPlEc004568@cliff.meridian-enviro.com> Resent-Message-ID: <200802282240.m1SMe5mN091711@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 121190 >Category: ports >Synopsis: [maintainer] port net-mgmt/nagcon unfetchable, upgrade from 0.0.15 to 0.0.26 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Feb 28 22:40:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Douglas K. Rand >Release: FreeBSD 6.2-RELEASE-p3 i386 >Organization: Meridian Environmental Technology, Inc. >Environment: System: FreeBSD cliff.meridian-enviro.com 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #35: Tue Apr 24 14:18:51 CDT 2007 rand@clavin.meridian-enviro.com:/usr/obj/usr/src/sys/CLIFF i386 >Description: The old 0.0.15 release of nagcon isn't fetchable anymore, here is an update to the 0.0.26 release, which also supports Nagios 3.0 (net-mgmt/nagios-devel). The inclusion of devel/libstrfunc is because the nagcon author uses strndup in one place, and in that place the limiting count actually trims a newline from the string being copied. >How-To-Repeat: Try to install net-mgmt/nagios >Fix: diff -urN nagcon.old/Makefile nagcon/Makefile --- nagcon.old/Makefile Thu May 11 11:31:51 2006 +++ nagcon/Makefile Thu Feb 28 15:21:17 2008 @@ -6,14 +6,18 @@ # PORTNAME= nagcon -PORTVERSION= 0.0.15 +PORTVERSION= 0.0.26 PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= http://www.vanheusden.com/nagcon/ EXTRACT_SUFX= .tgz MAINTAINER= rand@meridian-enviro.com -COMMENT= Nagios 2.0 console monitor +COMMENT= Nagios console monitor + +LIB_DEPENDS= strfunc.9:${PORTSDIR}/devel/libstrfunc + +CFLAGS+= -I${LOCALBASE}/include USE_GMAKE= YES PLIST_FILES= bin/nagcon diff -urN nagcon.old/distinfo nagcon/distinfo --- nagcon.old/distinfo Thu May 11 10:54:11 2006 +++ nagcon/distinfo Thu Feb 28 14:37:44 2008 @@ -1,3 +1,3 @@ -MD5 (nagcon-0.0.15.tgz) = 05e40346aa7c7aa3b831595df057db87 -SHA256 (nagcon-0.0.15.tgz) = 467b2ba1ef265d3990d5aff14874c0c8249161be1d89cde8dda4376197fe3dc2 -SIZE (nagcon-0.0.15.tgz) = 13487 +MD5 (nagcon-0.0.26.tgz) = 695387e635e42943fc4a8e1ec82d5cda +SHA256 (nagcon-0.0.26.tgz) = cb075a804a699dede1eab7497d2819b90ce5bd6440286468294c4159a531d7ef +SIZE (nagcon-0.0.26.tgz) = 15343 diff -urN nagcon.old/files/patch-Makefile nagcon/files/patch-Makefile --- nagcon.old/files/patch-Makefile Wed Dec 31 18:00:00 1969 +++ nagcon/files/patch-Makefile Thu Feb 28 15:22:24 2008 @@ -0,0 +1,11 @@ +--- Makefile.orig Thu Feb 28 15:21:35 2008 ++++ Makefile Thu Feb 28 15:22:08 2008 +@@ -3,7 +3,7 @@ + DEBUG= # -D_DEBUG -g -fprofile-arcs -ftest-coverage # -pg -g + CXXFLAGS+=-Wall -g -O2 -DVERSION=\"${VERSION}\" $(DEBUG) + CFLAGS+=${CXXFLAGS} +-LDFLAGS+=$(DEBUG) -lncurses -lstdc++ ++LDFLAGS+=$(DEBUG) -lncurses -lstdc++ -L/usr/local/lib -lstrfunc + + OBJS=error.o utils.o br.o nc.o pl.o + diff -urN nagcon.old/files/patch-br.cpp nagcon/files/patch-br.cpp --- nagcon.old/files/patch-br.cpp Wed Dec 31 18:00:00 1969 +++ nagcon/files/patch-br.cpp Thu Feb 28 15:18:36 2008 @@ -0,0 +1,10 @@ +--- br.cpp.orig Thu Feb 28 15:12:00 2008 ++++ br.cpp Thu Feb 28 15:12:12 2008 +@@ -28,6 +28,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 -urN nagcon.old/files/patch-utils.cpp nagcon/files/patch-utils.cpp --- nagcon.old/files/patch-utils.cpp Wed Dec 31 18:00:00 1969 +++ nagcon/files/patch-utils.cpp Thu Feb 28 15:19:09 2008 @@ -0,0 +1,12 @@ +--- utils.cpp.orig Thu Feb 28 14:48:39 2008 ++++ utils.cpp Thu Feb 28 15:11:48 2008 +@@ -29,6 +29,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 -urN nagcon.old/pkg-descr nagcon/pkg-descr --- nagcon.old/pkg-descr Wed Mar 29 20:51:52 2006 +++ nagcon/pkg-descr Thu Feb 28 15:23:43 2008 @@ -1,4 +1,4 @@ -Nagcon is a console application interfacing to Nagios 2.0 which gives -you an overview of all services with troubled services. +Nagcon is a console application interfacing to Nagios 2.0 and 3.0 +which gives you an overview of all services with troubled services. WWW: http://www.vanheusden.com/nagcon >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802282225.m1SMPlEc004568>