From 713578aea7cc5abb768ea6ba96fef9531b86772f Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 5 Nov 2014 10:20:09 -0600 Subject: [PATCH] metasploit-framework-full.gemspec MSP-11578 metasploit-framework-full depends on the minimal metasploit-framework and all optional dependency gemspec: metasploit-framework-db and metasploit-framework-pcap. --- metasploit-framework-full.gemspec | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 metasploit-framework-full.gemspec diff --git a/metasploit-framework-full.gemspec b/metasploit-framework-full.gemspec new file mode 100644 index 0000000000..7c4594c371 --- /dev/null +++ b/metasploit-framework-full.gemspec @@ -0,0 +1,34 @@ +# coding: utf-8 + +# During build, the Gemfile is temporarily moved and +# we must manually define the project root +if ENV['MSF_ROOT'] + lib = File.realpath(File.expand_path('lib', ENV['MSF_ROOT'])) +else + # have to use realpath as metasploit-framework is often loaded through a symlink and tools like Coverage and debuggers + # require realpaths. + lib = File.realpath(File.expand_path('../lib', __FILE__)) +end + +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'metasploit/framework/version' + +Gem::Specification.new do |spec| + spec.name = 'metasploit-framework-db' + spec.version = Metasploit::Framework::GEM_VERSION + spec.authors = ['Metasploit Hackers'] + spec.email = ['metasploit-hackers@lists.sourceforge.net'] + spec.summary = 'metasploit-framework with all optional dependencies' + spec.description = 'Gems needed to access the PostgreSQL database anin metasploit-framework' + spec.homepage = 'https://www.metasploit.com' + spec.license = 'BSD-3-clause' + + # no files, just dependencies + spec.files = [] + + metasploit_framework_version_constraint = "= #{spec.version}" + + spec.add_runtime_dependency 'metasploit-framework', metasploit_framework_version_constraint + spec.add_runtime_dependency 'metasploit-framework-db', metasploit_framework_version_constraint + spec.add_runtime_dependency 'metasploit-framework-pcap', metasploit_framework_version_constraint +end