diff options
Diffstat (limited to 'homebrew/sshguard/.make.sh-auto')
-rw-r--r-- | homebrew/sshguard/.make.sh-auto | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/homebrew/sshguard/.make.sh-auto b/homebrew/sshguard/.make.sh-auto new file mode 100644 index 000000000..5dd4000d7 --- /dev/null +++ b/homebrew/sshguard/.make.sh-auto @@ -0,0 +1,12 @@ +pkg:setup +pkg:configure --disable-dependency-tracking --disable-silent-rules +make DESTDIR=${PKG_DEST} 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 |