From 63b4c0beba48444408ad56ff0dc44b83f92c8262 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 5 Nov 2014 12:33:44 -0600 Subject: [PATCH] Depend on metasloit-framework in optional gemspecs MSP-11578 Optional gemspecs should depend on the minimal metasploit-framework because they don't work without metasploit-framework's code. --- metasploit-framework-db.gemspec | 1 + metasploit-framework-pcap.gemspec | 2 ++ 2 files changed, 3 insertions(+) diff --git a/metasploit-framework-db.gemspec b/metasploit-framework-db.gemspec index 2cce40cc53..f66dc2505c 100644 --- a/metasploit-framework-db.gemspec +++ b/metasploit-framework-db.gemspec @@ -34,6 +34,7 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency 'metasploit-credential', '~> 0.12.0' # Database models shared between framework and Pro. spec.add_runtime_dependency 'metasploit_data_models', '~> 0.21.1' + # depend on metasploit-framewrok as the optional gems are useless with the actual code spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}" # Needed for module caching in Mdm::ModuleDetails spec.add_runtime_dependency 'pg', '>= 0.11' diff --git a/metasploit-framework-pcap.gemspec b/metasploit-framework-pcap.gemspec index 5ca038f71f..d00e9720ce 100644 --- a/metasploit-framework-pcap.gemspec +++ b/metasploit-framework-pcap.gemspec @@ -26,7 +26,9 @@ Gem::Specification.new do |spec| # no files, just dependencies spec.files = [] + # depend on metasploit-framewrok as the optional gems are useless with the actual code spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}" + # get list of network interfaces, like eth* from OS. spec.add_runtime_dependency 'network_interface', '~> 0.0.1' # For sniffer and raw socket modules spec.add_runtime_dependency 'pcaprub'