pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/libgtop minor fix for NetBSD: get netmask in ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b0fa83a5a55
branches:  trunk
changeset: 556966:4b0fa83a5a55
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Apr 07 11:26:48 2009 +0000

description:
minor fix for NetBSD: get netmask in the right byteorder
(this is ugly code, should use ioctl instead of kvm)
bump PKGREVISION

diffstat:

 sysutils/libgtop/Makefile         |   3 ++-
 sysutils/libgtop/distinfo         |   4 ++--
 sysutils/libgtop/patches/patch-ca |  19 ++++++++++++++++---
 3 files changed, 20 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r 126e0b549b15 -r 4b0fa83a5a55 sysutils/libgtop/Makefile
--- a/sysutils/libgtop/Makefile Tue Apr 07 11:23:51 2009 +0000
+++ b/sysutils/libgtop/Makefile Tue Apr 07 11:26:48 2009 +0000
@@ -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 -r 126e0b549b15 -r 4b0fa83a5a55 sysutils/libgtop/distinfo
--- a/sysutils/libgtop/distinfo Tue Apr 07 11:23:51 2009 +0000
+++ b/sysutils/libgtop/distinfo Tue Apr 07 11:26:48 2009 +0000
@@ -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-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 -r 126e0b549b15 -r 4b0fa83a5a55 sysutils/libgtop/patches/patch-ca
--- a/sysutils/libgtop/patches/patch-ca Tue Apr 07 11:23:51 2009 +0000
+++ b/sysutils/libgtop/patches/patch-ca Tue Apr 07 11:26:48 2009 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index