summaryrefslogtreecommitdiff
path: root/homebrew/sshguard/.make.sh-auto
blob: 5dd4000d7ebb909a2e2d7e7282c2398834b177ee (plain)
1
2
3
4
5
6
7
8
9
10
11
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