diff options
Diffstat (limited to 'community/openssh/build')
-rwxr-xr-x | community/openssh/build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/openssh/build b/community/openssh/build new file mode 100755 index 00000000..acbcd480 --- /dev/null +++ b/community/openssh/build @@ -0,0 +1,34 @@ +#!/bin/sh -e + +# Adds optional libedit support +kiss l libedit >/dev/null 2>&1 && + libedit="--with-libedit" + +./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 \ + "$libedit" + +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 service. +install -Dm755 sshd.run "$1/etc/sv/sshd/run" +ln -s /run/runit/supervise.sshd "$1/etc/sv/sshd/supervise" + +# Install sysmgr service. +install -Dm755 sshd.run "$1/etc/sysmgr/sshd" |