homebrew-core/Formula/exploitdb.rb
2017-09-10 12:33:28 +02:00

21 lines
636 B
Ruby

class Exploitdb < Formula
desc "The official Exploit Database"
homepage "https://www.exploit-db.com/"
url "https://github.com/offensive-security/exploit-database.git",
:tag => "2017-09-10",
:revision => "8ab6c39fe1ae2b28ac6b1e430c91e8d4beb00f07"
version "2017-09-10"
head "https://github.com/offensive-security/exploit-database.git"
bottle :unneeded
def install
inreplace "searchsploit", "gitpath=\"/opt/exploit-database\"", "gitpath=\"#{pkgshare}\""
bin.install "searchsploit"
pkgshare.install %w[files.csv platforms .git]
end
test do
system "#{bin}/searchsploit", "sendpage"
end
end