diff --git a/net/bettercap/Portfile b/net/bettercap/Portfile index 6da1a92f419d7..3128e02238515 100644 --- a/net/bettercap/Portfile +++ b/net/bettercap/Portfile @@ -5,7 +5,7 @@ PortGroup golang 1.0 go.setup github.com/bettercap/bettercap 2.41.0 v github.tarball_from archive -revision 0 +revision 1 homepage https://www.bettercap.org @@ -47,21 +47,20 @@ post-extract { } depends_build-append \ - port:pkgconfig \ - port:python310 + port:pkgconfig depends_lib-append port:libpcap \ path:lib/pkgconfig/libusb-1.0.pc:libusb go.offline_build no +post-patch { + reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/caplets/env.go +} + build.cmd make build.target build destroot { system -W ${worksrcpath} "make -w PREFIX=${destroot}${prefix} install" } - -notes \ - "PLEASE NOTE: bettercap will install its caplets to /usr/local/share/bettercap" -