metasploit-framework-pcap.gemspec 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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. Gem::Specification.new do |spec|
  14. spec.name = 'metasploit-framework-pcap'
  15. spec.version = Metasploit::Framework::GEM_VERSION
  16. spec.authors = ['Metasploit Hackers']
  17. spec.email = ['metasploit-hackers@lists.sourceforge.net']
  18. spec.summary = 'metasploit-framework packet capture dependencies'
  19. spec.description = 'Gems needed to capture packets in metasploit-framework'
  20. spec.homepage = 'https://www.metasploit.com'
  21. spec.license = 'BSD-3-clause'
  22. # no files, just dependencies
  23. spec.files = []
  24. # depend on metasploit-framewrok as the optional gems are useless with the actual code
  25. spec.add_runtime_dependency 'metasploit-framework', "= #{spec.version}"
  26. # get list of network interfaces, like eth* from OS.
  27. spec.add_runtime_dependency 'network_interface', '~> 0.0.1'
  28. # For sniffer and raw socket modules
  29. spec.add_runtime_dependency 'pcaprub'
  30. end