From 52e9250ab536b85e44135aa904da01d0dddf7ac2 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 27 May 2020 11:51:17 +0300 Subject: openssh: move to community --- community/openssh/build | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 community/openssh/build (limited to 'community/openssh/build') 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" -- cgit v1.2.3