PKGNAME=metasploit-framework
PKGSEC=utils
PKGDEP="git inetutils libpcap libxml2 libxslt postgresql ruby ruby-bundler sqlite"
PKGDES="Penetration testing platform to discover, exploit, and validate system vulnerabilities"

ABTYPE=self

# FIXME: This is a Ruby package that does not generate debug symbols; if enabled, the following error will occur:
# ABSPLITDBG is set, but we can't find any symbol files in /var/cache/acbs/build/acbs.ed_c9fic/metasploit-framework/abdist-dbg
ABSTRIP=0

# FIXME: For architectures other than amd64 and arm64, enabling LTO optimization leads to the following issues; 
# the solution is to enable LTO optimization only for amd and arm.
# Error fragment:
#   /usr/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': 
#   undefined symbol: Init_nokogiri (LoadError)
NOLTO=1
NOLTO__AMD64=0
NOLTO__ARM64=0
