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-02", :revision => "a5cd225af0e33df78eb3f3a97852ec69e577162f" version "2016-12-02" head "https://github.com/offensive-security/exploit-database.git" bottle do cellar :any_skip_relocation sha256 "ce8a3728ff5e56bf485cd14ee821702bddb8b6366025603339041ba0c740ab47" => :sierra sha256 "ad0a0c1f1015916a153cf22d87f5c2cbfad9dd23a31ccbbb4179a44c77b33143" => :el_capitan sha256 "88f3e751c03563f7f09b6c4d2770ee6694600de2e469d1cf8b9169fd1269f534" => :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