diff --git a/net-analyzer/bettercap/Manifest b/net-analyzer/bettercap/Manifest index 232ab7bfc..6449add97 100644 --- a/net-analyzer/bettercap/Manifest +++ b/net-analyzer/bettercap/Manifest @@ -1 +1,2 @@ DIST bettercap-1.6.1.tar.gz 769848 SHA256 a9cf8dc94aba25e88ac6d175f5ef4d8b1d9ba7111aeccffc46959534722d0dbb SHA512 3a3377bb8d60f594e7896b190b7a165d540234e742477c2564a985ac8ba1e9927a49ee102ceff2ee5f2d763d6cee391f044ebf152c86259eca1aff0762792331 WHIRLPOOL 114f0374dafc514fd3a9a064a539946ce1a88d9a02e806db39c9c388f6bdb1828f73f624b5201b7bb9dc1b467ca0a89e7f4e65f5216fa18bd2ad9172113b0af9 +DIST bettercap-1.6.2.tar.gz 781103 SHA256 1b364d7e31be5fa7b5f93eefe76763ad7bd4ac0b7b6bb4af05483157580a9cb9 SHA512 b1398cb74ae8c04ede38ef3e01ab538693e86c85316327525b2cd30df5c8c4b389bf616c2a1096836dd69209aa7fea500a08ebfae5445c64d9b5b5e1bacdf485 WHIRLPOOL 98da4af5837126ddcc1b66f7ff37dc129b7a8330912ec35a42a9b59931dcae8bc70b96f338cea50cc4795af86ea5fe3368152337c1547850f1d478475f1c9509 diff --git a/net-analyzer/bettercap/bettercap-1.6.2.ebuild b/net-analyzer/bettercap/bettercap-1.6.2.ebuild new file mode 100644 index 000000000..b4e8c06a4 --- /dev/null +++ b/net-analyzer/bettercap/bettercap-1.6.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23" + +inherit multilib ruby-fakegem + +DESCRIPTION="A complete, modular, portable and easily extensible MITM framework" +HOMEPAGE="https://github.com/evilsocket/bettercap/" +SRC_URI="https://github.com/evilsocket/bettercap/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT=0 +KEYWORDS="~amd64" + +ruby_add_bdepend "dev-ruby/bundler" + +ruby_add_rdepend " + =dev-ruby/colorize-0.8* + =dev-ruby/net-dns-0.8* + dev-ruby/network_interface + >=dev-ruby/packetfu-1.1.10:* + dev-ruby/pcaprub:0.12 + =dev-ruby/em-proxy-0.1* + =dev-ruby/rubydns-2.0* +" + +#https://github.com/evilsocket/bettercap/issues/412 +all_ruby_prepare() { + sed -e "s|'rubydns', '~> 1.0', '>= 1.0.3'|'rubydns'|" -i bettercap.gemspec +} + +each_ruby_prepare() { + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die +} + +# FIXME: +# install bettercap binary into /usr/sbin