summaryrefslogtreecommitdiff
path: root/chat/i2cbd
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-13 16:26:39 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-13 16:26:39 +0000
commit82c72547d94821008c0f17d82f1666dd88767387 (patch)
treec6bc9b96505c5bb2b4c301bf8f5c1ea37c50e8c2 /chat/i2cbd
parentd085e9fd16e1ff0bb10059fe658d54295077172a (diff)
downloadpkgsrc-82c72547d94821008c0f17d82f1666dd88767387.tar.gz
Add DragonFly support.
Diffstat (limited to 'chat/i2cbd')
-rw-r--r--chat/i2cbd/distinfo4
-rw-r--r--chat/i2cbd/patches/patch-ag28
-rw-r--r--chat/i2cbd/patches/patch-ah24
3 files changed, 55 insertions, 1 deletions
diff --git a/chat/i2cbd/distinfo b/chat/i2cbd/distinfo
index e1551219e53..a64ee7b31b4 100644
--- a/chat/i2cbd/distinfo
+++ b/chat/i2cbd/distinfo
@@ -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-ac) = ca8e6b7324a22fb9ecabf2374e34febb55196e28
SHA1 (patch-ad) = 3cf3cc389861f38fe6d12a896717f3716fa85bdf
SHA1 (patch-ae) = 52c7d65cfb4c453d9e3d135d903373f99a15131a
SHA1 (patch-af) = 7b5257dc24f0b34a3205bd1accd83a068210a5fc
+SHA1 (patch-ag) = b354e4ed7dce00e13f87579b252650d7b921b1aa
+SHA1 (patch-ah) = 94ee816e45d2f26e94a22678cc090fa4fb4f0daa
diff --git a/chat/i2cbd/patches/patch-ag b/chat/i2cbd/patches/patch-ag
new file mode 100644
index 00000000000..55088a8c010
--- /dev/null
+++ b/chat/i2cbd/patches/patch-ag
@@ -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 --git a/chat/i2cbd/patches/patch-ah b/chat/i2cbd/patches/patch-ah
new file mode 100644
index 00000000000..4c491cbaed0
--- /dev/null
+++ b/chat/i2cbd/patches/patch-ah
@@ -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);
+