pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libnet



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Nov  9 11:56:24 UTC 2021

Modified Files:
        pkgsrc/devel/libnet: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 pkgsrc/devel/libnet/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libnet/Makefile
diff -u pkgsrc/devel/libnet/Makefile:1.36 pkgsrc/devel/libnet/Makefile:1.37
--- pkgsrc/devel/libnet/Makefile:1.36   Thu Jul 22 07:58:50 2021
+++ pkgsrc/devel/libnet/Makefile        Tue Nov  9 11:56:24 2021
@@ -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 @@ LICENSE=     2-clause-bsd
 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