dev-ruby/metasploit_data_models: bump, x86
authorZero_Chaos <zerochaos@gentoo.org>
Wed, 21 Nov 2018 15:49:46 +0000 (10:49 -0500)
committerZero_Chaos <zerochaos@gentoo.org>
Wed, 21 Nov 2018 18:20:44 +0000 (13:20 -0500)
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
dev-ruby/metasploit_data_models/Manifest
dev-ruby/metasploit_data_models/metasploit_data_models-2.0.14.ebuild
dev-ruby/metasploit_data_models/metasploit_data_models-2.0.16.ebuild [new file with mode: 0644]

index 8462001201cced20d589dfef35c08c9c09b2f775..f7bee127aaac44453277b6932863745fdf95f0db 100644 (file)
@@ -1 +1,2 @@
 DIST metasploit_data_models-2.0.14.gem 182272 BLAKE2B 76162d66be5ddbad8186aef84bdc31ca06635737203f6e25dfc5d74d11775aa7ef5f0e5e5e07f5cce524e7712e484e548d56398bbae95dcc7cb93a22bca223f4 SHA512 204505fd9073eaa7c9467ef8241f0cf3167f33e68eb4e5aac6101fc0b1fa68d2ec85e11ac9ce4fb80ae3db8ba6fcc0f7f2a93dacf9735c2d4d1d92fa0a41e70b
+DIST metasploit_data_models-2.0.16.gem 182272 BLAKE2B 918c57e62552e2b3288ca24e8ff7abeb30b0b6221906890c7b2e15c674356de6861a10500735d5a912b0deefb6b378b64111bd18770c65b10dcdbc911e6439d6 SHA512 bf2c2c162d23750eceeb315b9a5ba9e8b80bf4ace9e32f8c1e97c35939338d026d640675b3e5eaf61c6897007db07e186d4d5be944dc3bca16c138f1f6ae6ada
index d810551b5a321ff8bc00433c85f7f73fcdfc369e..a79ca888643851772f406c8cb1ea0f5572f1d0b8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -24,7 +24,7 @@ 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/pg:*
                dev-ruby/postgres_ext
                >=dev-ruby/railties-4.2.6:4.2
                >=dev-ruby/recog-2.0.0:*
diff --git a/dev-ruby/metasploit_data_models/metasploit_data_models-2.0.16.ebuild b/dev-ruby/metasploit_data_models/metasploit_data_models-2.0.16.ebuild
new file mode 100644 (file)
index 0000000..92b7dea
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby24"
+
+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}
+}