2014-11-05 17:20:09 +01:00
|
|
|
# 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'
|
2014-12-19 18:37:23 +01:00
|
|
|
require 'metasploit/framework/rails_version_constraint'
|
2014-11-05 17:20:09 +01:00
|
|
|
|
|
|
|
Gem::Specification.new do |spec|
|
2014-11-05 19:40:31 +01:00
|
|
|
spec.name = 'metasploit-framework-full'
|
2014-11-05 17:20:09 +01:00
|
|
|
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'
|
2014-11-07 00:07:48 +01:00
|
|
|
spec.description = 'Gems needed to access the PostgreSQL database in metasploit-framework'
|
2014-11-05 17:20:09 +01:00
|
|
|
spec.homepage = 'https://www.metasploit.com'
|
|
|
|
spec.license = 'BSD-3-clause'
|
|
|
|
|
|
|
|
# no files, just dependencies
|
|
|
|
spec.files = []
|
|
|
|
|
|
|
|
metasploit_framework_version_constraint = "= #{spec.version}"
|
|
|
|
|
2014-12-19 20:54:13 +01:00
|
|
|
spec.add_runtime_dependency 'rails', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
|
2014-11-05 17:20:09 +01:00
|
|
|
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
|