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'