Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id F30D01A9239 for ; Tue, 9 Nov 2021 11:56:26 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 155EB84F30; Tue, 9 Nov 2021 11:56:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4900584D0D for ; Tue, 9 Nov 2021 11:56:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id Dva7j_ayzrjp for ; Tue, 9 Nov 2021 11:56:24 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9A78184CE1 for ; Tue, 9 Nov 2021 11:56:24 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 945B9FAEC; Tue, 9 Nov 2021 11:56:24 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1636458984206740" MIME-Version: 1.0 Date: Tue, 9 Nov 2021 11:56:24 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/devel/libnet To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20211109115624.945B9FAEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1636458984206740 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1636458984206740 Content-Disposition: inline Content-Length: 759 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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" --_----------=_1636458984206740--