aboutsummaryrefslogtreecommitdiff
path: root/extra/openssh/build
blob: 8680ddb14e955e1907a45457ffa00ef8f2b0a204 (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
#!/bin/sh -e

./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --datadir=/usr/share/openssh \
    --sysconfdir=/etc/ssh \
    --without-selinux \
    --with-privsep-user=nobody \
    --with-mantype=doc \
    --without-rpath \
    --disable-strip \
    --with-ssl-engine \
    --with-pid-dir=/run \
    --disable-wtmp \
    --disable-utmp

make
make DESTDIR="$1" install

install -m 755 contrib/ssh-copy-id "$1/usr/bin/ssh-copy-id"
install -m 644 contrib/ssh-copy-id.1 "$1/usr/share/man/man8/ssh-copy-id.1"

# Install runit services.
install -Dm 755 sshd.run "$1/etc/sv/sshd/run"
ln -s /run/runit/supervise.sshd "$1/etc/sv/sshd/supervise"