parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

bettercap-2.27.1-r1.ebuild (2762B)


      1 # Copyright 1999-2020 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 # https://data.gpo.zugaina.org/pentoo/net-analyzer/bettercap/
      5 
      6 EAPI=7
      7 
      8 # go mod vendor && grep "# g" ./vendor/modules.txt | sort
      9 EGO_PN="github.com/bettercap/bettercap"
     10 EGO_VENDOR=(
     11 	"github.com/adrianmo/go-nmea v1.1.0"
     12 	"github.com/antchfx/jsonquery v1.0.0"
     13 	"github.com/antchfx/xpath v1.1.0"
     14 	"github.com/bettercap/gatt 569d3d9372bb"
     15 	"github.com/bettercap/nrf24 aa37e6d0e0eb"
     16 	"github.com/bettercap/readline 9cec905dd291"
     17 	"github.com/bettercap/recording 3ce1dcf032e3"
     18 	"github.com/chifflier/nfqueue-go 61ca646babef"
     19 	"github.com/dustin/go-humanize v1.0.0"
     20 	"github.com/elazarl/goproxy aa519ddbe484"
     21 	"github.com/evilsocket/islazy v1.10.4"
     22 	"github.com/gobwas/glob e7a84e9525fe"
     23 	"github.com/google/go-github v17.0.0"
     24 	"github.com/google/gopacket v1.1.17"
     25 	"github.com/google/go-querystring v1.0.0"
     26 	"github.com/google/gousb 18f4c1d8a750"
     27 	"github.com/gorilla/mux v1.7.3"
     28 	"github.com/gorilla/websocket v1.4.1"
     29 	"github.com/hashicorp/mdns v1.0.1"
     30 	"github.com/inconshreveable/go-vhost 06d84117953b"
     31 	"github.com/jpillora/go-tld f16ca3b7b383"
     32 	"github.com/kr/binarydist v0.1.0"
     33 	"github.com/malfunkt/iprange v0.9.0"
     34 	"github.com/mattn/go-colorable v0.1.4"
     35 	"github.com/mattn/go-isatty v0.0.10"
     36 	"github.com/mdlayher/dhcp6 2a67805d7d0b"
     37 	"github.com/mgutz/ansi 9520e82c474b"
     38 	"github.com/mgutz/logxi aebf8a7d67ab"
     39 	"github.com/miekg/dns v1.1.22"
     40 	"github.com/mitchellh/go-homedir v1.1.0"
     41 	"github.com/pkg/errors v0.8.1"
     42 	"github.com/robertkrimen/otto 15f95af6e78d"
     43 	"github.com/tarm/serial 98f6abe2eb07"
     44 	"golang.org/x/crypto 87dc89f01550 github.com/golang/crypto"
     45 	"golang.org/x/net da9a3fd4c582 github.com/golang/net"
     46 	"golang.org/x/sys 727590c5006e github.com/golang/sys"
     47 #	"gopkg.in/sourcemap.v1 v1.0.5 github.com/go-sourcemap/sourcemap"
     48 )
     49 
     50 inherit golang-vcs-snapshot
     51 
     52 DESCRIPTION="A complete, modular, portable and easily extensible MITM framework"
     53 HOMEPAGE="https://github.com/bettercap/bettercap/"
     54 
     55 SRC_URI="https://github.com/bettercap/bettercap/archive/v${PV}.tar.gz -> ${P}.tar.gz
     56 	${EGO_VENDOR_URI}"
     57 
     58 LICENSE="GPL-3"
     59 SLOT="0"
     60 KEYWORDS="~amd64 ~arm ~x86"
     61 
     62 RESTRICT="mirror"
     63 
     64 RDEPEND="
     65 	net-libs/libpcap
     66 	net-libs/libnetfilter_queue
     67 	net-libs/libnfnetlink
     68 	virtual/libusb:*"
     69 DEPEND="${RDEPEND}
     70 	=dev-go/gopkg-sourcemap-1*
     71 	"
     72 
     73 BDEPEND="virtual/pkgconfig"
     74 
     75 src_compile() {
     76 	GOPATH="${S}:$(get_golibdir_gopath)" \
     77 		GOCACHE="${T}/go-cache" \
     78 		go build -v -work -x -ldflags="-s -w" ./... "${EGO_PN}" || die
     79 }
     80 
     81 src_install() {
     82 	GOPATH="${S}:$(get_golibdir_gopath)" \
     83 		GOCACHE="${T}/go-cache" \
     84 		go install -v -work -x -ldflags="-s -w" ./... "${EGO_PN}" || die
     85 
     86 	dosbin bin/bettercap
     87 	dodoc "src/${EGO_PN}"/{{README,ISSUE_TEMPLATE}.md,Dockerfile}
     88 }