21 lines
636 B
Ruby
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-08-19",
|
|
:revision => "1a85ec2c8718c629942c4ac1dc179efa85b7d82b"
|
|
version "2017-08-19"
|
|
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
|