Package Details: bettercap-git 2.27.1.1844.318029c-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: 7
Popularity: 0.002681
First Submitted: 2016-03-04 14:26 (UTC)
Last Updated: 2020-04-25 16:41 (UTC)

Required by (2)

Sources (1)

Latest Comments

solsticedhiver commented on 2019-10-23 21:37 (UTC)

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 (UTC)

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 (UTC)

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

Cheers!

ncoder-2 commented on 2018-04-08 14:29 (UTC)

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 (UTC) (edited on 2018-02-28 09:14 (UTC) by raulo.olapodrido)

==> 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