update to version 2.32.0 now it's require library libnetfilter_queue

This commit is contained in:
etmatrix 2021-11-01 10:56:02 +01:00 committed by Yaksh Bariya
parent eb06394ae3
commit c0bc0b3a44
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
3 changed files with 49 additions and 45 deletions

View File

@ -2,11 +2,11 @@ TERMUX_PKG_HOMEPAGE=https://www.bettercap.org
TERMUX_PKG_DESCRIPTION="The Swiss Army knife for 802.11, BLE and Ethernet networks reconnaissance and MITM attacks" TERMUX_PKG_DESCRIPTION="The Swiss Army knife for 802.11, BLE and Ethernet networks reconnaissance and MITM attacks"
TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.29 TERMUX_PKG_VERSION=2.32.0
TERMUX_PKG_REVISION=1 TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/bettercap/bettercap/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/bettercap/bettercap/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=c414be98a48d9f279460b325dddaef8479132a1470c6f305790d79e04dac1297 TERMUX_PKG_SHA256=ea28d4d533776a328a54723a74101d1720016ffe7d434bf1d7ab222adb397ac6
TERMUX_PKG_DEPENDS="libpcap, libusb" TERMUX_PKG_DEPENDS="libpcap, libusb, libnetfilter_queue"
# x86_64 seem to depend on libnetfilter_queue # x86_64 seem to depend on libnetfilter_queue
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64" TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"

View File

@ -1,7 +1,8 @@
diff -u -r ../modules.orig/https_proxy/https_proxy.go ./modules/https_proxy/https_proxy.go diff --git a/modules/https_proxy/https_proxy.go b/modules/https_proxy/https_proxy.go
--- ../modules.orig/https_proxy/https_proxy.go 2019-07-19 21:29:31.672237775 +0200 index 06bc1e0..127bb39 100644
+++ ./modules/https_proxy/https_proxy.go 2019-07-19 21:26:42.776456311 +0200 --- a/modules/https_proxy/https_proxy.go
@@ -43,12 +43,12 @@ +++ b/modules/https_proxy/https_proxy.go
@@ -47,12 +47,12 @@ func NewHttpsProxy(s *session.Session) *HttpsProxy {
"URL, path or javascript code to inject into every HTML page.")) "URL, path or javascript code to inject into every HTML page."))
mod.AddParam(session.NewStringParameter("https.proxy.certificate", mod.AddParam(session.NewStringParameter("https.proxy.certificate",
@ -16,10 +17,11 @@ diff -u -r ../modules.orig/https_proxy/https_proxy.go ./modules/https_proxy/http
"", "",
"HTTPS proxy certification authority TLS key file.")) "HTTPS proxy certification authority TLS key file."))
diff -u -r ../modules.orig/https_server/https_server.go ./modules/https_server/https_server.go diff --git a/modules/https_server/https_server.go b/modules/https_server/https_server.go
--- ../modules.orig/https_server/https_server.go 2019-07-19 21:29:41.980474175 +0200 index 0d9ff80..3e49996 100644
+++ ./modules/https_server/https_server.go 2019-07-19 21:28:13.267671735 +0200 --- a/modules/https_server/https_server.go
@@ -42,12 +42,12 @@ +++ b/modules/https_server/https_server.go
@@ -42,12 +42,12 @@ func NewHttpsServer(s *session.Session) *HttpsServer {
"Port to bind the http server to.")) "Port to bind the http server to."))
mod.AddParam(session.NewStringParameter("https.server.certificate", mod.AddParam(session.NewStringParameter("https.server.certificate",

View File

@ -1,24 +1,26 @@
--- ./caplets/env.go.orig 2019-10-03 21:17:37.044291360 +0200 diff --git a/caplets/env.go b/caplets/env.go
+++ ./caplets/env.go 2019-10-03 21:18:21.894201252 +0200 index 9ba8706..fd12078 100644
@@ -19,7 +19,7 @@ --- a/caplets/env.go
+++ b/caplets/env.go
@@ -19,7 +19,7 @@ func getDefaultInstallBase() string {
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap") return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
} }
- return "/usr/local/share/bettercap/" - return "/usr/local/share/bettercap/"
+ return "@TERMUX_PREFIX@/local/share/bettercap/" + return "@TERMUX_PREFIX@/share/bettercap/"
} }
func getUserHomeDir() string { func getUserHomeDir() string {
diff --git a/modules/ui/ui.go b/modules/ui/ui.go diff --git a/modules/ui/ui.go b/modules/ui/ui.go
index f5d6950..4059c6c 100644 index 7bc5270..9a5476a 100644
--- a/modules/ui/ui.go --- a/modules/ui/ui.go
+++ b/modules/ui/ui.go +++ b/modules/ui/ui.go
@@ -36,7 +36,7 @@ func NewUIModule(s *session.Session) *UIModule { @@ -34,7 +34,7 @@ func getDefaultInstallBase() string {
if runtime.GOOS == "windows" {
return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
}
- return "/usr/local/share/bettercap/"
+ return "@TERMUX_PREFIX@/share/bettercap/"
} }
mod.AddParam(session.NewStringParameter("ui.basepath", func NewUIModule(s *session.Session) *UIModule {
- "/usr/local/share/bettercap/",
+ "@TERMUX_PREFIX@/local/share/bettercap/",
"",
"UI base installation path."))