Files

66 lines
2.4 KiB
Tcl
Raw Permalink Normal View History

2021-03-15 06:27:28 -04:00
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup golang 1.0
2025-12-30 12:42:24 +08:00
go.setup github.com/bettercap/bettercap 2.41.5 v
2025-07-16 15:40:06 +10:00
revision 0
2021-03-15 06:27:28 -04:00
homepage https://www.bettercap.org
description The Swiss Army knife for 802.11, BLE and Ethernet \
networks reconnaissance and MITM attacks.
long_description bettercap is a powerful, easily extensible and portable \
framework written in Go which aims to offer to security \
researchers, red teamers and reverse engineers an easy to \
use, all-in-one solution with all the features they might \
possibly need for performing reconnaissance and attacking \
WiFi networks, Bluetooth Low Energy devices, wireless HID \
devices and Ethernet networks.
categories net security
2022-09-23 09:27:39 -04:00
installs_libs no
license GPL-3
2021-03-15 06:27:28 -04:00
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
2022-09-23 09:27:39 -04:00
2025-02-01 14:22:12 +08:00
set ui_commit 6e126c470e97542d724927ba975011244127dbb1
2024-09-18 21:10:32 -04:00
set ui_distfile ${ui_commit}${extract.suffix}
set main_distfile ${distfiles}
master_sites-append https://github.com/bettercap/ui/archive/:ui
distfiles-append ${ui_distfile}:ui
checksums ${main_distfile} \
2025-12-30 12:42:24 +08:00
rmd160 6c7a87ce0cde78237f03ae3cc2eb342c9ee5e8fb \
sha256 85513871e105a182eb92f80ba9563ac37cb8a48bcfa98d30e1197e74c42ff15a \
size 12377880 \
2024-09-18 21:10:32 -04:00
${ui_distfile} \
2025-02-01 14:22:12 +08:00
rmd160 c2121635595a241e20dbb48b8e2d86f333af8b01 \
sha256 8006a844d2e6a9678fe48c1e719022c2600b9fc8941bd5ee6c5777309edecc07 \
size 11308073
2024-09-18 21:10:32 -04:00
post-extract {
delete ${worksrcpath}/modules/ui/ui
move ${workpath}/ui-${ui_commit} ${worksrcpath}/modules/ui/ui
}
2021-03-15 06:27:28 -04:00
depends_build-append \
2025-02-03 00:44:25 +08:00
port:pkgconfig
2021-03-15 06:27:28 -04:00
depends_lib-append port:libpcap \
2021-10-25 22:35:12 -04:00
path:lib/pkgconfig/libusb-1.0.pc:libusb
2021-03-15 06:27:28 -04:00
2025-02-01 14:22:12 +08:00
go.offline_build no
2022-09-23 09:27:39 -04:00
2025-02-03 00:44:25 +08:00
post-patch {
reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/caplets/env.go
}
2021-03-15 06:27:28 -04:00
build.cmd make
build.target build
destroot {
system -W ${worksrcpath} "make -w PREFIX=${destroot}${prefix} install"
}