pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/mesure Basic DragonFly support. Don't depend ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dc168bb85e7b
branches: trunk
changeset: 510095:dc168bb85e7b
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Mar 25 17:14:40 2006 +0000
description:
Basic DragonFly support. Don't depend on conditional macros being 1 when
defined and otherwise being 0.
diffstat:
sysutils/mesure/distinfo | 4 +++-
sysutils/mesure/patches/patch-aa | 17 +++++++++++++++++
sysutils/mesure/patches/patch-ab | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 55 insertions(+), 1 deletions(-)
diffs (72 lines):
diff -r 329db3d51907 -r dc168bb85e7b sysutils/mesure/distinfo
--- a/sysutils/mesure/distinfo Sat Mar 25 14:25:01 2006 +0000
+++ b/sysutils/mesure/distinfo Sat Mar 25 17:14:40 2006 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/09/26 23:27:37 xtraeme Exp $
+$NetBSD: distinfo,v 1.2 2006/03/25 17:14:40 joerg Exp $
SHA1 (mesure-0.5.tar.gz) = 587f4cb2132b748cd127b0307269e658756a6ae3
RMD160 (mesure-0.5.tar.gz) = 8c8a60fe903bdb220f427f444b3fc80b840f5b38
Size (mesure-0.5.tar.gz) = 13374 bytes
+SHA1 (patch-aa) = 4f3692cf816c208178730ba3033700b840690c27
+SHA1 (patch-ab) = 9a350289e763bdf60cae78eb6e827181b6d1d9c8
diff -r 329db3d51907 -r dc168bb85e7b sysutils/mesure/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mesure/patches/patch-aa Sat Mar 25 17:14:40 2006 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1 2006/03/25 17:14:40 joerg Exp $
+
+--- src/iface.c.orig 2006-03-24 20:32:14.000000000 +0000
++++ src/iface.c
+@@ -4,10 +4,10 @@
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+-#if __FreeBSD__ || __APPLE__
++#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
+ #include <ifaddrs.h>
+ #endif
+-#if __NetBSD__ || __OpenBSD__
++#if defined( __NetBSD__) || defined(__OpenBSD__)
+ #include <ifaddrs.h>
+ #include <net/if_media.h>
+ #endif
diff -r 329db3d51907 -r dc168bb85e7b sysutils/mesure/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mesure/patches/patch-ab Sat Mar 25 17:14:40 2006 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-ab,v 1.1 2006/03/25 17:14:40 joerg Exp $
+
+--- src/mem.c.orig 2006-03-25 16:59:45.000000000 +0000
++++ src/mem.c
+@@ -7,10 +7,10 @@
+ #include <sys/fcntl.h>
+ #include <stdio.h>
+ #include <unistd.h>
+-#if !__linux__
++#if !defined(__linux__)
+ #include <sys/user.h>
+ #include <kvm.h>
+-#if __FreeBSD__ || __APPLE__
++#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
+ #define KVM_NO_FILES O_RDONLY
+ #endif
+ #endif
+@@ -26,7 +26,7 @@ mem_get_value()
+ {
+ long total=0;
+
+-#if __linux__
++#if defined(__linux__)
+ FILE *fd;
+ char var[1024];
+ long val,memtotal,memfree;
+@@ -56,7 +56,7 @@ mem_get_value()
+ total*=1024;
+
+ #else
+-#if __FreeBSD__ || __APPLE__
++#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
+ printf("Not yet supported on FreeBSD.\n");
+ exit(1);
+ #else
Home |
Main Index |
Thread Index |
Old Index