metasploit-payloads-2.0.19.ebuild

This commit is contained in:
blshkv 2020-10-12 21:56:21 +08:00
parent 8c6ef3c421
commit e77b434cf4
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 45 additions and 1 deletions

View file

@ -1,3 +1,3 @@
DIST metasploit-payloads-2.0.12.gem 12241920 BLAKE2B 5ca5acfbfe60aafe6c043b7946c4c7a2d75475326c797b3984ffc78310d6df226b21b0db9d5760bdd833508b3df362ebbd70fd73d9c458176ced0a085b4c916b SHA512 d4817806d6843207d05f888832d6f6d555816d29e5fe4edfac4b7395958962860ab004d7431fdb2f5501d1f71e4f8504fdb231a1afc655f05964a5caa6732d01
DIST metasploit-payloads-2.0.14.gem 12244992 BLAKE2B ac151cafcc697ded61a441eb09adc5e367cfcb3c70d9036540f0c3fa806886ab3f282e1442e8d3e925b1c29d5d3de3a49e18823f1a07e8eb4a6747afcef59054 SHA512 b536a0c0a7cd22072c5136b95d900896d78ec4cf4310d47a483cc28b51060daccc1cc59c97bfe21d7168c7e8a786c62138f873547d64164039acaa6f332a431b
DIST metasploit-payloads-2.0.16.gem 12245504 BLAKE2B e8fc47289c89238fbfcf36ad1eef7b5ea874eb179f9e4deda4dedf133d64987499d8a18d0feda5d0bc20f80688d79ecf4ad3c5f190c8c72f647e50bd6cdd5474 SHA512 ee33c7df9a7154bf3062e0ce108fcfb9276a233864836156888c9fb12f2efa4303170cb9628ac4aebbb7ebe6c4b0e26bc6b9b476eb0b976996c21cabea8bc744
DIST metasploit-payloads-2.0.19.gem 12245504 BLAKE2B 8953e854cf3973213658518c24a53b14de5f6ac5d9471380a373ff4840280b39e6a4d677f4ac5e0c575d8d81a224bd11cc52321293ca4f3aac9d80185958f749 SHA512 c813e2d327c0e06b26d2f95a249b0128a1dbfc2c6926057f7c02d3b8bae72b983354a2986bd2843d1137673e450ed936119f3c65fe00555bcef1fb82f6469fe0

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
}