metasploit-payloads-2.0.14.ebuild

This commit is contained in:
blshkv 2020-09-29 15:12:35 +08:00
parent 5c3ac0ce0b
commit bbb4da4a2f
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 45 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST metasploit-payloads-2.0.12.gem 12241920 BLAKE2B 5ca5acfbfe60aafe6c043b7946c4c7a2d75475326c797b3984ffc78310d6df226b21b0db9d5760bdd833508b3df362ebbd70fd73d9c458176ced0a085b4c916b SHA512 d4817806d6843207d05f888832d6f6d555816d29e5fe4edfac4b7395958962860ab004d7431fdb2f5501d1f71e4f8504fdb231a1afc655f05964a5caa6732d01
DIST metasploit-payloads-2.0.14.gem 12244992 BLAKE2B ac151cafcc697ded61a441eb09adc5e367cfcb3c70d9036540f0c3fa806886ab3f282e1442e8d3e925b1c29d5d3de3a49e18823f1a07e8eb4a6747afcef59054 SHA512 b536a0c0a7cd22072c5136b95d900896d78ec4cf4310d47a483cc28b51060daccc1cc59c97bfe21d7168c7e8a786c62138f873547d64164039acaa6f332a431b

View file

@ -0,0 +1,44 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby25 ruby26"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRAINSTALL="data"
inherit ruby-fakegem
DESCRIPTION="Compiled binaries for Metasploit's Meterpreter"
HOMEPAGE="https://rubygems.org/gems/metasploit-payloads"
LICENSE="BSD"
SLOT="${PV}"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
#no tests
RESTRICT="test strip"
QA_PREBUILT="
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/msflinker_linux_x86.bin
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_sniffer.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_networkpug.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/meterpreter/ext_server_stdapi.lso
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/armeabi/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/mips/libndkstager.so
usr/lib*/ruby/gems/*/gems/${PN}-${SLOT}/data/android/libs/x86/libndkstager.so
"
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/${PN}-${SLOT}/data/android/libs"
EOF
}