26 lines
936 B
Ruby
26 lines
936 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-12-07",
|
|
:revision => "5dc941e36b8fd6925d7d8f687b429c68877f9d9a"
|
|
version "2016-12-07"
|
|
head "https://github.com/offensive-security/exploit-database.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "15a3eaa2f183504132fb142bfea3958fdde1552b49a254f0c57a3a214545fab0" => :sierra
|
|
sha256 "e80a21c90c6a192268e80985d3f951a5ab5a6cfd10db22654d77d29e74053fb0" => :el_capitan
|
|
sha256 "ae9d16f55c664ad6cd185e87927677346f9b98968368408f18a316025940bece" => :yosemite
|
|
end
|
|
|
|
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
|