aboutsummaryrefslogtreecommitdiff
path: root/src/tesserae/openssh.nim
blob: 26c58dd119991deee418dfa5444a0eb73d4055b4 (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
import .. / lapis

tessera "openssh":
  source: "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.0p1.tar.gz"
  patches: @[""]
  dependencies: @[""]
  build: @[
    "install -v -g sys -m700 -d /var/lib/sshd",
    "groupadd -g 50 sshd",
    """
    useradd  -c 'sshd PrivSep' \
         -d /var/lib/sshd  \
         -g sshd           \
         -s /bin/false     \
         -u 50 sshd
    """,
    """
    ./configure --prefix=/usr                        \
            --sysconfdir=/etc/ssh                    \
            --with-privsep-path=/var/lib/sshd        \
            --with-default-path=/usr/bin             \
            --with-superuser-path=/usr/sbin:/usr/bin \
            --with-pid-dir=/run
    """,
    "make",
    "make install",
    "install -v -m755    contrib/ssh-copy-id /usr/bin",
    """
    install -v -m644    contrib/ssh-copy-id.1 \
                        /usr/share/man/man1
    """,
    "install -v -m755 -d /usr/share/doc/openssh-10.0p1",
    """
    install -v -m644    INSTALL LICENCE OVERVIEW README* \
                    /usr/share/doc/openssh-10.0p1
    """
  ]
  result: "ssh"
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.