summaryrefslogtreecommitdiff
path: root/homebrew/sshguard/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/sshguard/.beer')
-rw-r--r--homebrew/sshguard/.beer43
1 files changed, 43 insertions, 0 deletions
diff --git a/homebrew/sshguard/.beer b/homebrew/sshguard/.beer
new file mode 100644
index 000000000..0d5d7fbbe
--- /dev/null
+++ b/homebrew/sshguard/.beer
@@ -0,0 +1,43 @@
+{
+ "name": "Sshguard",
+ "description": "Protect from brute force attacks against SSH",
+ "url": "https://downloads.sourceforge.net/project/sshguard/sshguard/2.3.1/sshguard-2.3.1.tar.gz",
+ "mirror": null,
+ "homepage": "https://www.sshguard.net/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "docutils",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"autoreconf\", \"-fiv\" if build.head?",
+ "system \"./configure\", \"--disable-dependency-tracking\",",
+ "\"--disable-silent-rules\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--sysconfdir=#{etc}\"",
+ "system \"make\", \"install\"",
+ "inreplace man8/\"sshguard.8\", \"%PREFIX%/etc/\", \"#{etc}/\"",
+ "cp \"examples/sshguard.conf.sample\", \"examples/sshguard.conf\"",
+ "inreplace \"examples/sshguard.conf\" do |s|",
+ "s.gsub! /^#BACKEND=.*$/, \"BACKEND=\\\"#{opt_libexec}/sshg-fw-pf\\\"\"",
+ "if MacOS.version >= :sierra",
+ "s.gsub! %r{^#LOGREADER=\"/usr/bin/log}, \"LOGREADER=\\\"/usr/bin/log\"",
+ "else",
+ "s.gsub! /^#FILES.*$/, \"FILES=/var/log/system.log\"",
+ "end"
+ ],
+ "version": "2.3.1",
+ "file": "sshguard.rb"
+} \ No newline at end of file