diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2015-10-08 17:09:37 -0400 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2015-10-08 21:25:53 -0400 |
commit | 84f584df84b130de123ab88b5885f6538d0492f1 (patch) | |
tree | acc369b88ccc73c17e9da3f84d8680fd7d9272e7 /dev-ruby/metasploit_data_models | |
parent | sys-apps/install-xattr: drop 0.4 except for arm64, bug #550654. (diff) | |
download | gentoo-84f584df84b130de123ab88b5885f6538d0492f1.tar.gz gentoo-84f584df84b130de123ab88b5885f6538d0492f1.tar.bz2 gentoo-84f584df84b130de123ab88b5885f6538d0492f1.zip |
dev-ruby/metasploit_data_models:
Package-Manager: portage-2.2.22
Diffstat (limited to 'dev-ruby/metasploit_data_models')
-rw-r--r-- | dev-ruby/metasploit_data_models/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/metasploit_data_models/metasploit_data_models-1.2.7.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-ruby/metasploit_data_models/Manifest b/dev-ruby/metasploit_data_models/Manifest index fbf69cf4699f..089d03bc8c8a 100644 --- a/dev-ruby/metasploit_data_models/Manifest +++ b/dev-ruby/metasploit_data_models/Manifest @@ -1 +1,2 @@ DIST metasploit_data_models-1.2.5.gem 170496 SHA256 7aa426e8f0d69c7a2c00f916dfbbbd19817ec0fe5e55e2d1260fb37ff8b32e29 SHA512 b7bb1f12da67b0a052cba68e5f870bc7512baba884573a79095abd4d55539c18956615bd7097f1c1260507222f80644a2d0a65bb9f3ca7cc4c45e275ee5c9500 WHIRLPOOL d6702bdeb59e8dcac3516f2ba8be3a319348e6a08803bcc93a8beba6a76a6e3ca5ce8e46263f9e30c37f01c745ab4badd3665a3984f7ea6ae015bb4b8c3330ec +DIST metasploit_data_models-1.2.7.gem 170496 SHA256 b5c31cce2d94fed8129a23f08a54dc4dbdccfaaf302db3fb574d14c675434aa0 SHA512 8380bec869fc506cfd3e8c7f128af102e2a0bc6ea22c6a2b6e7a19576a70907c504387bd020627a45067a2faac091c3e5ff4533cd786e19a99525b6b01192c87 WHIRLPOOL 29821d7ce975f07b63aa172ea962fd69ae9e9f3b2169a6d336442deee51fc6c66ad83e2a6d827a71ede3facd478c1453036d8b3290a5ba9173602cedb0a92b5e diff --git a/dev-ruby/metasploit_data_models/metasploit_data_models-1.2.7.ebuild b/dev-ruby/metasploit_data_models/metasploit_data_models-1.2.7.ebuild new file mode 100644 index 000000000000..60a553eac0e7 --- /dev/null +++ b/dev-ruby/metasploit_data_models/metasploit_data_models-1.2.7.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby19 ruby20 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.0.9:4.0[postgres] + >=dev-ruby/activesupport-4.0.9:4.0 + dev-ruby/pg + dev-ruby/postgres_ext + >=dev-ruby/railties-4.0.9:4.0 + dev-ruby/recog + dev-ruby/arel-helpers + >=dev-ruby/metasploit-concern-1.0.0:1.0 + >=dev-ruby/metasploit-model-1.0.0:1.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} +} |