Package Details: bettercap-git 2.21.1.1656.4713d25-1

Git Clone URL: https://aur.archlinux.org/bettercap-git.git (read-only, click to copy)
Package Base: bettercap-git
Description: Swiss army knife for network attacks and monitoring
Upstream URL: https://github.com/bettercap/bettercap
Licenses: GPL3
Conflicts: bettercap
Provides: bettercap
Submitter: anthraxx
Maintainer: anthraxx
Last Packager: anthraxx
Votes: 5
Popularity: 0.000005
First Submitted: 2016-03-04 14:26
Last Updated: 2019-03-27 20:33

Required by (2)

Sources (1)

Latest Comments

solstice commented on 2019-10-23 21:37

The PKGBUILD is broken and not working at all.

Here is a (not perfect) but working one at least:

# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>

pkgname=bettercap-git
pkgver=2.26.1786.5a6a714
pkgrel=1
pkgdesc='Swiss army knife for network attacks and monitoring'
url='https://github.com/bettercap/bettercap'
arch=('x86_64')
license=('GPL3')
depends=('libpcap' 'libnetfilter_queue' 'iproute2' 'glibc' 'libnfnetlink')
makedepends=('go' 'git' 'godep')
optdepends=('bettercap-caplets: scripts (caplets) and proxy modules')
provides=('bettercap')
conflicts=('bettercap')
source=(${pkgname}::git+https://github.com/bettercap/bettercap)
sha512sums=('SKIP')

pkgver() {
  cd ${pkgname}
  printf "%s.%s.%s" "$(git describe --tags --abbrev=0|cut -dv -f2)" \
    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd $pkgname
  sed -i 's/$(PREFIX)/$(DESTDIR)$(PREFIX)/g' Makefile
  make build
}

package() {
  cd $pkgname
  mkdir -p $pkgdir/usr/bin
  make PREFIX=/usr DESTDIR=$pkgdir/ install
  install -Dm644 README.md $pkgdir/usr/share/doc/bettercap/README.md
}

# vim: ts=2 sw=2 et:

Cyber_STX commented on 2019-04-15 11:43

Hello there,

There is an error when trying to install/update this package:

==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
# github.com/bettercap/bettercap/modules/api_rest
modules/api_rest/api_rest_controller.go:98:30: mod.record.Session.Index undefined (type *recording.Record has no field or method Index)
modules/api_rest/api_rest_controller.go:109:23: mod.record.Session.Index undefined (type *recording.Record has no field or method Index)
modules/api_rest/api_rest_controller.go:114:55: mod.record.Session.Index undefined (type *recording.Record has no field or method Index)
modules/api_rest/api_rest_controller.go:257:29: mod.record.Events.Index undefined (type *recording.Record has no field or method Index)
modules/api_rest/api_rest_controller.go:267:22: mod.record.Events.Index undefined (type *recording.Record has no field or method Index)
==> ERROR: A failure occurred in build().
    Aborting...

Cheers

Cyber_STX commented on 2018-09-19 11:12

I second the question of elimpfor, it would be really great to include the caplets. Without them, bettercap is kind of useless.

Cheers!

elimpfor commented on 2018-04-08 14:29

Any chance you could include the caplets (https://github.com/bettercap/caplets) in the install? Maybe install to /usr/share/bettercap/caplets? Thanks!

raulo.olapodrido commented on 2018-02-28 09:13

==> Beginne build()...
ERROR:  Gemspec file not found: bettercap.gemspec
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
:: Unable to build bettercap-git - makepkg exited with code: 2