bettercap: update to 2.25

This commit is contained in:
Henrik Grimler 2019-10-03 22:15:37 +02:00 committed by Yaksh Bariya
parent b5fe96c428
commit e012fbbde8
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
3 changed files with 12 additions and 35 deletions

View File

@ -1,10 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://www.bettercap.org 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_VERSION=2.24.1 TERMUX_PKG_VERSION=2.25
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=590cef2b2b24fd9f67c57c8cb19ab8ff08b11d43bfc23b468013ddad907bb8b8 TERMUX_PKG_SHA256=955b29946774bb12a757006d5518bc20e7174092c5a37f771ab1cb8d21223b6a
TERMUX_PKG_DEPENDS="libpcap, libusb" TERMUX_PKG_DEPENDS="libpcap, libusb"
# 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,16 +1,14 @@
diff --git a/caplets/env.go b/caplets/env.go --- ./caplets/env.go.orig 2019-10-03 21:17:37.044291360 +0200
index 4c803b6..eccfe7e 100644 +++ ./caplets/env.go 2019-10-03 21:18:21.894201252 +0200
--- a/caplets/env.go @@ -19,7 +19,7 @@
+++ b/caplets/env.go if runtime.GOOS == "windows" {
@@ -11,7 +11,7 @@ const ( return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
EnvVarName = "CAPSPATH" }
Suffix = ".cap" - return "/usr/local/share/bettercap/"
InstallArchive = "https://github.com/bettercap/caplets/archive/master.zip" + return "@TERMUX_PREFIX@/local/share/bettercap/"
- InstallBase = "/usr/local/share/bettercap/" }
+ InstallBase = "@TERMUX_PREFIX@/local/share/bettercap/"
)
var ( 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 f5d6950..4059c6c 100644
--- a/modules/ui/ui.go --- a/modules/ui/ui.go

View File

@ -1,20 +0,0 @@
--- ../caplets.go.orig 2019-09-12 07:01:02.402741887 +0200
+++ ./modules/caplets/caplets.go 2019-09-12 07:01:26.121229567 +0200
@@ -120,7 +120,7 @@
}
}
- out, err := os.Create("/tmp/caplets.zip")
+ out, err := os.Create("@TERMUX_PREFIX@/tmp/caplets.zip")
if err != nil {
return err
}
@@ -140,7 +140,7 @@
mod.Info("installing caplets to %s ...", caplets.InstallPath)
- if _, err = zip.Unzip("/tmp/caplets.zip", caplets.InstallBase); err != nil {
+ if _, err = zip.Unzip("@TERMUX_PREFIX@/tmp/caplets.zip", caplets.InstallBase); err != nil {
return err
}