diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/metasploit-model | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/metasploit-model')
-rw-r--r-- | dev-ruby/metasploit-model/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/metasploit-model/metadata.xml | 14 | ||||
-rw-r--r-- | dev-ruby/metasploit-model/metasploit-model-2.0.3.ebuild | 72 |
3 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/metasploit-model/Manifest b/dev-ruby/metasploit-model/Manifest new file mode 100644 index 000000000000..ea1fbab9c880 --- /dev/null +++ b/dev-ruby/metasploit-model/Manifest @@ -0,0 +1,3 @@ +DIST metasploit-model-2.0.3.gem 81408 BLAKE2B e62074efbdd66fc951b4c304d9c0adbf54b631bf0e343658b395e76bf4783db8a0186f375ce2650110b2200b805832ae25cd81779d894c1b7475a07d3041b35a SHA512 a6d77940e6b85925cc93c57f69910fde5c8eb2458d6707847be9f5856cfceee33304209e8c7076484151d9daf1f23cfe28cb0c00abb83176b7bc6c819fb128ec +EBUILD metasploit-model-2.0.3.ebuild 1888 BLAKE2B bf26f289c0edaa5d3439c62c34d16748c8d9bc90ad7fe34ea21f674201f3c1207bfa76a7e0aa6289932fd14f1689f3162fab66322e0f49998f7f4d1f34c5fb8d SHA512 fed2f4dd07f83b5c2037b5625c22aaedff446bd25a32205231d6d99e51ef4bd57992b46c00152285aacd777a4253e8e5754b4e5bbf2c31cbedc69fc68a7ee0d4 +MISC metadata.xml 541 BLAKE2B 5cbf1dc5abd33de9b63c4b70eceaa58cc2e9b4d4fbf4ebae04ee5ad769c3a419ae7c5e3f5508370f88fc2b3f44e13c5de0ba782322173142211e92a3c713f5b7 SHA512 a61494f72cb863a18cf370ebfdadcda7f4f3ed54e2c9d1e4ab9cf006f26bbefd30b1f293bd3f7df5e766994b044fe27a7b4fb4d78a1c7fdac7e2380aace901cc diff --git a/dev-ruby/metasploit-model/metadata.xml b/dev-ruby/metasploit-model/metadata.xml new file mode 100644 index 000000000000..3534a5dd3a91 --- /dev/null +++ b/dev-ruby/metasploit-model/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zerochaos@gentoo.org</email> + <name>Rick Farina</name> + </maintainer> +<longdescription lang="en"> +Common code, such as validators and mixins, that are shared between ActiveModels in metasploit-framework and ActiveRecords in metasploit_data_models +</longdescription> + <upstream> + <remote-id type="github">rapid7/metasploit-model</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/metasploit-model/metasploit-model-2.0.3.ebuild b/dev-ruby/metasploit-model/metasploit-model-2.0.3.ebuild new file mode 100644 index 000000000000..8ffc7598d3c7 --- /dev/null +++ b/dev-ruby/metasploit-model/metasploit-model-2.0.3.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23" + +inherit ruby-fakegem versionator + +RUBY_FAKEGEM_EXTRAINSTALL="app config script spec" + +DESCRIPTION="Common code, such as validators and mixins" +HOMEPAGE="https://github.com/rapid7/metasploit-model" +SRC_URI="mirror://rubygems/${P}.gem" + +LICENSE="BSD" +SLOT="$(get_version_component_range 1-2)" +KEYWORDS="~amd64 ~arm" +#IUSE="development test" +RESTRICT=test +IUSE="" + +RDEPEND="${RDEPEND} !dev-ruby/metasploit-model:0" + +ruby_add_rdepend ">=dev-ruby/railties-4.2.6:4.2 + >=dev-ruby/activesupport-4.2.6:4.2 + >=dev-ruby/activemodel-4.2.6:4.2" +# development? ( dev-ruby/bundler +# dev-ruby/rake +# dev-ruby/i18n +# dev-ruby/multi_json +# dev-ruby/builder +# dev-ruby/erubis +# dev-ruby/journey +# dev-ruby/rack +# dev-ruby/rack-cache +# dev-ruby/rack-test +# dev-ruby/hike +# dev-ruby/tilt +# dev-ruby/sprockets:* +# dev-ruby/actionpack:4.0 +# dev-ruby/json +# dev-ruby/rack-ssl:* +# dev-ruby/rdoc +# dev-ruby/thor +# dev-ruby/redcarpet +# <dev-ruby/yard-0.8.7.4 )" + +ruby_add_bdepend "dev-ruby/bundler" + +all_ruby_prepare() { + [ -f Gemfile.lock ] && rm Gemfile.lock + #For now, we don't support development or testing at all + #if ! use development; then + sed -i -e "/^group :development do/,/^end$/d" Gemfile || die + sed -i -e "/s.add_development_dependency/d" "${PN}".gemspec || die + sed -i -e "/spec.add_development_dependency/d" "${PN}".gemspec || die + #fi + #if ! use test; then + sed -i -e "/^group :test do/,/^end$/d" Gemfile || die + #fi + #if ! use test && ! use development; then + sed -i -e "/^group :development, :test do/,/^end$/d" Gemfile || die + #fi +} + +each_ruby_prepare() { + if [ -f Gemfile ] + then + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die + fi +} |