sshguard 1.6.0
Closes Homebrew/homebrew#39776. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
70dc4c6f06
commit
f4f937de82
1 changed files with 12 additions and 14 deletions
|
@ -1,9 +1,8 @@
|
|||
require 'formula'
|
||||
|
||||
class Sshguard < Formula
|
||||
homepage 'http://www.sshguard.net/'
|
||||
url 'https://downloads.sourceforge.net/project/sshguard/sshguard/sshguard-1.5/sshguard-1.5.tar.bz2'
|
||||
sha1 'f8f713bfb3f5c9877b34f6821426a22a7eec8df3'
|
||||
homepage "http://www.sshguard.net/"
|
||||
url "https://downloads.sourceforge.net/project/sshguard/sshguard/1.6.0/sshguard-1.6.0.tar.xz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/s/sshguard/sshguard_1.6.0.orig.tar.xz"
|
||||
sha256 "dce32b1fc3fb0f8d15b6c56b9822c300434faaa87240e5373c095dc22bfa07e4"
|
||||
|
||||
bottle do
|
||||
sha256 "f7a9e63682d2aeec6857103923c3b8d3337505137e7d7f465b01b28c6b59cf11" => :yosemite
|
||||
|
@ -11,6 +10,9 @@ class Sshguard < Formula
|
|||
sha256 "9d3bb789cad856e82c61d034a2ab2fe31b7dffea072066fedc176f6ed7a66ad7" => :mountain_lion
|
||||
end
|
||||
|
||||
depends_on "automake" => :build
|
||||
depends_on "autoconf" => :build
|
||||
|
||||
# Fix blacklist flag (-b) so that it doesn't abort on first usage.
|
||||
# Upstream bug report:
|
||||
# http://sourceforge.net/tracker/?func=detail&aid=3252151&group_id=188282&atid=924685
|
||||
|
@ -19,20 +21,12 @@ class Sshguard < Formula
|
|||
sha1 "68cd0910d310e4d23e7752dee1b077ccfe715c0b"
|
||||
end
|
||||
|
||||
# Fix parsing problem (chokes on "via")
|
||||
# See:
|
||||
# http://sourceforge.net/p/sshguard/mailman/message/33330543/
|
||||
patch do
|
||||
url "https://bitbucket.org/sshguard/sshguard/commits/fc01ad308c10ceb4164e23967b4713b9e7e533d7/raw/"
|
||||
sha256 "b582206fd286a89b15f41c44460de3c33386563a5c01876f85b88018feea786c"
|
||||
end
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--with-firewall=#{firewall}"
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
def firewall
|
||||
|
@ -79,4 +73,8 @@ class Sshguard < Formula
|
|||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{sbin}/sshguard -v 2>&1", 1)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue