pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net Make it build on FreeBSD and DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb1759a40bf7
branches:  trunk
changeset: 556989:cb1759a40bf7
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Tue Apr 07 17:58:19 2009 +0000

description:
Make it build on FreeBSD and DragonFly.

diffstat:

 net/irrd/distinfo         |   3 ++-
 net/irrd/patches/patch-ad |  22 ++++++++++++++++++++++
 net/ttt/distinfo          |   3 ++-
 net/ttt/patches/patch-ad  |  30 ++++++++++++++++++++++++++++++
 4 files changed, 56 insertions(+), 2 deletions(-)

diffs (88 lines):

diff -r 1a14502a4ecf -r cb1759a40bf7 net/irrd/distinfo
--- a/net/irrd/distinfo Tue Apr 07 17:38:10 2009 +0000
+++ b/net/irrd/distinfo Tue Apr 07 17:58:19 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2006/07/05 21:39:42 wiz Exp $
+$NetBSD: distinfo,v 1.12 2009/04/07 17:58:19 hasso Exp $
 
 SHA1 (irrd2.2.8.tgz) = cfaf5fb6e4abdd2bce8de0233231dd2514c5d111
 RMD160 (irrd2.2.8.tgz) = 74688380c6cdcc8ddaa5ebf8705c10922f02fb8b
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 3059131bad8df2071ae64ea5e9d0c6f858a7ae2e
 SHA1 (patch-ab) = d9172a35b907dbaac24ef7b72fcce05310d674bd
 SHA1 (patch-ac) = 5ea304aad5a2b3a2e835e63ac58ebbb83f12a5c3
+SHA1 (patch-ad) = 313a1d44c4623123f7c2a37ff2740887fa32bdb2
diff -r 1a14502a4ecf -r cb1759a40bf7 net/irrd/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/irrd/patches/patch-ad Tue Apr 07 17:58:19 2009 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ad,v 1.3 2009/04/07 17:58:19 hasso Exp $
+
+--- lib/mrt/prefix.c.orig
++++ lib/mrt/prefix.c
+@@ -5,7 +5,7 @@
+ #include <mrt.h>
+ #include <netdb.h>
+ 
+-#ifndef __GLIBC__
++#if !defined(__GLIBC__) && !(defined(__FreeBSD__) && (__FreeBSD_version + 0 >= 601103)) && !(defined(__DragonFly__) && (__DragonFly_version + 0 >= 200202))
+ #ifdef __osf__
+ 
+ /* apparently, OSF's gethostby{name,addr}_r's are different, broken, and
+@@ -40,7 +40,7 @@ struct hostent  *gethostbyaddr_r
+       For the time being, this part tries to convert Linux glibc 2.X
+       gethostXX_r into Solaris's that we use to code MRT. -- masaki
+     */
+-#if __GLIBC__ >= 2
++#if (__GLIBC__ >= 2) || (defined(__FreeBSD__) && (__FreeBSD_version + 0 >= 601103)) || (defined(__DragonFly__) && (__DragonFly_version + 0 >= 200202))
+    /* Glibc 2.X
+ 
+     int gethostbyname_r (const char *name, struct hostent *result_buf, 
diff -r 1a14502a4ecf -r cb1759a40bf7 net/ttt/distinfo
--- a/net/ttt/distinfo  Tue Apr 07 17:38:10 2009 +0000
+++ b/net/ttt/distinfo  Tue Apr 07 17:58:19 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2007/09/07 13:53:44 obache Exp $
+$NetBSD: distinfo,v 1.9 2009/04/07 18:03:14 hasso Exp $
 
 SHA1 (ttt-1.8.2.tar.gz) = 8b52a1e90de17202c22f062f44025b7ae0e21454
 RMD160 (ttt-1.8.2.tar.gz) = 8f1877904087d9260e61e76f869196111de585c0
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 6d119e544ef3ae578b70c5d13a032f2a1529dde5
 SHA1 (patch-ab) = 4ced63fabf7c4d7360fc3f1a249fb08256b1a745
 SHA1 (patch-ac) = f513d90f7c8ef2389aa868d76795a82c91052e86
+SHA1 (patch-ad) = 40ad417dfb240240468513258132bcc64f510273
diff -r 1a14502a4ecf -r cb1759a40bf7 net/ttt/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ttt/patches/patch-ad  Tue Apr 07 17:58:19 2009 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ad,v 1.1 2009/04/07 18:03:14 hasso Exp $
+
+--- node.c.orig
++++ node.c
+@@ -89,7 +89,9 @@ struct t_node *b_getnext(struct t_node *
+ static int b_collectgarbage(int tab_no);
+ static int b_countfree(int tab_no);
+ static struct t_node *b_getfree(int tab_no);
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ static int fls(int i);
++#endif
+ #ifdef IPV6
+ static int node_comp_id(long *a, long *b);
+ #endif
+@@ -598,6 +600,7 @@ static struct t_node *b_getfree(int tab_
+     return np;
+ }
+ 
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ /* fls - find last set bit  --- reverse function of vax ffs */
+ static int fls(int i)
+ {
+@@ -623,6 +626,7 @@ static int fls(int i)
+     assert(0);
+     return 0;
+ }
++#endif
+ 
+ static int node_comp_id(long *a, long *b)
+ {



Home | Main Index | Thread Index | Old Index