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