summaryrefslogtreecommitdiff
path: root/homebrew/zabbix/.beer
blob: baeb9316273a4f3cf7d35b01a142e94bae1e068a (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
{
    "name": "Zabbix",
    "description": "Availability and monitoring solution",
    "url": "https://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/4.2.0/zabbix-4.2.0.tar.gz",
    "mirror": null,
    "homepage": "https://www.zabbix.com/",
    "depends": [
        {
            "depend": "openssl",
            "build-depend": false
        },
        {
            "depend": "pcre",
            "build-depend": false
        }
    ],
    "resource": [],
    "conflicts": [],
    "patches": [],
    "install": [
        "sdk = MacOS::CLT.installed? ? \"\" : MacOS.sdk_path",
        "args = %W[",
        "--disable-dependency-tracking",
        "--prefix=#{prefix}",
        "--sysconfdir=#{etc}/zabbix",
        "--enable-agent",
        "--with-iconv=#{sdk}/usr",
        "--with-libpcre=#{Formula[\"pcre\"].opt_prefix}",
        "--with-openssl=#{Formula[\"openssl\"].opt_prefix}",
        "]",
        "if MacOS.version == :el_capitan && MacOS::Xcode.version >= \"8.0\"",
        "inreplace \"configure\", \"clock_gettime(CLOCK_REALTIME, &tp);\",",
        "\"undefinedgibberish(CLOCK_REALTIME, &tp);\"",
        "end",
        "system \"./configure\", *args",
        "system \"make\", \"install\""
    ],
    "version": "4.2.0",
    "file": "zabbix.rb"
}