ports/173607: [PATCH] net-mgmt/xymon-server: [SUMMARIZE CHANGES]
Mark Felder
feld at feld.me
Tue Nov 13 15:20:03 UTC 2012
>Number: 173607
>Category: ports
>Synopsis: [PATCH] net-mgmt/xymon-server: [SUMMARIZE CHANGES]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Nov 13 15:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: feld
>Release: FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD mwi1.coffeenet.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #5 r239731: Mon Aug 27 09:53:18 CDT
>Description:
Add patch that fixes memory usage reporting in FreeBSD 8.x and newer
due to syntax changes in sysctl vm.vmtotal
http://lists.xymon.com/archive/2012-April/034491.html
Has not been accepted upstream yet for some reason but I'm working on making that happen.
Also don't mind if I'm given maintainer as there are a few other issues with this port that need to be fixed.
Added file(s):
- files/patch-xymond-client-freebsd.c
Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:
--- xymon-server-4.3.10_2.patch begins here ---
diff -ruN --exclude=CVS ../xymon-server.orig/Makefile ./Makefile
--- ../xymon-server.orig/Makefile 2012-10-18 14:21:20.000000000 -0500
+++ ./Makefile 2012-11-13 09:10:14.742555371 -0600
@@ -2,7 +2,7 @@
PORTNAME= xymon
PORTVERSION= 4.3.10
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt www
MASTER_SITES= SF/xymon/Xymon/${PORTVERSION}
PKGNAMESUFFIX= -server${PKGNAMESUFFIX2}
diff -ruN --exclude=CVS ../xymon-server.orig/files/patch-xymond-client-freebsd.c ./files/patch-xymond-client-freebsd.c
--- ../xymon-server.orig/files/patch-xymond-client-freebsd.c 1969-12-31 18:00:00.000000000 -0600
+++ ./files/patch-xymond-client-freebsd.c 2012-11-13 09:10:31.311534994 -0600
@@ -0,0 +1,20 @@
+--- xymond/client/freebsd.c.orig 2012-11-13 07:48:19.217106974 -0600
++++ xymond/client/freebsd.c 2012-11-13 07:49:45.416552261 -0600
+@@ -85,8 +85,16 @@
+ if (vmtotalstr) {
+ p = strstr(vmtotalstr, "\nFree Memory Pages:");
+ if (p) {
+- memphysfree = atol(p + 18);
++ memphysfree = atol(p + 19)/1024;
++ memphysused = memphystotal - memphysfree;
+ found++;
++ } else {
++ p = strstr(vmtotalstr, "\nFree Memory:");
++ if (p) {
++ memphysfree = atol(p + 13)/1024;
++ memphysused = memphystotal - memphysfree;
++ found++;
++ }
+ }
+ }
+
--- xymon-server-4.3.10_2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list