Skip to content

Commit

Permalink
bettercap: patch default caplets path
Browse files Browse the repository at this point in the history
remove python build dep
  • Loading branch information
i0ntempest authored and herbygillot committed Feb 3, 2025
1 parent 69697f1 commit d6ae6c5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions net/bettercap/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"

0 comments on commit d6ae6c5

Please sign in to comment.