aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2009-08-01 23:51:51 +0800
committerjhay <jhay@FreeBSD.org>2009-08-01 23:51:51 +0800
commit1038af19907d1e5cbf58511274f153c1b0ba4ce0 (patch)
tree9b33cfd3c8ed4139098bd7d04fae87683aec6b2f /net
parentbc692005f3946b477fb0ae4562657760d54876d4 (diff)
downloadfreebsd-ports-gnome-1038af19907d1e5cbf58511274f153c1b0ba4ce0.tar.gz
freebsd-ports-gnome-1038af19907d1e5cbf58511274f153c1b0ba4ce0.tar.zst
freebsd-ports-gnome-1038af19907d1e5cbf58511274f153c1b0ba4ce0.zip
Upgrade to olsrd 0.5.6-r5. Also make it work on 64 bit machines.
PR: ports/137158 (The upgrade) Submitted by: Hung-Yi Chen <gaod@hychen.org> (The upgrade)
Diffstat (limited to 'net')
-rw-r--r--net/olsrd/Makefile2
-rw-r--r--net/olsrd/distinfo6
-rw-r--r--net/olsrd/files/patch-src-bsd-kernel_routes.c52
-rw-r--r--net/olsrd/files/patch-src-bsd-net.c20
4 files changed, 47 insertions, 33 deletions
diff --git a/net/olsrd/Makefile b/net/olsrd/Makefile
index e61e690a40c2..c735221f8c93 100644
--- a/net/olsrd/Makefile
+++ b/net/olsrd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= olsrd
-DISTVERSION= 0.5.6-r4
+DISTVERSION= 0.5.6-r5
CATEGORIES= net
MASTER_SITES= http://www.olsr.org/releases/0.5/ \
http://ftp2.za.freebsd.org/pub/mesh/pc/protocols/olsr/
diff --git a/net/olsrd/distinfo b/net/olsrd/distinfo
index fbc3eed6d61f..68e39793a2b0 100644
--- a/net/olsrd/distinfo
+++ b/net/olsrd/distinfo
@@ -1,3 +1,3 @@
-MD5 (olsrd-0.5.6-r4.tar.bz2) = 16076660413bcf625ba8772fdb3d607f
-SHA256 (olsrd-0.5.6-r4.tar.bz2) = a5864f214d4fdfbd27e9b254ce3f04efbc31761697b57329a7d0cdea26002a2c
-SIZE (olsrd-0.5.6-r4.tar.bz2) = 548009
+MD5 (olsrd-0.5.6-r5.tar.bz2) = 57a365750457e13e2e1a5c7963b1d344
+SHA256 (olsrd-0.5.6-r5.tar.bz2) = 8ed8c070bbe08cfeaf965e22a7c760219af168b56f816cc49f2fca2877bacac8
+SIZE (olsrd-0.5.6-r5.tar.bz2) = 543158
diff --git a/net/olsrd/files/patch-src-bsd-kernel_routes.c b/net/olsrd/files/patch-src-bsd-kernel_routes.c
index 22e891f08cb8..837f968c5968 100644
--- a/net/olsrd/files/patch-src-bsd-kernel_routes.c
+++ b/net/olsrd/files/patch-src-bsd-kernel_routes.c
@@ -1,30 +1,24 @@
---- src/bsd/kernel_routes.c.orig 2009-03-17 23:52:47.000000000 +0200
-+++ src/bsd/kernel_routes.c 2009-03-21 19:45:54.000000000 +0200
-@@ -176,7 +176,9 @@
- memcpy(walker, sdl, sdl->sdl_len);
- walker += sdl_size;
- rtm->rtm_addrs |= RTA_GATEWAY;
-+#ifdef RTF_CLONING
- rtm->rtm_flags |= RTF_CLONING;
-+#endif
- #ifndef _WRS_KERNEL
- rtm->rtm_flags &= ~RTF_HOST;
- #endif
-@@ -295,7 +297,7 @@
- #endif
- memcpy(walker, &sin6, sizeof(sin6));
- walker += sin_size;
-- rtm->rtm_addrs = RTA_GATEWAY;
-+ rtm->rtm_addrs |= RTA_GATEWAY;
- }
- else {
- /*
-@@ -313,7 +315,7 @@
- #endif
- memcpy(walker, &sin6, sizeof(sin6));
- walker += sin_size;
-- rtm->rtm_addrs = RTA_GATEWAY;
-+ rtm->rtm_addrs |= RTA_GATEWAY;
- rtm->rtm_flags |= RTF_GATEWAY;
- }
+--- src/bsd/kernel_routes.c.orig 2009-02-01 19:57:23.000000000 +0000
++++ src/bsd/kernel_routes.c 2009-06-17 15:57:01.000000000 +0000
+@@ -95,8 +95,8 @@
+ sin4.sin_len = sizeof(sin4);
+ sin4.sin_family = AF_INET;
+- sin_size = 1 + ((sizeof(struct sockaddr_in) - 1) | 3);
+- sdl_size = 1 + ((sizeof(struct sockaddr_dl) - 1) | 3);
++ sin_size = 1 + ((sizeof(struct sockaddr_in) - 1) | (sizeof(long) - 1));
++ sdl_size = 1 + ((sizeof(struct sockaddr_dl) - 1) | (sizeof(long) - 1));
+
+ /**********************************************************************
+ * FILL THE ROUTING MESSAGE HEADER
+@@ -250,8 +252,8 @@
+ sdl.sdl_len = sizeof(sdl);
+ sdl.sdl_family = AF_LINK;
+
+- sin_size = 1 + ((sizeof(struct sockaddr_in6) - 1) | 3);
+- sdl_size = 1 + ((sizeof(struct sockaddr_dl) - 1) | 3);
++ sin_size = 1 + ((sizeof(struct sockaddr_in6) - 1) | (sizeof(long) - 1));
++ sdl_size = 1 + ((sizeof(struct sockaddr_dl) - 1) | (sizeof(long) - 1));
+
+ /**********************************************************************
+ * FILL THE ROUTING MESSAGE HEADER
diff --git a/net/olsrd/files/patch-src-bsd-net.c b/net/olsrd/files/patch-src-bsd-net.c
new file mode 100644
index 000000000000..56afa51d2772
--- /dev/null
+++ b/net/olsrd/files/patch-src-bsd-net.c
@@ -0,0 +1,20 @@
+--- src/bsd/net.c.orig 2009-03-23 19:49:15.000000000 +0000
++++ src/bsd/net.c 2009-06-09 11:51:33.000000000 +0000
+@@ -127,7 +127,7 @@
+ set_sysctl_int(const char *name, int new)
+ {
+ int old;
+-#if __MacOSX__ || __OpenBSD__
++#if __FreeBSD__ || __MacOSX__ || __OpenBSD__
+ size_t len = sizeof(old);
+ #else
+ unsigned int len = sizeof(old);
+@@ -537,7 +537,7 @@
+ break;
+ }
+ ifr6.ifr_addr = *sin6;
+- if (ioctl(s6, SIOCGIFAFLAG_IN6, (int)&ifr6) < 0) {
++ if (ioctl(s6, SIOCGIFAFLAG_IN6, &ifr6) < 0) {
+ OLSR_PRINTF(3, "ioctl(SIOCGIFAFLAG_IN6)");
+ close(s6);
+ break;