homebrew-core/Formula/pulledpork.rb
2016-06-07 02:28:43 +01:00

51 lines
1.7 KiB
Ruby

class Pulledpork < Formula
desc "Snort rule management"
homepage "https://github.com/shirkdog/pulledpork"
url "https://pulledpork.googlecode.com/files/pulledpork-0.7.0.tar.gz"
sha256 "f60c005043850bb65a72582b9d6d68a7e7d51107f30f2b3fc67e607c995aa1a8"
revision 1
head "https://github.com/shirkdog/pulledpork.git"
bottle do
cellar :any
sha256 "1ed9d60f5b61b10dcbaee64a412880d18f4a8b383a970058ae8fcddabf70d97f" => :el_capitan
sha256 "df5100e17ef491d1cf9a01b472af6793b557c11e634aa03e070550a43e632ca6" => :yosemite
sha256 "df4b7616a783b56d557e86c65a376be78dbc3df8075f9589a5b255888dce3aad" => :mavericks
end
depends_on "openssl"
resource "Switch" do
url "https://cpan.metacpan.org/authors/id/C/CH/CHORNY/Switch-2.17.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Switch-2.17.tar.gz"
sha256 "31354975140fe6235ac130a109496491ad33dd42f9c62189e23f49f75f936d75"
end
resource "Crypt::SSLeay" do
url "https://cpan.metacpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz"
mirror "http://search.cpan.org/CPAN/authors/id/N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz"
sha256 "f5d34f813677829857cf8a0458623db45b4d9c2311daaebe446f9e01afa9ffe8"
end
def install
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
resources.each do |r|
r.stage do
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
system "make"
system "make", "install"
end
end
chmod 0755, "pulledpork.pl"
bin.install "pulledpork.pl"
bin.env_script_all_files(libexec/"bin", :PERL5LIB => ENV["PERL5LIB"])
doc.install Dir["doc/*"]
(etc/"pulledpork").install Dir["etc/*"]
end
test do
assert_match version.to_s, shell_output("#{bin}/pulledpork.pl -V")
end
end