pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/latd DragonFly support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d9b701d60cc9
branches:  trunk
changeset: 509751:d9b701d60cc9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 14 02:38:16 2006 +0000

description:
DragonFly support.

diffstat:

 net/latd/distinfo         |   6 ++++--
 net/latd/patches/patch-ab |  18 +++++++++++++++---
 net/latd/patches/patch-ae |  14 ++++++++++++++
 net/latd/patches/patch-af |  13 +++++++++++++
 4 files changed, 46 insertions(+), 5 deletions(-)

diffs (82 lines):

diff -r 82e040023fda -r d9b701d60cc9 net/latd/distinfo
--- a/net/latd/distinfo Tue Mar 14 02:36:12 2006 +0000
+++ b/net/latd/distinfo Tue Mar 14 02:38:16 2006 +0000
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 12:13:51 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/03/14 02:38:16 joerg Exp $
 
 SHA1 (latd-1.18.tar.gz) = a7cecdb97507f485e726ea4c2fef0a59ad3adbae
 RMD160 (latd-1.18.tar.gz) = a0be3bd71b76c6a07c47fc2ad863526303d365bf
 Size (latd-1.18.tar.gz) = 233882 bytes
 SHA1 (patch-aa) = 70e2a543f471c9a818bfbe138137920d605d5aa9
-SHA1 (patch-ab) = 6d62fc224d383ca20758bc9a76a789e5f4b965e5
+SHA1 (patch-ab) = 8729c74907ac9ea077e9ddf1131cc4af6ecedcc7
 SHA1 (patch-ac) = adbe7b78bce30b6fbf540a18922ddb073cfccf0c
 SHA1 (patch-ad) = f606a87bf3dff0571db3ededc6889e31f2012397
+SHA1 (patch-ae) = 931842733d2166c0fd29b5f0d0772c44f1d79fd3
+SHA1 (patch-af) = 3b2f723ec163d925dee42b7d6597f8219ebe22df
diff -r 82e040023fda -r d9b701d60cc9 net/latd/patches/patch-ab
--- a/net/latd/patches/patch-ab Tue Mar 14 02:36:12 2006 +0000
+++ b/net/latd/patches/patch-ab Tue Mar 14 02:38:16 2006 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1 2003/10/21 20:55:42 xtraeme Exp $
+$NetBSD: patch-ab,v 1.2 2006/03/14 02:38:16 joerg Exp $
 
---- interfaces-bpf.cc.orig     2003-10-20 19:13:38.000000000 +0200
-+++ interfaces-bpf.cc  2003-10-20 19:13:52.000000000 +0200
+--- interfaces-bpf.cc.orig     2003-03-17 09:32:30.000000000 +0000
++++ interfaces-bpf.cc
 @@ -15,6 +15,7 @@
      GNU General Public License for more details.
  ******************************************************************************/
@@ -10,3 +10,15 @@
  #include <unistd.h>
  #include <stdio.h>
  #include <fcntl.h>
+@@ -383,7 +384,11 @@ int BPFInterfaces::send_packet(int ifn, 
+   /* write this packet: */
+   iov[0].iov_base = (char* )&ether_packet;
+   iov[0].iov_len = sizeof(ether_packet);
++#if defined(__DragonFly__)
++  iov[1].iov_base = (char *)data;
++#else
+   iov[1].iov_base = data;
++#endif
+   iov[1].iov_len = len;
+   if (writev(_latd_bpf_fd, iov, 2) < 0) {
+     syslog(LOG_ERR, "writev: %m");
diff -r 82e040023fda -r d9b701d60cc9 net/latd/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/latd/patches/patch-ae Tue Mar 14 02:38:16 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ae,v 1.1 2006/03/14 02:38:16 joerg Exp $
+
+--- dn_endian.h.orig   2006-03-14 02:30:07.000000000 +0000
++++ dn_endian.h
+@@ -17,6 +17,9 @@
+ #if defined(__NetBSD__) || defined(__FreeBSD__)
+ #include <machine/endian.h>
+ #define __BYTE_ORDER BYTE_ORDER
++#elif defined(__DragonFly__)
++#define __BYTE_ORDER _BYTE_ORDER
++#include <sys/endian.h>
+ #endif
+ 
+ #ifdef __APPLE__
diff -r 82e040023fda -r d9b701d60cc9 net/latd/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/latd/patches/patch-af Tue Mar 14 02:38:16 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2006/03/14 02:38:16 joerg Exp $
+
+--- moprc.cc.orig      2006-03-14 02:34:38.000000000 +0000
++++ moprc.cc
+@@ -51,7 +51,7 @@
+ #include "interfaces.h"
+ #include "moprc.h"
+ 
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #define ether_addr_octet octet
+ #endif
+ 



Home | Main Index | Thread Index | Old Index