git: 90580b96c415 - main - security/yersinia: Add PORTS_PCAP option

Renato Botelho garga at FreeBSD.org
Fri Aug 20 19:12:52 UTC 2021


The branch main has been updated by garga:

URL: https://cgit.FreeBSD.org/ports/commit/?id=90580b96c4150f9810b42e8ff5ce558fc2bd6e58

commit 90580b96c4150f9810b42e8ff5ce558fc2bd6e58
Author:     Volodymyr Pushkar <vladimir.pushkar at gmail.com>
AuthorDate: 2021-08-20 19:10:16 +0000
Commit:     Renato Botelho <garga at FreeBSD.org>
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 at 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


More information about the dev-commits-ports-main mailing list