Skip to content

Commit 713578a

Browse files
committed
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.
1 parent a3829b8 commit 713578a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

metasploit-framework-full.gemspec

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# coding: utf-8
2+
3+
# During build, the Gemfile is temporarily moved and
4+
# we must manually define the project root
5+
if ENV['MSF_ROOT']
6+
lib = File.realpath(File.expand_path('lib', ENV['MSF_ROOT']))
7+
else
8+
# have to use realpath as metasploit-framework is often loaded through a symlink and tools like Coverage and debuggers
9+
# require realpaths.
10+
lib = File.realpath(File.expand_path('../lib', __FILE__))
11+
end
12+
13+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
14+
require 'metasploit/framework/version'
15+
16+
Gem::Specification.new do |spec|
17+
spec.name = 'metasploit-framework-db'
18+
spec.version = Metasploit::Framework::GEM_VERSION
19+
spec.authors = ['Metasploit Hackers']
20+
spec.email = ['[email protected]']
21+
spec.summary = 'metasploit-framework with all optional dependencies'
22+
spec.description = 'Gems needed to access the PostgreSQL database anin metasploit-framework'
23+
spec.homepage = 'https://www.metasploit.com'
24+
spec.license = 'BSD-3-clause'
25+
26+
# no files, just dependencies
27+
spec.files = []
28+
29+
metasploit_framework_version_constraint = "= #{spec.version}"
30+
31+
spec.add_runtime_dependency 'metasploit-framework', metasploit_framework_version_constraint
32+
spec.add_runtime_dependency 'metasploit-framework-db', metasploit_framework_version_constraint
33+
spec.add_runtime_dependency 'metasploit-framework-pcap', metasploit_framework_version_constraint
34+
end

0 commit comments

Comments
 (0)