Date: Sat, 24 Nov 2012 01:54:23 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307698 - in head/net-mgmt/xymon-server: . files Message-ID: <201211240154.qAO1sNKJ040971@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Sat Nov 24 01:54:22 2012 New Revision: 307698 URL: http://svnweb.freebsd.org/changeset/ports/307698 Log: - Add patch that fixes memory usage reporting in FreeBSD 8.x and newer due to syntax changes in sysctl vm.vmtotal - Assign maintainer to submitter PR: ports/173607 Submitted by: Mark Felder <feld@feld.me> Feature safe: yes Added: head/net-mgmt/xymon-server/files/patch-xymond-client-freebsd.c (contents, props changed) Modified: head/net-mgmt/xymon-server/Makefile (contents, props changed) Modified: head/net-mgmt/xymon-server/Makefile ============================================================================== --- head/net-mgmt/xymon-server/Makefile Fri Nov 23 23:34:40 2012 (r307697) +++ head/net-mgmt/xymon-server/Makefile Sat Nov 24 01:54:22 2012 (r307698) @@ -2,13 +2,13 @@ PORTNAME= xymon PORTVERSION= 4.3.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt www MASTER_SITES= SF/xymon/Xymon/${PORTVERSION} PKGNAMESUFFIX= -server${PKGNAMESUFFIX2} DIST_SUBDIR= repacked -MAINTAINER= ports@FreeBSD.org +MAINTAINER= feld@feld.me COMMENT= System for monitoring servers and networks LICENSE= GPLv2 Added: head/net-mgmt/xymon-server/files/patch-xymond-client-freebsd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/xymon-server/files/patch-xymond-client-freebsd.c Sat Nov 24 01:54:22 2012 (r307698) @@ -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++; ++ } + } + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211240154.qAO1sNKJ040971>