metasploit-framework-full.gemspec 1.6 KB

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