This is a relatively straightforward update to the latest release of
ladvd, 0.9.2.  After testing, one bug was uncovered which was fixed
upstream, this has been integrated in the below diff.

Tested succesfully on amd64 and sparc64, more testing appreciated
(especially with exotic hardware and different platforms).  Comments /
OKs ?

Thanks,

Paul 'WEiRD' de Weerd

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/ladvd/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile    26 May 2010 17:03:59 -0000      1.7
+++ Makefile    21 Sep 2010 16:09:06 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =              link advertisement (LLDP/CDP etc) daemon
 
-DISTNAME =             ladvd-0.9.0
+DISTNAME =             ladvd-0.9.2
 CATEGORIES =           net
 
 HOMEPAGE =             http://blinkenlights.nl/software/ladvd/
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/ladvd/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo    26 May 2010 17:03:59 -0000      1.4
+++ distinfo    21 Sep 2010 16:10:27 -0000
@@ -1,5 +1,5 @@
-MD5 (ladvd-0.9.0.tar.gz) = waTOwN2MvDEq2WRlYkSlxQ==
-RMD160 (ladvd-0.9.0.tar.gz) = F3rLY7XtqfKnppXkp8QBhkG1N58=
-SHA1 (ladvd-0.9.0.tar.gz) = mZEmVmXmx+m5CFJnGzYMeUFxxVU=
-SHA256 (ladvd-0.9.0.tar.gz) = BpxGsN6uANus356+TpXjGpOQvEvQmbYKNvSKaHood/g=
-SIZE (ladvd-0.9.0.tar.gz) = 397506
+MD5 (ladvd-0.9.2.tar.gz) = VEIap0srwXncCNQti7cwfA==
+RMD160 (ladvd-0.9.2.tar.gz) = hRd4CkLaBbbCXPPvvTVQ5yR36Hw=
+SHA1 (ladvd-0.9.2.tar.gz) = ISdR4bFXTa+ys6eLNxd16NvQy2Y=
+SHA256 (ladvd-0.9.2.tar.gz) = FyFknGTSVoq3JPe4C/vKHHly9YR6EfXW0JYS7pkIxoo=
+SIZE (ladvd-0.9.2.tar.gz) = 450906
Index: patches/patch-configure_ac
===================================================================
RCS file: /cvs/ports/net/ladvd/patches/patch-configure_ac,v
retrieving revision 1.2
diff -u -r1.2 patch-configure_ac
--- patches/patch-configure_ac  26 May 2010 17:03:59 -0000      1.2
+++ patches/patch-configure_ac  23 Sep 2010 09:28:13 -0000
@@ -1,8 +1,8 @@
 $OpenBSD: patch-configure_ac,v 1.2 2010/05/26 17:03:59 weerd Exp $
 Disable PIE on ARM and HPPA
---- configure.ac.orig  Thu May 20 11:17:15 2010
-+++ configure.ac       Sat May 22 13:46:10 2010
-@@ -28,6 +28,10 @@ case "$target_os" in
+--- configure.ac.orig  Tue Sep 21 09:52:07 2010
++++ configure.ac       Thu Sep 23 11:26:58 2010
+@@ -35,6 +35,10 @@ case "$target_os" in
        use_pie=no
        ;;
      openbsd*)
Index: patches/patch-src_master_c
===================================================================
RCS file: patches/patch-src_master_c
diff -N patches/patch-src_master_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_master_c  23 Sep 2010 09:29:35 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+Merge BPF direction fix from upstream
+
+http://code.google.com/p/ladvd/source/detail?r=d0ee6ffcfd
+
+--- src/master.c.orig  Thu Sep 23 11:27:37 2010
++++ src/master.c       Thu Sep 23 11:28:02 2010
+@@ -610,7 +610,7 @@ int master_socket(struct rawfd *rfd) {
+     if (ioctl(fd, BIOCSDIRECTION, (caddr_t)&enable) < 0)
+       my_fatal("unable to configure BPF direction for %s", rfd->name);
+ #elif defined BIOCSDIRFILT
+-    enable = BPF_DIRECTION_IN;
++    enable = BPF_DIRECTION_OUT;
+     if (ioctl(fd, BIOCSDIRFILT, (caddr_t)&enable) < 0)
+       my_fatal("unable to configure BPF direction for %s", rfd->name);
+ #endif
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/ladvd/pkg/PLIST,v
retrieving revision 1.3
diff -u -r1.3 PLIST
--- pkg/PLIST   26 May 2010 17:03:59 -0000      1.3
+++ pkg/PLIST   21 Sep 2010 16:36:47 -0000
@@ -7,6 +7,7 @@
 @bin sbin/ladvdc
 share/doc/ladvd/
 share/doc/ladvd/ChangeLog
+share/doc/ladvd/HACKING
 share/doc/ladvd/LICENSE
 share/doc/ladvd/README
 share/doc/ladvd/TODO

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 

Reply via email to