aboutsummaryrefslogtreecommitdiff
path: root/net/howl
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-10-31 20:44:26 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-10-31 20:44:26 +0000
commit2b54e91c092fca8435e60d38ebd47e8028f6bcbb (patch)
treef7d59059eb8954445412f2a52eeb33a3193856c2 /net/howl
parent11264cef07571b26458d5f092f2059986f710549 (diff)
downloadports-2b54e91c092fca8435e60d38ebd47e8028f6bcbb.tar.gz
ports-2b54e91c092fca8435e60d38ebd47e8028f6bcbb.zip
Notes
Diffstat (limited to 'net/howl')
-rw-r--r--net/howl/Makefile1
-rw-r--r--net/howl/files/patch-src_lib_howl_Posix_posix_interface.c23
-rw-r--r--net/howl/files/patch-src_lib_howl_socket.c11
3 files changed, 35 insertions, 0 deletions
diff --git a/net/howl/Makefile b/net/howl/Makefile
index d4c0cf6b1c75..d13d16f0aa71 100644
--- a/net/howl/Makefile
+++ b/net/howl/Makefile
@@ -6,6 +6,7 @@
PORTNAME= howl
PORTVERSION= 0.9.6
+PORTREVISION= 1
CATEGORIES?= net devel
MASTER_SITES= http://www.porchdogsoft.com/download/
diff --git a/net/howl/files/patch-src_lib_howl_Posix_posix_interface.c b/net/howl/files/patch-src_lib_howl_Posix_posix_interface.c
new file mode 100644
index 000000000000..f44efa9801b0
--- /dev/null
+++ b/net/howl/files/patch-src_lib_howl_Posix_posix_interface.c
@@ -0,0 +1,23 @@
+--- src/lib/howl/Posix/posix_interface.c.orig Sun Oct 17 19:30:04 2004
++++ src/lib/howl/Posix/posix_interface.c Sun Oct 17 19:31:47 2004
+@@ -400,17 +400,19 @@
+ /* ip address */
+ sw_ipv4_address_init_from_saddr(&(nif->m_super.m_ipv4_address), ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr.s_addr);
+
+-#if defined(__linux__)
+ /* get a socket for ioctling */
+ err = sw_posix_inet_socket(&sock);
+ sw_check_okay(err, exit);
+
++#if defined(SIOCGIFHWADDR)
+ /* mac address */
+ res = ioctl(sock, SIOCGIFHWADDR, ifr);
+ err = sw_translate_error(res == 0, errno);
+ sw_check_okay_log(err, exit);
+ sw_memcpy(nif->m_super.m_mac_address.m_id, (sw_uint8*)(ifr->ifr_hwaddr.sa_data), sizeof(sw_mac_address));
++#endif
+
++#if defined(SIOCGIFFLAGS)
+ /* ifnet flags */
+ res = ioctl(sock, SIOCGIFFLAGS, ifr);
+ err = sw_translate_error(res == 0, errno);
diff --git a/net/howl/files/patch-src_lib_howl_socket.c b/net/howl/files/patch-src_lib_howl_socket.c
new file mode 100644
index 000000000000..e7199f4bdc63
--- /dev/null
+++ b/net/howl/files/patch-src_lib_howl_socket.c
@@ -0,0 +1,11 @@
+--- src/lib/howl/socket.c.orig Sun Oct 17 19:34:00 2004
++++ src/lib/howl/socket.c Sun Oct 17 19:34:12 2004
+@@ -261,7 +261,7 @@
+ err = sw_translate_error(self->m_desc != SW_INVALID_SOCKET, sw_socket_errno());
+ sw_check_okay_log(err, exit);
+
+-#if defined(__APPLE__) || defined(__VXWORKS__)
++#if defined(__APPLE__) || defined(__VXWORKS__) || defined(__FreeBSD__)
+ res = setsockopt(self->m_desc, SOL_SOCKET, SO_REUSEPORT, (char*) &opt, sizeof(opt));
+ #else
+ res = setsockopt(self->m_desc, SOL_SOCKET, SO_REUSEADDR, (char*) &opt, sizeof(opt));