summaryrefslogtreecommitdiff
path: root/homebrew/openssh/.beer
blob: 3ed6c255d38be7ecf251217e4d2270fe2798c49d (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
    "name": "Openssh",
    "description": "OpenBSD freely-licensed SSH connectivity tools",
    "url": "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz",
    "mirror": "https://mirror.vdms.io/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz",
    "homepage": "https://www.openssh.com/",
    "depends": [
        {
            "depend": "pkg-config",
            "build-depend": true
        },
        {
            "depend": "ldns",
            "build-depend": false
        },
        {
            "depend": "openssl",
            "build-depend": false
        }
    ],
    "resource": [
        {
            "name": "com.openssh.sshd.sb",
            "url": "https://opensource.apple.com/source/OpenSSH/OpenSSH-209.50.1/com.openssh.sshd.sb"
        }
    ],
    "conflicts": [],
    "patches": [
        {
            "url": "https://raw.githubusercontent.com/Homebrew/patches/1860b0a74/openssh/patch-sandbox-darwin.c-apple-sandbox-named-external.diff",
            "strip": "1"
        },
        {
            "url": "https://raw.githubusercontent.com/Homebrew/patches/d8b2d8c2/openssh/patch-sshd.c-apple-sandbox-named-external.diff",
            "strip": "1"
        }
    ],
    "install": [
        "ENV.append \"CPPFLAGS\", \"-D__APPLE_SANDBOX_NAMED_EXTERNAL__\"",
        "inreplace \"sandbox-darwin.c\", \"@PREFIX@/share/openssh\", etc/\"ssh\"",
        "args = %W[",
        "--prefix=#{prefix}",
        "--sysconfdir=#{etc}/ssh",
        "--with-ldns",
        "--with-libedit",
        "--with-kerberos5",
        "--with-pam",
        "--with-ssl-dir=#{Formula[\"openssl\"].opt_prefix}",
        "]",
        "system \"./configure\", *args",
        "system \"make\"",
        "ENV.deparallelize",
        "system \"make\", \"install\"",
        "bin.install_symlink bin/\"ssh\" => \"slogin\"",
        "buildpath.install resource(\"com.openssh.sshd.sb\")",
        "(etc/\"ssh\").install \"com.openssh.sshd.sb\" => \"org.openssh.sshd.sb\""
    ],
    "version": "8.0",
    "file": "openssh.rb"
}