From owner-dev-commits-ports-all@freebsd.org Fri Aug 20 19:12:52 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 94D40665BCC; Fri, 20 Aug 2021 19:12:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Grrr43qNwz4qsm; Fri, 20 Aug 2021 19:12:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6B65E1E5B2; Fri, 20 Aug 2021 19:12:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17KJCq9x094703; Fri, 20 Aug 2021 19:12:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17KJCqxW094702; Fri, 20 Aug 2021 19:12:52 GMT (envelope-from git) Date: Fri, 20 Aug 2021 19:12:52 GMT Message-Id: <202108201912.17KJCqxW094702@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Renato Botelho Subject: git: 90580b96c415 - main - security/yersinia: Add PORTS_PCAP option MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: garga X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 90580b96c4150f9810b42e8ff5ce558fc2bd6e58 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2021 19:12:52 -0000 The branch main has been updated by garga: URL: https://cgit.FreeBSD.org/ports/commit/?id=90580b96c4150f9810b42e8ff5ce558fc2bd6e58 commit 90580b96c4150f9810b42e8ff5ce558fc2bd6e58 Author: Volodymyr Pushkar AuthorDate: 2021-08-20 19:10:16 +0000 Commit: Renato Botelho CommitDate: 2021-08-20 19:12:26 +0000 security/yersinia: Add PORTS_PCAP option Add a new option PORTS_PCAP and explicit rules to build it using base libpcap or ports PR: 254301 Approved by: maintainer timeout (5 months) Sponsored by: Rubicon Communications, LLC ("Netgate") --- security/yersinia/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/security/yersinia/Makefile b/security/yersinia/Makefile index 87857d710747..14a6b7da35a5 100644 --- a/security/yersinia/Makefile +++ b/security/yersinia/Makefile @@ -2,8 +2,10 @@ PORTNAME= yersinia PORTVERSION= 0.8.2 +PORTREVISION= 1 CATEGORIES= security # MASTER_SITES= http://www.yersinia.net/download/ +PKGNAMESUFFIX= -gtk MAINTAINER= ayu@commun.jp COMMENT= Layer 2 vulnerability scanner (switches, spanning tree, 802.1q ...) @@ -16,7 +18,6 @@ LIB_DEPENDS= libnet.so:net/libnet \ USES= autoreconf gnome ncurses pkgconfig USE_GNOME= cairo gdkpixbuf2 gtk20 -PKGNAMESUFFIX= -gtk USE_GITHUB= yes GH_TUPLE= tomac:yersinia:8c0d7c5 GNU_CONFIGURE= yes @@ -24,6 +25,14 @@ GNU_CONFIGURE= yes PLIST_FILES= sbin/yersinia \ man/man8/yersinia.8.gz +OPTIONS_DEFINE= PORTS_PCAP + +PORTS_PCAP_DESC=Use ports PCAP instead of system PCAP + +PORTS_PCAP_CONFIGURE_ON= --with-pcap-includes=${LOCALBASE}/include +PORTS_PCAP_CONFIGURE_OFF= --with-pcap-includes=/usr/include +PORTS_PCAP_BUILD_DEPENDS= ${LOCALBASE}/lib/libpcap.a:net/libpcap + post-patch: @${REINPLACE_CMD} -e 's,-O3 -Wall -g,${CFLAGS} -fcommon,' \ ${WRKSRC}/configure.ac