27 lines
939 B
Ruby
27 lines
939 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 => "2016-04-04",
|
|
:revision => "3b935016eaede0295ce1ef1cd490cb039edc236d"
|
|
version "2016-04-04"
|
|
|
|
head "https://github.com/offensive-security/exploit-database.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "356835ab83256c7501baa7a840a31eb6d3e356f877832abe133223a78b9ffc2c" => :el_capitan
|
|
sha256 "a4aa6711b28d57455361ee15eb730146d28e52505451d58ec11e09ee29cbfdd7" => :yosemite
|
|
sha256 "80259228d07538a56d0e8778900aae6a6d9bb8ade1f5112243bddb4de319001d" => :mavericks
|
|
end
|
|
|
|
def install
|
|
inreplace "searchsploit", "gitpath=\"/usr/share/exploitdb\"", "gitpath=\"#{pkgshare}\""
|
|
bin.install "searchsploit"
|
|
pkgshare.install %w[files.csv platforms .git]
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/searchsploit", "sendpage"
|
|
end
|
|
end
|