mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-22 23:01:02 +02:00
beef: 0.4.7.1 bump
This commit is contained in:
parent
c6729e4a6a
commit
701c72e2b5
2 changed files with 135 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST beef-0.4.7.0_p20180720.zip 4521994 BLAKE2B 04a3919ef3ddabe578fee19676ed7479162d621bb3c562b8e7c4db99c1fd10c9014130e4f21f961d60da0b00b51ecf73ac36c075403274898a6bfe650f5feed9 SHA512 1cbdab9386ad0e4d71f346bf2a8852ac7d24037cc04f0994ff8e27d35438b9b53692571e7f73f6253aa55fb2060213718968c2abfc0bca76a3b23d9b08ce0344
|
||||
DIST beef-0.4.7.1.tar.gz 4651305 BLAKE2B 0e8cf1774a0a23ba7c036fa0d0186d9f4b965b538e5c9beac1012cc3f1f44f72e5dd56d4595dc5ac3a62b18936e440f819a42be409f5f443ac99f97ea1395c0e SHA512 7068fb6fd31ad6aebabd1a2b777a494ea92dee398454755694e200c157c303a8b2c327b0d0a84962eb1726e4ba41a2776778ae7c3e707d8934cf104b3de45d47
|
||||
|
|
|
|||
134
www-apps/beef/beef-0.4.7.1.ebuild
Normal file
134
www-apps/beef/beef-0.4.7.1.ebuild
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
#Warning: add one ruby at a time
|
||||
USE_RUBY="ruby24"
|
||||
inherit eutils ruby-ng
|
||||
|
||||
#default fails, looks too complex
|
||||
RESTRICT="test"
|
||||
|
||||
DESCRIPTION="Browser exploitation framework"
|
||||
HOMEPAGE="http://beefproject.com/"
|
||||
#MY_COMMIT="d237c95465a1ad4065cdbdd3972b637f3f93341b"
|
||||
SRC_URI="https://github.com/beefproject/${PN}/archive/${P}.tar.gz -> ${P}.tar.gz"
|
||||
#https://github.com/beefproject/beef/archive/beef-0.4.7.1.tar.gz
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="AGPL-3"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="qrcode dns +network geoip notifications +msf +sqlite"
|
||||
|
||||
#ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
|
||||
|
||||
#we use bundler in the ebuild, it must be installed first but it's not an rdepend
|
||||
ruby_add_bdepend "dev-ruby/bundler"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/eventmachine
|
||||
www-servers/thin
|
||||
dev-ruby/sinatra:2
|
||||
dev-ruby/rack:2.0
|
||||
dev-ruby/rack-protection:2
|
||||
dev-ruby/em-websocket
|
||||
dev-ruby/uglifier:*
|
||||
dev-ruby/mime-types:*
|
||||
dev-ruby/execjs
|
||||
dev-ruby/ansi
|
||||
dev-ruby/term-ansicolor
|
||||
dev-ruby/dm-core
|
||||
dev-ruby/json:*
|
||||
dev-ruby/data_objects
|
||||
dev-ruby/rubyzip
|
||||
dev-ruby/espeak-ruby
|
||||
dev-ruby/nokogiri
|
||||
dev-ruby/rake
|
||||
|
||||
sqlite? ( dev-ruby/dm-sqlite-adapter )
|
||||
|
||||
dev-ruby/parseconfig
|
||||
dev-ruby/erubis
|
||||
dev-ruby/dm-migrations
|
||||
|
||||
msf? ( dev-ruby/msfrpc-client
|
||||
dev-ruby/xmlrpc )
|
||||
"
|
||||
#gem 'term-ansicolor', :require => 'term/ansicolor'
|
||||
|
||||
#fixme: add missing deps:
|
||||
#postgres? dm-postgres-adapter
|
||||
#mysql? dm-mysql-adapter
|
||||
#geoip? geoip
|
||||
#notifications? rushover twitter
|
||||
#dns? ( =dev-ruby/rubydns-0.7.3 )
|
||||
#qr? ( qr4r )
|
||||
|
||||
all_ruby_unpack() {
|
||||
default_src_unpack
|
||||
mv "beef-${P}" "${P}"
|
||||
}
|
||||
|
||||
#S="${WORKDIR}/all/beef-${P}/"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# epatch "${FILESDIR}/0.4.6_unbundler.patch"
|
||||
# rm {Gemfile*,.gitignore,install*,update-beef}
|
||||
rm {.gitignore,install*,update-beef}
|
||||
#as noted above, these are missing deps
|
||||
# rm -r extensions/network || die
|
||||
rm -r extensions/dns || die
|
||||
#enable metasploit
|
||||
if use msf; then
|
||||
sed -i -e '/metasploit\:/ { n ; s/false/true/ }' config.yaml || die "failed to sed"
|
||||
sed -i -e 's/55552/55553/' extensions/metasploit/config.yaml || die "failed to sed"
|
||||
sed -i -e 's/"abc123"/"secure"/' extensions/metasploit/config.yaml || die "failed to sed"
|
||||
sed -i -e "s|'osx', path: '/opt/local/msf/'|'pentoo', path: '/usr/lib/metasploit/'|" extensions/metasploit/config.yaml || die "failed to sed"
|
||||
else
|
||||
sed -i -e "/^group :ext_msf do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
#even if we pass --without=blah bundler still calculates the deps and messes us up
|
||||
if ! use test; then
|
||||
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
if ! use geoip; then
|
||||
sed -i -e "/^group :geoip do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
if ! use notifications; then
|
||||
sed -i -e "/^group :ext_notifications do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
if ! use dns; then
|
||||
sed -i -e "/^group :ext_dns do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
if ! use network; then
|
||||
sed -i -e "/^group :ext_network do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
if ! use qrcode; then
|
||||
sed -i -e "/^group :ext_qrcode do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
#not required for ruby24
|
||||
sed -i -e "/require 'msgpack'/d" core/loader.rb || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
|
||||
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R * "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
||||
dobin "${FILESDIR}/beef"
|
||||
}
|
||||
Loading…
Reference in a new issue