Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bettercap: patch default caplets path #27564

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"