--- Makefile 2021-03-15 10:38:37.789635000 +0200 +++ Makefile 2021-03-15 10:36:18.019171000 +0200 @@ -25,6 +25,16 @@ 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 + +.include + post-patch: @${REINPLACE_CMD} -e 's,-O3 -Wall -g,${CFLAGS} -fcommon,' \ ${WRKSRC}/configure.ac