Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2006 21:49:49 -0500 (CDT)
From:      "Douglas K. Rand" <rand@meridian-enviro.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/96895: net-mgmt/nagcon update to 0.0.14
Message-ID:  <200605070249.k472nnGc006031@clavin.meridian-enviro.com>
Resent-Message-ID: <200605070250.k472oAEr018922@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96895
>Category:       ports
>Synopsis:       net-mgmt/nagcon update to 0.0.14
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 07 02:50:09 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Douglas K. Rand
>Release:        FreeBSD 6.1-RC i386
>Organization:
Meridian Environmental Technology, Inc.
>Environment:
System: FreeBSD clavin.meridian-enviro.com 6.1-RC FreeBSD 6.1-RC #5: Fri Apr 21 10:44:32 CDT 2006 root@clavin.meridian-enviro.com:/usr/obj/usr/src/sys/CLIFF i386


>Description:
	The author of nagcon released version 0.0.14 and then deleted
	the distribution of 0.0.13, breaking the build of the port.
	(Thanks to Kris Kennaway for the tip.)
>How-To-Repeat:
	Try to fetch the current nagcon port.
>Fix:

	Here's a patch to Makefile and distinfo along with a brand new
	files/patch-nc.cpp patch.

--- Makefile.orig	Sat May  6 21:30:03 2006
+++ Makefile	Sat May  6 21:30:11 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	nagcon
-PORTVERSION=	0.0.13
+PORTVERSION=	0.0.14
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://www.vanheusden.com/nagcon/
 EXTRACT_SUFX=	.tgz
--- distinfo.orig	Sat Apr  1 19:04:36 2006
+++ distinfo	Sat May  6 21:30:32 2006
@@ -1,3 +1,3 @@
-MD5 (nagcon-0.0.13.tgz) = 204a2a397a5c00e14be5ff97f7660658
-SHA256 (nagcon-0.0.13.tgz) = 7a1cdb5b17e71410d2378b2096c59d9b4a773f9c6aa7fbbc66f10114a836231d
-SIZE (nagcon-0.0.13.tgz) = 10667
+MD5 (nagcon-0.0.14.tgz) = 526bc4eb3986b8d5961a3995c449ef91
+SHA256 (nagcon-0.0.14.tgz) = 6bdbf7217868a0a6c393aa74daed8408f6f5c32fa0888d9fcc267f9de1e2e32e
+SIZE (nagcon-0.0.14.tgz) = 13215


	And the new patch-nc.cpp:


--- nc.cpp.orig	Tue May  2 09:29:37 2006
+++ nc.cpp	Sat May  6 21:42:59 2006
@@ -258,7 +258,7 @@
 
 	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");
@@ -288,7 +288,7 @@
 	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;
@@ -390,7 +390,7 @@
 		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);
 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605070249.k472nnGc006031>