summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2018-03-13 01:39:42 +0100
committeranthraxx2018-03-13 01:39:42 +0100
commitbfcc4ca4bf5b8a9018128f35e79d8ea8724954ed (patch)
tree1cb7e8f6a7cf985da5f80c8758dc10c595d6e42c
parentc695a860ad7f4efa61e8007c10aefc3d6634c982 (diff)
downloadaur-bfcc4ca4bf5b8a9018128f35e79d8ea8724954ed.tar.gz
upgpkg: bettercap-git 2.1.849.b63c20b-1
upstream release
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD33
2 files changed, 27 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 17cba6b61c0..7a19050ca52 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,26 +1,16 @@
-# Generated by mksrcinfo v8
-# Mon Apr 4 01:35:59 UTC 2016
pkgbase = bettercap-git
- pkgdesc = Complete, modular, portable and easily extensible MITM framework
- pkgver = 1.5.3.775.097478a
- pkgrel = 2
- url = https://github.com/evilsocket/bettercap
- arch = any
+ pkgdesc = Swiss army knife for network attacks and monitoring
+ pkgver = 2.1.849.b63c20b
+ pkgrel = 1
+ url = https://github.com/bettercap/bettercap
+ arch = x86_64
license = GPL3
+ makedepends = go-pie
makedepends = git
- depends = net-tools
- depends = ruby
- depends = ruby-network_interface
- depends = ruby-pcaprub
- depends = ruby-packetfu
- depends = ruby-colorize
- depends = ruby-net-dns
- depends = ruby-em-proxy
- depends = ruby-rubydns
+ depends = libpcap
provides = bettercap
conflicts = bettercap
- options = !emptydirs
- source = bettercap-git::git+https://github.com/evilsocket/bettercap
+ source = bettercap-git::git+https://github.com/bettercap/bettercap
sha512sums = SKIP
pkgname = bettercap-git
diff --git a/PKGBUILD b/PKGBUILD
index 9515157f045..eacd0944706 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,17 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=bettercap-git
-pkgver=1.5.3.775.097478a
-pkgrel=2
-pkgdesc='Complete, modular, portable and easily extensible MITM framework'
-url='https://github.com/evilsocket/bettercap'
-arch=('any')
+pkgver=2.1.849.b63c20b
+pkgrel=1
+pkgdesc='Swiss army knife for network attacks and monitoring'
+url='https://github.com/bettercap/bettercap'
+arch=('x86_64')
license=('GPL3')
-depends=('net-tools' 'ruby' 'ruby-network_interface' 'ruby-pcaprub' 'ruby-packetfu' 'ruby-colorize' 'ruby-net-dns' 'ruby-em-proxy' 'ruby-rubydns')
-makedepends=('git')
+depends=('libpcap')
+makedepends=('go-pie' 'git')
provides=('bettercap')
conflicts=('bettercap')
-options=('!emptydirs')
-source=(${pkgname}::git+https://github.com/evilsocket/bettercap)
+source=(${pkgname}::git+https://github.com/bettercap/bettercap)
sha512sums=('SKIP')
pkgver() {
@@ -21,17 +20,23 @@ pkgver() {
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare(){
+ export GOPATH="${srcdir}"
+ mkdir -p src/github.com/bettercap
+ ln -rTsf ${pkgname} src/github.com/bettercap/bettercap
+}
+
build() {
- cd ${pkgname}
- gem build bettercap.gemspec
+ cd src/github.com/bettercap/bettercap
+ export GOPATH="${srcdir}"
+ go get -v
+ go build -o bettercap
}
package() {
cd ${pkgname}
- local _gemdir="$(gem env gemdir)"
- gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" bettercap*.gem
+ install -Dm 755 ../bin/bettercap -t "${pkgdir}/usr/bin"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: ts=2 sw=2 et: