mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
70 lines
1.7 KiB
Bash
70 lines
1.7 KiB
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="5"
|
|
|
|
USE_RUBY="ruby19"
|
|
inherit ruby-fakegem eutils
|
|
|
|
DESCRIPTION="Browser exploitation framework"
|
|
HOMEPAGE="http://beefproject.com/"
|
|
SRC_URI="https://github.com/beefproject/beef/archive/${P}.tar.gz"
|
|
|
|
SLOT="0"
|
|
LICENSE="AGPL-3"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND+=""
|
|
RDEPEND+="net-analyzer/metasploit"
|
|
|
|
#ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
|
|
|
|
ruby_add_rdepend "(
|
|
=dev-ruby/eventmachine-1.0.3*
|
|
www-servers/thin
|
|
=dev-ruby/sinatra-1.4.2*
|
|
=dev-ruby/rack-1.5.2*
|
|
=dev-ruby/em-websocket-0.3*
|
|
>=dev-ruby/jsmin-1.0.1
|
|
=dev-ruby/uglifier-2.5*
|
|
dev-ruby/ansi
|
|
dev-ruby/data_objects
|
|
dev-ruby/dm-core
|
|
dev-ruby/dm-migrations
|
|
dev-ruby/dm-sqlite-adapter
|
|
dev-ruby/erubis
|
|
dev-ruby/json
|
|
dev-ruby/msfrpc-client
|
|
dev-ruby/parseconfig
|
|
dev-ruby/rubyzip:1
|
|
dev-ruby/sqlite3
|
|
dev-ruby/term-ansicolor
|
|
dev-ruby/twitter )"
|
|
|
|
S="${WORKDIR}/${P}"
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
#upstream smoked something here
|
|
mv "beef-${P}" "${P}"
|
|
cd "${S}"
|
|
einfo `pwd`
|
|
}
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/0.4.4.8_unbundler.patch"
|
|
rm {Gemfile*,.gitignore,install*,update-beef}
|
|
#enable metasploit
|
|
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"
|
|
}
|
|
|
|
src_install() {
|
|
dodir /usr/$(get_libdir)/${PN}
|
|
cp -R * "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
|
dosbin "${FILESDIR}"/beef
|
|
}
|