summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2016-06-12 18:12:22 -0400
committerZero_Chaos <zerochaos@gentoo.org>2016-06-13 00:36:48 -0400
commit794c15e915640daf3edd3cc71433049d93894ab9 (patch)
treeac003aaa25e303d7f8f9adf82426149834f781f8 /dev-ruby/metasploit_data_models
parentdev-ruby/metasploit-model: bump (diff)
downloadgentoo-794c15e915640daf3edd3cc71433049d93894ab9.tar.gz
gentoo-794c15e915640daf3edd3cc71433049d93894ab9.tar.bz2
gentoo-794c15e915640daf3edd3cc71433049d93894ab9.zip
dev-ruby/metasploit_data_models: bump
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-ruby/metasploit_data_models')
-rw-r--r--dev-ruby/metasploit_data_models/Manifest1
-rw-r--r--dev-ruby/metasploit_data_models/metasploit_data_models-2.0.0.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-ruby/metasploit_data_models/Manifest b/dev-ruby/metasploit_data_models/Manifest
index abaf0e82e1da..b384e3ed89b9 100644
--- a/dev-ruby/metasploit_data_models/Manifest
+++ b/dev-ruby/metasploit_data_models/Manifest
@@ -1,2 +1,3 @@
DIST metasploit_data_models-1.2.10.gem 171008 SHA256 9360ed8701d22eef77a819f1ca81daf03aae6d604e7f98efe097dc907e6f0e4a SHA512 f6f7e53a83b8e30df3dfd2f926e5d3df3f007a136f60abe58e1d683918c6cf1b17eba7e3172d83161858e8a9f1ad9d62c17e8769e543140e0286c809e6dcb60c WHIRLPOOL 013f53d51c717f0176da89613cae91de2c10847e91e83304b462c9d130117230c4db5112501f1c6ce959e8804931963a418cc338eb6f4f2a9eda970d9778ad31
DIST metasploit_data_models-1.2.9.gem 171008 SHA256 77f7e49fa88b7f3e98cfc651e4434ee3138357ab9501b002a2ac56d10977fecc SHA512 aa8edbb29336a2a2c606866476d9e9bd8235ef86d3598b4cc15f2b929c5f499586e61b6c3ae8c2d64d4c22c07d2b37545b2f7f9483bf58f983c16cd1f851cf02 WHIRLPOOL 1372139c5c7f391ae670d7ca83d5ea78aaacd9ad7ea2bd19bb17ca2830413a8e43e64c5839342eb1ac9e7ab0df1d997fee2be8a4a7ffb09075ec4176a15f6f3e
+DIST metasploit_data_models-2.0.0.gem 177152 SHA256 b5f32aeb00cab511c94212b7fa1b42631278d4766ab7b05f1c4fdf8e3c3655bb SHA512 4ff18ba09fe58e5846b745152739a6602fc144ca68240901f18791f7c6ffacc0a1d621fda222c86960ca59cd3034ef2fda4fc85dead669837e3c0a7c2ddc3f1d WHIRLPOOL 407460ac990f257a80c89c56463aef91ea48070d52225fc2116500ce822d5c5eb2880bd1fb21cb65a3ea3a0a725906dbe525cce5d18527030294ace776265a91
diff --git a/dev-ruby/metasploit_data_models/metasploit_data_models-2.0.0.ebuild b/dev-ruby/metasploit_data_models/metasploit_data_models-2.0.0.ebuild
new file mode 100644
index 000000000000..daffe9e4f301
--- /dev/null
+++ b/dev-ruby/metasploit_data_models/metasploit_data_models-2.0.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby21"
+
+inherit ruby-fakegem
+
+RUBY_FAKEGEM_EXTRAINSTALL="app config db script spec"
+
+DESCRIPTION="The database layer for Metasploit"
+HOMEPAGE="https://github.com/rapid7/metasploit_data_models"
+SRC_URI="mirror://rubygems/${P}.gem"
+
+LICENSE="BSD"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm ~x86"
+RESTRICT=test
+#IUSE="development test"
+IUSE=""
+
+RDEPEND="${RDEPEND} !dev-ruby/metasploit_data_models:0"
+
+ruby_add_rdepend "
+ >=dev-ruby/activerecord-4.2.6:4.2[postgres]
+ >=dev-ruby/activesupport-4.2.6:4.2
+ dev-ruby/pg
+ dev-ruby/postgres_ext
+ >=dev-ruby/railties-4.2.6:4.2
+ >=dev-ruby/recog-2.0.0:*
+ dev-ruby/arel-helpers
+ >=dev-ruby/metasploit-concern-2.0.0
+ >=dev-ruby/metasploit-model-2.0.0
+ <dev-ruby/thor-2.0"
+
+ruby_add_bdepend "dev-ruby/bundler"
+
+all_ruby_prepare() {
+ [ -f Gemfile.lock ] && rm Gemfile.lock
+ #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
+ #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
+}
+
+all_ruby_install() {
+ ruby_fakegem_binwrapper mdm_console mdm_console-${SLOT}
+}