pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/i2cbd Add DragonFly support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/59341a758569
branches:  trunk
changeset: 504555:59341a758569
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Dec 13 16:26:39 2005 +0000

description:
Add DragonFly support.

diffstat:

 chat/i2cbd/distinfo         |   4 +++-
 chat/i2cbd/patches/patch-ag |  28 ++++++++++++++++++++++++++++
 chat/i2cbd/patches/patch-ah |  24 ++++++++++++++++++++++++
 3 files changed, 55 insertions(+), 1 deletions(-)

diffs (75 lines):

diff -r dd9e6cbb7255 -r 59341a758569 chat/i2cbd/distinfo
--- a/chat/i2cbd/distinfo       Tue Dec 13 16:08:54 2005 +0000
+++ b/chat/i2cbd/distinfo       Tue Dec 13 16:26:39 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2005/10/31 18:30:49 tv Exp $
+$NetBSD: distinfo,v 1.8 2005/12/13 16:26:39 joerg Exp $
 
 SHA1 (i2cbd-2.0_BETA1.tar.gz) = d3578637f834a8628c270e1e9fd6db7683d1603c
 RMD160 (i2cbd-2.0_BETA1.tar.gz) = 911296c8f69100cc2366345eb3a9e1b443e1510b
@@ -9,3 +9,5 @@
 SHA1 (patch-ad) = 3cf3cc389861f38fe6d12a896717f3716fa85bdf
 SHA1 (patch-ae) = 52c7d65cfb4c453d9e3d135d903373f99a15131a
 SHA1 (patch-af) = 7b5257dc24f0b34a3205bd1accd83a068210a5fc
+SHA1 (patch-ag) = b354e4ed7dce00e13f87579b252650d7b921b1aa
+SHA1 (patch-ah) = 94ee816e45d2f26e94a22678cc090fa4fb4f0daa
diff -r dd9e6cbb7255 -r 59341a758569 chat/i2cbd/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/i2cbd/patches/patch-ag       Tue Dec 13 16:26:39 2005 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ag,v 1.1 2005/12/13 16:26:39 joerg Exp $
+
+--- src/main.c.orig    2005-12-13 16:11:25.000000000 +0000
++++ src/main.c
+@@ -4,4 +4,5 @@
+ 
+ #include <sys/param.h>
++#include <sys/time.h>
+ #include <sys/resource.h>
+ #include <sys/types.h>
+@@ -14,9 +15,17 @@
+ #include <string.h>
+ #include <unistd.h>
++#if defined(__DragonFly__)
++#include <libutil.h>
++#else
+ #include <util.h>
++#endif
+ #include "externs.h"
+ #include "userdb.h"
+ #include "version.h"
+ 
++#if defined(__DragonFly__) && !defined(O_SYNC)
++#define O_SYNC O_FSYNC
++#endif
++
+ static void   open_logs (void);
+ void  close_logs (void);
diff -r dd9e6cbb7255 -r 59341a758569 chat/i2cbd/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/i2cbd/patches/patch-ah       Tue Dec 13 16:26:39 2005 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ah,v 1.1 2005/12/13 16:26:39 joerg Exp $
+
+--- src/signals.c.orig 2005-12-13 16:15:36.000000000 +0000
++++ src/signals.c
+@@ -40,10 +40,17 @@ icbdump (int sig)
+       return /* -1 */;
+     }
+ 
++#if defined(__DragonFly__)
+     for (i = 0; i < 8; i++)
+-      fprintf (dump, "%d\n", fdset.fds_bits[i]);
++      fprintf (dump, "%lu\n", fdset.fds_bits[i]);
+     for (i = 0; i < 8; i++)
+-      fprintf (dump, "%d\n", serversocks.fds_bits[i]);
++      fprintf (dump, "%lu\n", serversocks.fds_bits[i]);
++#else
++    for (i = 0; i < 8; i++)
++        fprintf (dump, "%d\n", fdset.fds_bits[i]);
++    for (i = 0; i < 8; i++)
++        fprintf (dump, "%d\n", serversocks.fds_bits[i]);
++#endif
+ 
+     fprintf (dump, "%d\n", highestfd);
+ 



Home | Main Index | Thread Index | Old Index