mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-22 23:01:02 +02:00
beef: unsuccessful attempt to bump, upstream issue, https://github.com/pentoo/pentoo-overlay/issues/296
This commit is contained in:
parent
495094e40a
commit
0771c8be4d
13 changed files with 307 additions and 3 deletions
1
dev-ruby/espeak-ruby/Manifest
Normal file
1
dev-ruby/espeak-ruby/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST espeak-ruby-1.0.4.gem 8704 BLAKE2B 0e47c9fe2774c64da327f71f2e131af9a613a01bbe2e3e3a9d7b4aaf12b94701a03eec661172df2c528a3c40c6d244e895363b9263b53980531c500d26e8c80b SHA512 09bc2eeb845464789e07f35f2dece618e013dac3f81a2cd1768244604ed641e73392518e56c714b6de56d37af7a55770712798331a6d566d4e72d47e3e64b5c6
|
||||
21
dev-ruby/espeak-ruby/espeak-ruby-1.0.4.ebuild
Normal file
21
dev-ruby/espeak-ruby/espeak-ruby-1.0.4.ebuild
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="espeak-ruby is small Ruby API for utilizing ‘espeak’ and ‘lame’ to create Text-To-Speech mp3 files"
|
||||
HOMEPAGE="https://github.com/dejan/espeak-ruby"
|
||||
SRC_URI="mirror://rubygems/${P}.gem"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
#ruby_add_rdepend "dev-ruby/nio4r:2
|
||||
# >=dev-ruby/timers-4.1 =dev-ruby/timers-4*
|
||||
#"
|
||||
2
dev-ruby/libv8/Manifest
Normal file
2
dev-ruby/libv8/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST libv8-3.16.14.19.gem 12198400 BLAKE2B 2b31436e510a363f47b0caa60cfcf8f5f96a01df59638a396c25c01ccfcc171785bb9769551dd7d6f7e26f9a28d0caa5e06b33b09af6f1f6a9dfbce747cee045 SHA512 85517d935ddd89919270053c2c888b2c9463d61d57b3cd27ce0b4fff3de9e63ad059baf98a832ecf5d145b03ef153fa091c2a72ad844dd40ad72901c9e29109e
|
||||
DIST libv8-6.7.288.46.1.gem 2244608 BLAKE2B da4858f415c79786053c8f032e704392e4abdb4bc53d030f380d4ab2916cbcf96e287769bbc5d5559f3ffd123f8f477259ef109cc67814f86ee833b7113cf615 SHA512 239d4fb4f5bdfe38e69ed4e6a356a8aaf243927bbd0300eb24784aa2a9473391c53fd3409db7ba178f33c71b281fdbb514235dbe78e9dbb7369a8eceb6128dda
|
||||
22
dev-ruby/libv8/libv8-3.16.14.19.ebuild
Normal file
22
dev-ruby/libv8/libv8-3.16.14.19.ebuild
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Distributes the V8 JavaScript engine in binary and source forms"
|
||||
HOMEPAGE="http://github.com/cowboyd/libv8"
|
||||
SRC_URI="mirror://rubygems/${P}.gem"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
#DEVELOPMENT DEPENDENCIES (3):
|
||||
#rake ~> 12
|
||||
#rake-compiler ~> 0
|
||||
#rspec ~> 3
|
||||
22
dev-ruby/libv8/libv8-6.7.288.46.1.ebuild
Normal file
22
dev-ruby/libv8/libv8-6.7.288.46.1.ebuild
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Distributes the V8 JavaScript engine in binary and source forms"
|
||||
HOMEPAGE="http://github.com/cowboyd/libv8"
|
||||
SRC_URI="mirror://rubygems/${P}.gem"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
#DEVELOPMENT DEPENDENCIES (3):
|
||||
#rake ~> 12
|
||||
#rake-compiler ~> 0
|
||||
#rspec ~> 3
|
||||
2
dev-ruby/sinatra/Manifest
Normal file
2
dev-ruby/sinatra/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST sinatra-1.2.9.gem 247296 BLAKE2B c238e09d2f361575d7af32f9f7d6db129a0ddcb7477645027ffda3aeea3684deecec0b6aa0322b503128701136f26fd309b347ffaed031da694d8fd900903462 SHA512 66d6209951e2f1ebe5016d609dd712de67e5ea8dfb4fd11abfe71aabe01877d37a39dade29a3fb9fa851d78cdfd81eea4368ac821420753ff179bc329a81657b
|
||||
DIST sinatra-2.0.3.gem 337920 BLAKE2B ede1e1b8c8b9a2b8c1e95e2ba692c7653cb010cb191db3fd9b4faf434fa0b8830f750919006f21665a96357da2610627b8928252261bea653138644125d06faa SHA512 32e9770b5e1c9d67fed1f254912679715e223fa2b34e22294a280eeb36a785070220c7f1270527fd8d6c4fbc5447883167dc1c569d4cf7301f769b51cc94edd9
|
||||
34
dev-ruby/sinatra/sinatra-1.2.9.ebuild
Normal file
34
dev-ruby/sinatra/sinatra-1.2.9.ebuild
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
# no documentation is generable, it needs hanna, which is broken
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true test"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A DSL for quickly creating web applications in Ruby with minimal effort"
|
||||
HOMEPAGE="http://www.sinatrarb.com/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="1.2"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/rack-1*:* >=dev-ruby/rack-1.5:*
|
||||
dev-ruby/backports
|
||||
>=dev-ruby/tilt-1.3.4:* <dev-ruby/tilt-3:*"
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/rack-test-0.5.6 dev-ruby/erubis dev-ruby/builder )"
|
||||
|
||||
# haml tests are optional and not yet marked for ruby20.
|
||||
#USE_RUBY="ruby20" ruby_add_bdepend "test? ( >=dev-ruby/haml-3.0 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove implicit build dependency on git.
|
||||
sed -i -e '/\(s.files\|s.test_files\|s.extra_rdoc_files\)/d' sinatra.gemspec || die
|
||||
|
||||
# Use correct rack version in tests
|
||||
# sed -i -e '1igem "rack", "~> 1.5"' test/helper.rb test/integration/app.rb || die
|
||||
}
|
||||
35
dev-ruby/sinatra/sinatra-2.0.3.ebuild
Normal file
35
dev-ruby/sinatra/sinatra-2.0.3.ebuild
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
# no documentation is generable, it needs hanna, which is broken
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true test"
|
||||
|
||||
inherit ruby-fakegem
|
||||
# versionator
|
||||
|
||||
DESCRIPTION="A DSL for quickly creating web applications in Ruby with minimal effort"
|
||||
HOMEPAGE="http://www.sinatrarb.com/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="2.0"
|
||||
#SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/rack-2*:*
|
||||
=dev-ruby/rack-protection-2.0.3
|
||||
>=dev-ruby/tilt-2:* <dev-ruby/tilt-3:*"
|
||||
#ruby_add_bdepend "test? ( >=dev-ruby/rack-test-0.5.6 dev-ruby/erubis dev-ruby/builder )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove implicit build dependency on git.
|
||||
sed -i -e '/\(s.files\|s.test_files\|s.extra_rdoc_files\)/d' sinatra.gemspec || die
|
||||
|
||||
# Use correct rack version in tests
|
||||
# sed -i -e '1igem "rack", "~> 1.5"' test/helper.rb test/integration/app.rb || die
|
||||
}
|
||||
1
dev-ruby/therubyracer/Manifest
Normal file
1
dev-ruby/therubyracer/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST therubyracer-0.12.3.gem 58880 BLAKE2B 4fbabb1a2480c4dc052af24c0dacd477ce382e82c0fbc9408aae887abfedf187677c23e89c624b0035ba332e7b11a29425fa90e905f6f441356f1403ebadc3a3 SHA512 f95083213413545cc43c631f5f57f83cc04dee884d3ae79a18c656705ad75501f6315de74f9b09f8a20d143903c06bebc873376d1a629214201fdc9a366771eb
|
||||
20
dev-ruby/therubyracer/therubyracer-0.12.3.ebuild
Normal file
20
dev-ruby/therubyracer/therubyracer-0.12.3.ebuild
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Call JavaScript code and manipulate JavaScript objects from Ruby"
|
||||
HOMEPAGE="http://github.com/cowboyd/therubyracer"
|
||||
SRC_URI="mirror://rubygems/${P}.gem"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/libv8-3.16.14*
|
||||
dev-ruby/ref"
|
||||
|
|
@ -234,7 +234,8 @@ dev-ruby/pdf-reader:2
|
|||
~dev-ruby/rack-1.5.4
|
||||
~dev-ruby/dm-sqlite-adapter-1.2.0
|
||||
~dev-ruby/data_objects-0.10.13
|
||||
~dev-ruby/sinatra-1.4.2
|
||||
=dev-ruby/sinatra:1.2
|
||||
#=dev-ruby/sinatra-contrib-1.4*
|
||||
~dev-ruby/eventmachine-1.0.8
|
||||
=dev-ruby/eventmachine-1.2.0*
|
||||
~dev-ruby/abstract-1.0.0
|
||||
|
|
@ -260,6 +261,11 @@ dev-ruby/pdf-reader:2
|
|||
~dev-ruby/sourcify-0.5.0
|
||||
~dev-ruby/tins-1.10.2
|
||||
~dev-ruby/term-ansicolor-1.6.0
|
||||
~dev-ruby/rack-protection-2.0.3
|
||||
~dev-ruby/espeak-ruby-1.0.4
|
||||
=dev-ruby/therubyracer-0.12*
|
||||
=dev-ruby/ref-2.0*
|
||||
=dev-ruby/libv8-3.16*
|
||||
|
||||
#bettercap
|
||||
~dev-ruby/network_interface-0.0.2
|
||||
|
|
@ -304,8 +310,6 @@ dev-ruby/mail:2.6
|
|||
dev-ruby/typhoeus:1
|
||||
=dev-ruby/concurrent-ruby-1.0*
|
||||
=dev-ruby/concurrent-ruby-ext-1.0*
|
||||
~dev-ruby/sinatra-contrib-1.4.6
|
||||
~dev-ruby/sinatra-1.4.7
|
||||
~dev-ruby/backports-3.6.7
|
||||
~dev-ruby/puma-2.14.0
|
||||
~dev-ruby/http_parser_rb-0.6.0
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
DIST beef-0.4.7.0.tar.gz 3345161 BLAKE2B f6a1ad064042a5d348cad47e4ba8245e26167ab4a018595ec6e631747727de7823b9552bd95fbfddbe5a82faf6ae251227166c5f5cf4699819bf83b475e25a4f SHA512 9f40f1292129c20da0ee4f88a1d899dc120a177a026d1bf5f61d49b4878ca193fcfb4000c5cd8689e64fcee4caecb30d5963561226dbe09eee7830ab2c6b9311
|
||||
DIST beef-0.4.7.0_p20180715.zip 4521502 BLAKE2B 03b0e42ce9074998c85c3fe4255eaeca8a283bea561bc536418f0873561541d47811edfbcff61032df70c759c1402392eb78796744a56b5f36c0a8376368ca1e SHA512 ccb95cd179342fabf2b22d7fc83834d4ec32dbaccaf3d9e8b6ac0d439488337a2628aadd1ac0586cef26da6cf90ed2e022116c82f4416a3d1a9a587e5dd95b3c
|
||||
|
|
|
|||
139
www-apps/beef/beef-0.4.7.0_p20180715.ebuild
Normal file
139
www-apps/beef/beef-0.4.7.0_p20180715.ebuild
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
#DANGER DANGER DANGER
|
||||
#This currently supports one ruby at a time, don't put two in here
|
||||
USE_RUBY="ruby23"
|
||||
inherit eutils ruby-ng
|
||||
|
||||
#default fails, looks too complex
|
||||
RESTRICT="test"
|
||||
|
||||
DESCRIPTION="Browser exploitation framework"
|
||||
HOMEPAGE="http://beefproject.com/"
|
||||
#SRC_URI="https://github.com/beefproject/beef/archive/${P}.tar.gz"
|
||||
MY_COMMIT="ba5f793b931ce122022f193cbd5f0de3346f438b"
|
||||
SRC_URI="https://github.com/beefproject/${PN}/archive/${MY_COMMIT}.zip -> ${P}.zip"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="AGPL-3"
|
||||
|
||||
#https://github.com/beefproject/beef/issues/1590
|
||||
#KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="qrcode dns network geoip notifications"
|
||||
|
||||
DEPEND+=""
|
||||
RDEPEND+="net-analyzer/metasploit"
|
||||
|
||||
#ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/eventmachine
|
||||
www-servers/thin
|
||||
dev-ruby/sinatra:1.2
|
||||
dev-ruby/rack:1.6
|
||||
dev-ruby/rack-protection:2
|
||||
dev-ruby/em-websocket
|
||||
dev-ruby/mime-types
|
||||
dev-ruby/uglifier
|
||||
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
|
||||
dev-ruby/therubyracer
|
||||
|
||||
dev-ruby/dm-sqlite-adapter
|
||||
|
||||
dev-ruby/parseconfig
|
||||
dev-ruby/erubis
|
||||
dev-ruby/dm-migrations
|
||||
|
||||
dev-ruby/msfrpc-client
|
||||
|
||||
dev-ruby/dm-serializer
|
||||
|
||||
"
|
||||
# dns? ( =dev-ruby/rubydns-0.7.3 )
|
||||
#gem 'term-ansicolor', :require => 'term/ansicolor'
|
||||
|
||||
|
||||
all_ruby_unpack() {
|
||||
default_src_unpack
|
||||
mv "beef-${MY_COMMIT}" "${P}"
|
||||
}
|
||||
|
||||
#S=${WORKDIR}/all/beef-${MY_COMMIT}/
|
||||
|
||||
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
|
||||
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"
|
||||
|
||||
#https://github.com/beefproject/beef/issues/1590
|
||||
# sed -i -e "/sinatra/d" Gemfile || die "sed sinatra failed"
|
||||
|
||||
#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
|
||||
|
||||
#fixme: add missing ruby packages
|
||||
if ! use notifications; then
|
||||
sed -i -e "/^group :ext_notifications do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
#fixme: add missing ruby packages
|
||||
if ! use dns; then
|
||||
sed -i -e "/^group :ext_dns do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
#fixme: add missing ruby packages
|
||||
if ! use network; then
|
||||
sed -i -e "/^group :ext_network do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
#fixme: add missing ruby packages
|
||||
if ! use qrcode; then
|
||||
sed -i -e "/^group :ext_qrcode do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
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"
|
||||
dodir /usr/sbin/
|
||||
cat <<-EOF > "${ED}"/usr/sbin/beef || die
|
||||
#!/bin/sh
|
||||
cd /usr/lib/beef
|
||||
exec ${RUBY} beef "\$@"
|
||||
EOF
|
||||
fperms +x /usr/sbin/beef
|
||||
}
|
||||
Loading…
Reference in a new issue