pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libnet - Fix for systems where /dev/bpf is prese...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/91221dc533e0
branches:  trunk
changeset: 491564:91221dc533e0
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Fri Mar 25 17:52:32 2005 +0000

description:
- Fix for systems where /dev/bpf is present but not /dev/bpf0
- Bumb to nb5
- Issue spotted and patch provided by Jukka Salmi in PR# 29678
        Thanks for the PR and patch.

diffstat:

 devel/libnet/Makefile         |   4 ++--
 devel/libnet/distinfo         |   3 ++-
 devel/libnet/patches/patch-ac |  22 ++++++++++++++++++++++
 3 files changed, 26 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r fca66c8b5051 -r 91221dc533e0 devel/libnet/Makefile
--- a/devel/libnet/Makefile     Fri Mar 25 17:40:25 2005 +0000
+++ b/devel/libnet/Makefile     Fri Mar 25 17:52:32 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.21 2005/01/20 21:17:48 adrianp Exp $
+# $NetBSD: Makefile,v 1.22 2005/03/25 17:52:32 adrianp Exp $
 #
 
 DISTNAME=      libnet-1.0.1b
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    devel net
 MASTER_SITES=  http://www.packetfactory.net/libnet/dist/
 
diff -r fca66c8b5051 -r 91221dc533e0 devel/libnet/distinfo
--- a/devel/libnet/distinfo     Fri Mar 25 17:40:25 2005 +0000
+++ b/devel/libnet/distinfo     Fri Mar 25 17:52:32 2005 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 22:24:19 agc Exp $
+$NetBSD: distinfo,v 1.5 2005/03/25 17:52:32 adrianp Exp $
 
 SHA1 (libnet-1.0.1b.tar.gz) = 799d14bbc6ec909fb5fc9d7ac5183224f6c84ef5
 RMD160 (libnet-1.0.1b.tar.gz) = f66e279ad3d700e975174f4051d109c0d7c9d574
 Size (libnet-1.0.1b.tar.gz) = 233325 bytes
 SHA1 (patch-aa) = 876755183045f277dd7c113cf1e8c591063058af
 SHA1 (patch-ab) = 2bb117012b2a7e775b358e4dad6ae67757f5eb1f
+SHA1 (patch-ac) = b956e06d78ab77ad2ea461706daa9c42a8a9c00a
diff -r fca66c8b5051 -r 91221dc533e0 devel/libnet/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libnet/patches/patch-ac     Fri Mar 25 17:52:32 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1 2005/03/25 17:52:32 adrianp Exp $
+
+--- configure.orig     2005-03-25 17:38:37.000000000 +0000
++++ configure
+@@ -1209,7 +1209,7 @@ fi
+ echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
+ echo "configure:1211: checking low-level packet interface type" >&5
+ 
+-if test -r /dev/bpf0 ; then
++if test -r /dev/bpf0 -o -r /dev/bpf ; then
+     LL_INT_TYPE=bpf
+     echo "$ac_t""found bpf" 1>&6
+ elif test -r /usr/include/net/pfilt.h ; then
+@@ -1340,7 +1340,7 @@ fi
+ 
+ 
+     fi
+-elif test -c /dev/bpf0 ; then           # check again in case not readable
++elif test -c /dev/bpf0 -o -c /dev/bpf ; then           # check again in case not readable
+     LL_INT_TYPE=bpf
+     echo "$ac_t""found bpf" 1>&6
+ elif test -c /dev/enet ; then           # check again in case not readable



Home | Main Index | Thread Index | Old Index