From 03423e0583057cbe5a16f8439183e2dbc0e8dd7c Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 9 Dec 2019 19:17:24 +0300 Subject: secondary commit --- extra/openssh/build | 25 +++++++++++++++++++++++++ extra/openssh/checksums | 2 ++ extra/openssh/depends | 2 ++ extra/openssh/files/sshd.run | 3 +++ extra/openssh/sources | 2 ++ extra/openssh/version | 1 + 6 files changed, 35 insertions(+) create mode 100755 extra/openssh/build create mode 100644 extra/openssh/checksums create mode 100644 extra/openssh/depends create mode 100644 extra/openssh/files/sshd.run create mode 100644 extra/openssh/sources create mode 100644 extra/openssh/version (limited to 'extra/openssh') diff --git a/extra/openssh/build b/extra/openssh/build new file mode 100755 index 00000000..cdd68702 --- /dev/null +++ b/extra/openssh/build @@ -0,0 +1,25 @@ +#!/bin/sh -e + +./configure \ + --prefix=/usr \ + --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" diff --git a/extra/openssh/checksums b/extra/openssh/checksums new file mode 100644 index 00000000..22451ba5 --- /dev/null +++ b/extra/openssh/checksums @@ -0,0 +1,2 @@ +02f5dbef3835d0753556f973cd57b4c19b6b1f6cd24c03445e23ac77ca1b93ff openssh-8.1p1.tar.gz +5d32a817344ac444424063d75e49afd95d7eb76d972ef5c5cfad355c8e8b1ff1 sshd.run diff --git a/extra/openssh/depends b/extra/openssh/depends new file mode 100644 index 00000000..9ee911ae --- /dev/null +++ b/extra/openssh/depends @@ -0,0 +1,2 @@ +libressl +zlib diff --git a/extra/openssh/files/sshd.run b/extra/openssh/files/sshd.run new file mode 100644 index 00000000..04f7adbb --- /dev/null +++ b/extra/openssh/files/sshd.run @@ -0,0 +1,3 @@ +#!/bin/sh +ssh-keygen -A >/dev/null 2>&1 # Will generate host keys if they don't already exist. +exec /usr/bin/sshd -D diff --git a/extra/openssh/sources b/extra/openssh/sources new file mode 100644 index 00000000..29b23857 --- /dev/null +++ b/extra/openssh/sources @@ -0,0 +1,2 @@ +https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.1p1.tar.gz +files/sshd.run diff --git a/extra/openssh/version b/extra/openssh/version new file mode 100644 index 00000000..faa64dd7 --- /dev/null +++ b/extra/openssh/version @@ -0,0 +1 @@ +8.1p1 1 -- cgit v1.2.3