diff options
author | drochner <drochner@pkgsrc.org> | 2009-04-07 11:26:48 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2009-04-07 11:26:48 +0000 |
commit | 3c3cb3b7d066ae80ab1ffae97530a9227074cfd1 (patch) | |
tree | 9f3361f90b4811767d4a8856b5160cc2ee7d4e4e /sysutils/libgtop | |
parent | d268423ca04d59df4688809dab03d1905c723f6a (diff) | |
download | pkgsrc-3c3cb3b7d066ae80ab1ffae97530a9227074cfd1.tar.gz |
minor fix for NetBSD: get netmask in the right byteorder
(this is ugly code, should use ioctl instead of kvm)
bump PKGREVISION
Diffstat (limited to 'sysutils/libgtop')
-rw-r--r-- | sysutils/libgtop/Makefile | 3 | ||||
-rw-r--r-- | sysutils/libgtop/distinfo | 4 | ||||
-rw-r--r-- | sysutils/libgtop/patches/patch-ca | 19 |
3 files changed, 20 insertions, 6 deletions
diff --git a/sysutils/libgtop/Makefile b/sysutils/libgtop/Makefile index 176eb617881..b52e8ca1680 100644 --- a/sysutils/libgtop/Makefile +++ b/sysutils/libgtop/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.24 2009/03/22 19:57:08 wiz Exp $ +# $NetBSD: Makefile,v 1.25 2009/04/07 11:26:48 drochner Exp $ DISTNAME= libgtop-2.26.0 +PKGREVISION= 1 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/2.26/} EXTRACT_SUFX= .tar.bz2 diff --git a/sysutils/libgtop/distinfo b/sysutils/libgtop/distinfo index 76037299389..6d59e89071a 100644 --- a/sysutils/libgtop/distinfo +++ b/sysutils/libgtop/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.12 2009/03/22 19:53:15 wiz Exp $ +$NetBSD: distinfo,v 1.13 2009/04/07 11:26:48 drochner Exp $ SHA1 (libgtop-2.26.0.tar.bz2) = 918bcf6cb12800d0b6fa6d174c9cbd748672b2c0 RMD160 (libgtop-2.26.0.tar.bz2) = e6c0e1fbce310839fad9fa07026a1c93bd841dd6 @@ -16,7 +16,7 @@ SHA1 (patch-ao) = f58a1bd19d63377b86478e72f23bd5a4cca5af76 SHA1 (patch-aq) = bb44484df341a009aa269fbaf5039e351e105e6c SHA1 (patch-bc) = 3638dfee30a4f10bc9662c23063df3f6a8cdc914 SHA1 (patch-bd) = 7825fd4d2e6c06510fa3d76b4efa4d2ffab2a7d8 -SHA1 (patch-ca) = e92c33e38ef522c179ec4508b239e4eb84a83c9c +SHA1 (patch-ca) = 06bc86bce721155315a1905b750f795629460ff7 SHA1 (patch-cb) = cabc971530d8113694ff6d04108490749d40bcec SHA1 (patch-cc) = 2cb1d2da57a8622c93ed255a416ed9c811e775a2 SHA1 (patch-cd) = cf96896ddde9c830c1e808d8bf37b9fdb611ed24 diff --git a/sysutils/libgtop/patches/patch-ca b/sysutils/libgtop/patches/patch-ca index 726e860ad5d..9fac2a1d448 100644 --- a/sysutils/libgtop/patches/patch-ca +++ b/sysutils/libgtop/patches/patch-ca @@ -1,8 +1,21 @@ -$NetBSD: patch-ca,v 1.1 2007/11/05 19:06:06 drochner Exp $ +$NetBSD: patch-ca,v 1.2 2009/04/07 11:26:48 drochner Exp $ ---- sysdeps/bsd/netload.c.orig 2007-05-12 23:54:57.000000000 +0200 +--- sysdeps/bsd/netload.c.orig 2008-05-24 00:13:21.000000000 +0200 +++ sysdeps/bsd/netload.c -@@ -233,7 +233,7 @@ glibtop_get_netload_p (glibtop *server, +@@ -220,8 +220,12 @@ glibtop_get_netload_p (glibtop *server, + sin = (struct sockaddr_in *)sa; + #if !defined(__bsdi__) + /* Commenting out to "fix" #13345. */ ++#ifdef __NetBSD__ ++ buf->subnet = ifaddr.in.ia_subnet; ++#else + buf->subnet = htonl (ifaddr.in.ia_subnet); + #endif ++#endif + buf->address = sin->sin_addr.s_addr; + buf->mtu = ifnet.if_mtu; + +@@ -233,7 +237,7 @@ glibtop_get_netload_p (glibtop *server, buf->flags |= GLIBTOP_NETLOAD_ADDRESS6; } /* FIXME prefix6, scope6 */ |