summaryrefslogtreecommitdiff
path: root/net/xymonclient
diff options
context:
space:
mode:
authorjoerg <joerg>2013-01-11 00:05:05 +0000
committerjoerg <joerg>2013-01-11 00:05:05 +0000
commit2172829a73027ffb66180ea2de6aa593c3c43442 (patch)
tree40e189f0c5005e4fada156b32e66e8b7510cc10a /net/xymonclient
parentf3042816757d7dc09cd450c70561978bf8e376d5 (diff)
downloadpkgsrc-2172829a73027ffb66180ea2de6aa593c3c43442.tar.gz
NetBSD/current needs sysctl/vmmeter.h explicitly included.
Diffstat (limited to 'net/xymonclient')
-rw-r--r--net/xymonclient/distinfo4
-rw-r--r--net/xymonclient/patches/patch-af24
2 files changed, 23 insertions, 5 deletions
diff --git a/net/xymonclient/distinfo b/net/xymonclient/distinfo
index f448bdbe5f8..edf99227d19 100644
--- a/net/xymonclient/distinfo
+++ b/net/xymonclient/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2012/10/11 18:42:19 spz Exp $
+$NetBSD: distinfo,v 1.11 2013/01/11 00:05:05 joerg Exp $
SHA1 (xymon-4.3.10.tar.gz) = d37765da5741adc4282e081e3ad59862eb22353f
RMD160 (xymon-4.3.10.tar.gz) = df5e01ab4528bc1146cdf784bbf69616f743bfa1
@@ -8,7 +8,7 @@ SHA1 (patch-ab) = ec71a05ac528675dbd406be0ea43729b2df1e106
SHA1 (patch-ac) = da7489b57fdbfc0937bcddeabb7cc57ef91e8431
SHA1 (patch-ad) = 7519eaeecab9f5d4b6956e0fd426548ec7990a0b
SHA1 (patch-ae) = 218ef05eb3d51d779230c357d731b2f904d4559f
-SHA1 (patch-af) = d4929c2acc2136e281564b403e9f75cfcd4d87f3
+SHA1 (patch-af) = 5e71a56cf827f9b30147dd577c295f10c150cd27
SHA1 (patch-build_Makefile.FreeBSD) = e58b50f35068cba6fed89cc21bcc4eb7d30efd23
SHA1 (patch-client_xymonclient-netbsd.sh) = 10d77fd722ecaaed7170b2ae6d51e6429a96d686
SHA1 (patch-configure) = 7b71ed7a567124a2aa36d9bf9188209649e88a4d
diff --git a/net/xymonclient/patches/patch-af b/net/xymonclient/patches/patch-af
index eb1682be13b..799cdbc161a 100644
--- a/net/xymonclient/patches/patch-af
+++ b/net/xymonclient/patches/patch-af
@@ -1,10 +1,19 @@
-$NetBSD: patch-af,v 1.2 2012/10/11 18:42:20 spz Exp $
+$NetBSD: patch-af,v 1.3 2013/01/11 00:05:05 joerg Exp $
use the correct type for physmem
---- client/netbsd-meminfo.c.orig 2009-02-12 13:09:34.000000000 +0000
+--- client/netbsd-meminfo.c.orig 2011-07-31 21:01:52.000000000 +0000
+++ client/netbsd-meminfo.c
-@@ -22,7 +22,7 @@ static char rcsid[] = "$Id: netbsd-memin
+@@ -15,14 +15,16 @@ static char rcsid[] = "$Id: netbsd-memin
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+ #include <sys/swap.h>
++#include <sys/vmmeter.h>
+ #include <unistd.h>
++#include <stdint.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+
int main(int argc, char *argv[])
{
int hw_physmem[] = { CTL_HW, HW_PHYSMEM64 };
@@ -13,3 +22,12 @@ use the correct type for physmem
int hw_pagesize[] = { CTL_HW, HW_PAGESIZE };
int pagesize;
+@@ -64,7 +66,7 @@ int main(int argc, char *argv[])
+ swapused /= (2*1024);
+
+ // printf("Pagesize:%d\n", pagesize);
+- printf("Total:%d\n", (physmem / (1024 * 1024)));
++ printf("Total:%" PRId64"\n", (physmem / (1024 * 1024)));
+ printf("Free:%d\n", (pagesize / 1024)*(vmdata.t_free / 1024));
+ printf("Swaptotal:%lu\n", swaptotal);
+ printf("Swapused:%lu\n", swapused);