Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/metasploit_payloads-mettle/
Date: Sat, 30 Jul 2016 04:07:22
Message-Id: 1469851612.6305fc85cdd3d0998758528dbd864a29c0b00f00.zerochaos@gentoo
1 commit: 6305fc85cdd3d0998758528dbd864a29c0b00f00
2 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 30 04:03:49 2016 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 04:06:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6305fc85
7
8 dev-ruby/metasploit_payloads-mettle: initial ebuild, metasploit dep, absolutely doesn't make msfconsole happy
9
10 Package-Manager: portage-2.3.0
11
12 dev-ruby/metasploit_payloads-mettle/Manifest | 1 +
13 dev-ruby/metasploit_payloads-mettle/metadata.xml | 14 +++++++
14 .../metasploit_payloads-mettle-0.0.6.ebuild | 48 ++++++++++++++++++++++
15 3 files changed, 63 insertions(+)
16
17 diff --git a/dev-ruby/metasploit_payloads-mettle/Manifest b/dev-ruby/metasploit_payloads-mettle/Manifest
18 new file mode 100644
19 index 0000000..1cb185b
20 --- /dev/null
21 +++ b/dev-ruby/metasploit_payloads-mettle/Manifest
22 @@ -0,0 +1 @@
23 +DIST metasploit_payloads-mettle-0.0.6.gem 3259904 SHA256 b9b0a5062dc27345e23fc62f26047533d153b322b1d19b5dbae60c7deb08fc23 SHA512 c95c4774f1295e6e5953fdf2738560a2f5c3380d9a0de72dd435d475e05948cb36ca6596406c0ad7e12f7e1e7db831d6651c579458b99a252a678197874f7c34 WHIRLPOOL 7261a3efa2f5d42011a1a1c697e70d31e462c4d65316bb81b88990407ed36b36af2f8298bbbd38157bfc7301d58e5b69ea3abaee9735cab3a392cb0f7617ef92
24
25 diff --git a/dev-ruby/metasploit_payloads-mettle/metadata.xml b/dev-ruby/metasploit_payloads-mettle/metadata.xml
26 new file mode 100644
27 index 0000000..4bb41cf
28 --- /dev/null
29 +++ b/dev-ruby/metasploit_payloads-mettle/metadata.xml
30 @@ -0,0 +1,14 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>zerochaos@g.o</email>
36 + <name>Rick Farina</name>
37 + </maintainer>
38 + <longdescription lang="en">
39 + </longdescription>
40 + <upstream>
41 + <remote-id type="github">rapid7/mettle</remote-id>
42 + <remote-id type="rubygems">metasploit_payloads-mettle</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 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
47 new file mode 100644
48 index 0000000..d99fb51
49 --- /dev/null
50 +++ b/dev-ruby/metasploit_payloads-mettle/metasploit_payloads-mettle-0.0.6.ebuild
51 @@ -0,0 +1,48 @@
52 +# Copyright 1999-2016 Gentoo Foundation
53 +# Distributed under the terms of the GNU General Public License v2
54 +# $Id$
55 +
56 +EAPI=5
57 +
58 +USE_RUBY="ruby20 ruby21 ruby22"
59 +
60 +RUBY_FAKEGEM_TASK_DOC=""
61 +
62 +RUBY_FAKEGEM_EXTRAINSTALL="build"
63 +
64 +inherit ruby-fakegem
65 +
66 +DESCRIPTION="Compiled binaries for Metasploit's next-gen Meterpreter"
67 +HOMEPAGE="https://rubygems.org/gems/metasploit_payloads-mettle"
68 +
69 +LICENSE="BSD"
70 +
71 +SLOT="${PV}"
72 +KEYWORDS="~amd64 ~arm ~x86"
73 +IUSE=""
74 +
75 +#no tests
76 +RESTRICT="test strip"
77 +
78 +QA_PREBUILT="
79 + usr/lib*/ruby/gems/*/gems/${P}/build/mips-linux-muslsf/bin/mettle
80 + usr/lib*/ruby/gems/*/gems/${P}/build/mips64-linux-muslsf/bin/mettle
81 + usr/lib*/ruby/gems/*/gems/${P}/build/aarch64-linux-musl/bin/mettle
82 + usr/lib*/ruby/gems/*/gems/${P}/build/armv5b-linux-musleabi/bin/mettle
83 + usr/lib*/ruby/gems/*/gems/${P}/build/armv5l-linux-musleabi/bin/mettle
84 + usr/lib*/ruby/gems/*/gems/${P}/build/i486-linux-musl/bin/mettle
85 + usr/lib*/ruby/gems/*/gems/${P}/build/mipsel-linux-muslsf/bin/mettle
86 + usr/lib*/ruby/gems/*/gems/${P}/build/powerpc-linux-muslsf/bin/mettle
87 + usr/lib*/ruby/gems/*/gems/${P}/build/powerpc64le-linux-musl/bin/mettle
88 + usr/lib*/ruby/gems/*/gems/${P}/build/x86_64-linux-musl/bin/mettle
89 + "
90 +
91 +src_install() {
92 + ruby-ng_src_install
93 + #tell revdep-rebuild to ignore binaries meant for the target
94 + dodir /etc/revdep-rebuild
95 + cat <<-EOF > "${ED}"/etc/revdep-rebuild/99-${PN}-${SLOT} || die
96 + #These dirs contain prebuilt binaries for running on the TARGET not the HOST
97 + SEARCH_DIRS_MASK="/usr/lib*/ruby/gems/*/gems/${P}/build"
98 + EOF
99 +}