aboutsummaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-27 11:51:17 +0300
committerCem Keylan <cem@ckyln.com>2020-05-27 11:51:17 +0300
commit52e9250ab536b85e44135aa904da01d0dddf7ac2 (patch)
tree23be8934cc934ca0abf497ac8efebf6b2c58d9e9 /community
parent531ba391c96f9f38fc887349d7efe57e3a320823 (diff)
downloadrepository-52e9250ab536b85e44135aa904da01d0dddf7ac2.tar.gz
openssh: move to community
Diffstat (limited to 'community')
-rwxr-xr-xcommunity/openssh/build34
-rw-r--r--community/openssh/checksums2
-rw-r--r--community/openssh/depends2
-rw-r--r--community/openssh/files/sshd.run3
-rw-r--r--community/openssh/message14
-rw-r--r--community/openssh/sources2
-rw-r--r--community/openssh/version1
7 files changed, 58 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"
diff --git a/community/openssh/checksums b/community/openssh/checksums
new file mode 100644
index 00000000..a33ef353
--- /dev/null
+++ b/community/openssh/checksums
@@ -0,0 +1,2 @@
+f2befbe0472fe7eb75d23340eb17531cb6b3aac24075e2066b41f814e12387b2 openssh-8.3p1.tar.gz
+5d32a817344ac444424063d75e49afd95d7eb76d972ef5c5cfad355c8e8b1ff1 sshd.run
diff --git a/community/openssh/depends b/community/openssh/depends
new file mode 100644
index 00000000..9ee911ae
--- /dev/null
+++ b/community/openssh/depends
@@ -0,0 +1,2 @@
+libressl
+zlib
diff --git a/community/openssh/files/sshd.run b/community/openssh/files/sshd.run
new file mode 100644
index 00000000..04f7adbb
--- /dev/null
+++ b/community/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/community/openssh/message b/community/openssh/message
new file mode 100644
index 00000000..f7ad71e9
--- /dev/null
+++ b/community/openssh/message
@@ -0,0 +1,14 @@
+If you are updating openssh, and you are running
+a daemon, do not forget to restart the daemon or
+you will not be able to make any more connections.
+
+runit:
+
+ sv restart sshd
+
+
+sysmgr:
+
+ svctl restart sshd
+
+
diff --git a/community/openssh/sources b/community/openssh/sources
new file mode 100644
index 00000000..4880c516
--- /dev/null
+++ b/community/openssh/sources
@@ -0,0 +1,2 @@
+https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.3p1.tar.gz
+files/sshd.run
diff --git a/community/openssh/version b/community/openssh/version
new file mode 100644
index 00000000..e7af434a
--- /dev/null
+++ b/community/openssh/version
@@ -0,0 +1 @@
+8.3p1 1