diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/metasploit-model |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/metasploit-model')
-rw-r--r-- | dev-ruby/metasploit-model/Manifest | 4 | ||||
-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, 90 insertions, 0 deletions
diff --git a/dev-ruby/metasploit-model/Manifest b/dev-ruby/metasploit-model/Manifest new file mode 100644 index 000000000000..af7b99fb11fc --- /dev/null +++ b/dev-ruby/metasploit-model/Manifest @@ -0,0 +1,4 @@ +DIST metasploit-model-2.0.3.gem 81408 SHA256 011290db16ca8c84a82652be8481dca14c34edd8b0e2c9fd69f84ae1cc210fb4 SHA512 a6d77940e6b85925cc93c57f69910fde5c8eb2458d6707847be9f5856cfceee33304209e8c7076484151d9daf1f23cfe28cb0c00abb83176b7bc6c819fb128ec WHIRLPOOL a711cd41496acd8603a7020cda9aaed8cc8c84929e7a48db2a59fbdb29c5907d3224829d0bf41c39329c23441a3e1ec0e03848bdc3ebddc05571a0f4e9753a20 +EBUILD metasploit-model-2.0.3.ebuild 1893 SHA256 fe9194517d97422e79060d58d94022cab550f92cf3b42625f732bf6c7eb3103c SHA512 3a91533f1cd24d8c0ebeec6cbf0960bb6260557820127265ca0f5176057170b7b2cf7b57bc24c1efdeb719381757eeedaea8a8400cf541cbd5e234a2bf9d3655 WHIRLPOOL c0b7e3f229ab0e581b6d28d2a34ff8547bf741da6aa7120102321dc5885e5710ea1cbf49062d5072d5d7e834c32e445e2d1082707f6e25722c3413a62a7a6a47 +MISC ChangeLog 1914 SHA256 81c72228ab117717e9c4dce6884d3eece4582089e267e5a64a440c9e0704e43f SHA512 9762cc40638639a563fb81fc2e4254c31691e1bd593abedd1fdc00b86e854358c2bdafa6eb615ea8033689268c58c7fe2ebd9b1211df9312ea34e011f552682e WHIRLPOOL f13213a903be2c898ed0c757946502645880eb14cf6afbb832521b90e2524aa0e5a7d4b6d20118f3910b072e0b72371aedda7ac794ae322eed154842e5ba0afb +MISC metadata.xml 541 SHA256 b770e53b3b12ac3c742f41f441231b32b72833eb7c0455b67a9f518c132cb8d2 SHA512 a61494f72cb863a18cf370ebfdadcda7f4f3ed54e2c9d1e4ab9cf006f26bbefd30b1f293bd3f7df5e766994b044fe27a7b4fb4d78a1c7fdac7e2380aace901cc WHIRLPOOL a84e06d22d56e69d7eee5bf1b3e250c9fb60141bbe94c3413fc11e4311559c38b84037ac9f43759f1d7733d7038870f7dde110f28331912afe45189df4946754 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..32cf654d8272 --- /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 ~x86" +#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 +} |