From 6305fc85cdd3d0998758528dbd864a29c0b00f00 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Sat, 30 Jul 2016 00:03:49 -0400 Subject: dev-ruby/metasploit_payloads-mettle: initial ebuild, metasploit dep, absolutely doesn't make msfconsole happy Package-Manager: portage-2.3.0 --- dev-ruby/metasploit_payloads-mettle/Manifest | 1 + dev-ruby/metasploit_payloads-mettle/metadata.xml | 14 +++++++ .../metasploit_payloads-mettle-0.0.6.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 dev-ruby/metasploit_payloads-mettle/Manifest create mode 100644 dev-ruby/metasploit_payloads-mettle/metadata.xml create mode 100644 dev-ruby/metasploit_payloads-mettle/metasploit_payloads-mettle-0.0.6.ebuild (limited to 'dev-ruby/metasploit_payloads-mettle') diff --git a/dev-ruby/metasploit_payloads-mettle/Manifest b/dev-ruby/metasploit_payloads-mettle/Manifest new file mode 100644 index 000000000000..1cb185b5b13b --- /dev/null +++ b/dev-ruby/metasploit_payloads-mettle/Manifest @@ -0,0 +1 @@ +DIST metasploit_payloads-mettle-0.0.6.gem 3259904 SHA256 b9b0a5062dc27345e23fc62f26047533d153b322b1d19b5dbae60c7deb08fc23 SHA512 c95c4774f1295e6e5953fdf2738560a2f5c3380d9a0de72dd435d475e05948cb36ca6596406c0ad7e12f7e1e7db831d6651c579458b99a252a678197874f7c34 WHIRLPOOL 7261a3efa2f5d42011a1a1c697e70d31e462c4d65316bb81b88990407ed36b36af2f8298bbbd38157bfc7301d58e5b69ea3abaee9735cab3a392cb0f7617ef92 diff --git a/dev-ruby/metasploit_payloads-mettle/metadata.xml b/dev-ruby/metasploit_payloads-mettle/metadata.xml new file mode 100644 index 000000000000..4bb41cf944a8 --- /dev/null +++ b/dev-ruby/metasploit_payloads-mettle/metadata.xml @@ -0,0 +1,14 @@ + + + + + zerochaos@gentoo.org + Rick Farina + + + + + rapid7/mettle + metasploit_payloads-mettle + + diff --git a/dev-ruby/metasploit_payloads-mettle/metasploit_payloads-mettle-0.0.6.ebuild b/dev-ruby/metasploit_payloads-mettle/metasploit_payloads-mettle-0.0.6.ebuild new file mode 100644 index 000000000000..d99fb517ae90 --- /dev/null +++ b/dev-ruby/metasploit_payloads-mettle/metasploit_payloads-mettle-0.0.6.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRAINSTALL="build" + +inherit ruby-fakegem + +DESCRIPTION="Compiled binaries for Metasploit's next-gen Meterpreter" +HOMEPAGE="https://rubygems.org/gems/metasploit_payloads-mettle" + +LICENSE="BSD" + +SLOT="${PV}" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +#no tests +RESTRICT="test strip" + +QA_PREBUILT=" + usr/lib*/ruby/gems/*/gems/${P}/build/mips-linux-muslsf/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/mips64-linux-muslsf/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/aarch64-linux-musl/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/armv5b-linux-musleabi/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/armv5l-linux-musleabi/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/i486-linux-musl/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/mipsel-linux-muslsf/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/powerpc-linux-muslsf/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/powerpc64le-linux-musl/bin/mettle + usr/lib*/ruby/gems/*/gems/${P}/build/x86_64-linux-musl/bin/mettle + " + +src_install() { + ruby-ng_src_install + #tell revdep-rebuild to ignore binaries meant for the target + dodir /etc/revdep-rebuild + cat <<-EOF > "${ED}"/etc/revdep-rebuild/99-${PN}-${SLOT} || die + #These dirs contain prebuilt binaries for running on the TARGET not the HOST + SEARCH_DIRS_MASK="/usr/lib*/ruby/gems/*/gems/${P}/build" + EOF +} -- cgit v1.2.3-65-gdbad