pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libnet libnet: Avoid looking for /dev/bpf to dec...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f24f07f744b3
branches: trunk
changeset: 769184:f24f07f744b3
user: nia <nia%pkgsrc.org@localhost>
date: Tue Nov 09 11:56:24 2021 +0000
description:
libnet: Avoid looking for /dev/bpf to decide to use the BPF link layer.
It may not be available in the build sandbox, in which case libnet
thinks we're on Win32 and fails horribly.
diffstat:
devel/libnet/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 00a14ba4df65 -r f24f07f744b3 devel/libnet/Makefile
--- a/devel/libnet/Makefile Tue Nov 09 11:51:11 2021 +0000
+++ b/devel/libnet/Makefile Tue Nov 09 11:56:24 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2021/07/22 07:58:50 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2021/11/09 11:56:24 nia Exp $
DISTNAME= libnet-1.2
CATEGORIES= devel net
@@ -13,6 +13,14 @@
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+CONFIGURE_ARGS+= --with-link-layer=linux
+.elif exists(/usr/include/net/bpf.h)
+CONFIGURE_ARGS+= --with-link-layer=bpf
+.endif
+
.include "options.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index