summaryrefslogtreecommitdiff
path: root/homebrew/sshguard/.beer
blob: 0d5d7fbbe6801b179a95e080ea0879bc335963f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"
}