1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00

net-mgmt/tcpreplay: properly depend on ports libpcap

This port offers a non-default option to use net/libpcap instead of the
one from base.

If that option is chosen specifically specify the shared object version
in order to link against libpcap from ports.

PR:		262976
Reported by:	mikael
This commit is contained in:
Emanuel Haupt 2022-04-02 12:15:04 +02:00
parent 4f5460be22
commit 09c1b249af

View File

@ -2,6 +2,7 @@
PORTNAME= tcpreplay
DISTVERSION= 4.4.1
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= https://github.com/appneta/${PORTNAME}/releases/download/v${DISTVERSION}/
@ -34,6 +35,7 @@ LIBPCAP_BASE_DESC= Build with libpcap from the base OS
LIBPCAP_PORTS_DESC= Build with net/libpcap
LIBPCAP_BASE_CONFIGURE_ON= --with-libpcap=/usr/lib
LIBPCAP_PORTS_LIB_DEPENDS= libpcap.so:net/libpcap
# needs .so version (see: 262976)
LIBPCAP_PORTS_LIB_DEPENDS= libpcap.so.1:net/libpcap
.include <bsd.port.mk>