aboutsummaryrefslogtreecommitdiff
path: root/extra/openssh
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-09 19:17:24 +0300
committerCem Keylan <cem@ckyln.com>2019-12-09 19:17:24 +0300
commit03423e0583057cbe5a16f8439183e2dbc0e8dd7c (patch)
tree81fe3ba69d94146f83fb5541d1fb2da0ac4eac08 /extra/openssh
downloadrepository-03423e0583057cbe5a16f8439183e2dbc0e8dd7c.tar.gz
secondary commit
Diffstat (limited to 'extra/openssh')
-rwxr-xr-xextra/openssh/build25
-rw-r--r--extra/openssh/checksums2
-rw-r--r--extra/openssh/depends2
-rw-r--r--extra/openssh/files/sshd.run3
-rw-r--r--extra/openssh/sources2
-rw-r--r--extra/openssh/version1
6 files changed, 35 insertions, 0 deletions
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