aboutsummaryrefslogtreecommitdiff
path: root/repos/xorg/openssh
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-29 23:15:54 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-29 23:15:54 +0800
commitae4593e20cef97c7323d522b40994a59425cd6d5 (patch)
tree7b3e8750bbbfa32e917869e325027108ee59ee85 /repos/xorg/openssh
parentb5aa76f45da627817380276080b2b8bba6e74f68 (diff)
downloadalicelinux-ae4593e20cef97c7323d522b40994a59425cd6d5.tar.gz
alicelinux-ae4593e20cef97c7323d522b40994a59425cd6d5.zip
added xorg repo
Diffstat (limited to 'repos/xorg/openssh')
-rw-r--r--repos/xorg/openssh/.files46
-rw-r--r--repos/xorg/openssh/abuild7
-rwxr-xr-xrepos/xorg/openssh/postinstall10
-rwxr-xr-xrepos/xorg/openssh/sshd.run5
4 files changed, 68 insertions, 0 deletions
diff --git a/repos/xorg/openssh/.files b/repos/xorg/openssh/.files
new file mode 100644
index 00000000..1c92dc81
--- /dev/null
+++ b/repos/xorg/openssh/.files
@@ -0,0 +1,46 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/moduli.new
+-rw-r--r-- root/root etc/ssh_config.new
+-rw-r--r-- root/root etc/sshd_config.new
+drwxr-xr-x root/root etc/sv/
+drwxr-xr-x root/root etc/sv/sshd/
+-rwxr-xr-x root/root etc/sv/sshd/run.new
+lrwxrwxrwx root/root etc/sv/sshd/supervise -> ../../../run/runit/supervise.sshd
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/scp
+-rwxr-xr-x root/root usr/bin/sftp
+-rwxr-xr-x root/root usr/bin/ssh
+-rwxr-xr-x root/root usr/bin/ssh-add
+-rwxr-xr-x root/root usr/bin/ssh-agent
+-rwxr-xr-x root/root usr/bin/ssh-keygen
+-rwxr-xr-x root/root usr/bin/ssh-keyscan
+drwxr-xr-x root/root usr/libexec/
+-rwxr-xr-x root/root usr/libexec/sftp-server
+-rws--x--x root/root usr/libexec/ssh-keysign
+-rwxr-xr-x root/root usr/libexec/ssh-pkcs11-helper
+-rwxr-xr-x root/root usr/libexec/ssh-sk-helper
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/sshd
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/scp.1.gz
+-rw-r--r-- root/root usr/share/man/man1/sftp.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ssh-add.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ssh-agent.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ssh-keygen.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ssh-keyscan.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ssh.1.gz
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/moduli.5.gz
+-rw-r--r-- root/root usr/share/man/man5/ssh_config.5.gz
+-rw-r--r-- root/root usr/share/man/man5/sshd_config.5.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/sftp-server.8.gz
+-rw-r--r-- root/root usr/share/man/man8/ssh-keysign.8.gz
+-rw-r--r-- root/root usr/share/man/man8/ssh-pkcs11-helper.8.gz
+-rw-r--r-- root/root usr/share/man/man8/ssh-sk-helper.8.gz
+-rw-r--r-- root/root usr/share/man/man8/sshd.8.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/empty/
diff --git a/repos/xorg/openssh/abuild b/repos/xorg/openssh/abuild
new file mode 100644
index 00000000..3d67e42e
--- /dev/null
+++ b/repos/xorg/openssh/abuild
@@ -0,0 +1,7 @@
+name=openssh
+version=9.7p1
+release=1
+source="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz
+ sshd.run"
+sv="sshd.run"
+build_opt="--without-zlib-version-check --with-privsep-user=nobody --with-privsep-path=/var/empty"
diff --git a/repos/xorg/openssh/postinstall b/repos/xorg/openssh/postinstall
new file mode 100755
index 00000000..981ce237
--- /dev/null
+++ b/repos/xorg/openssh/postinstall
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+getent group sshd >/dev/null || groupadd -g 50 sshd
+getent passwd messagebus >/dev/null || \
+ useradd -c 'sshd PrivSep' \
+ -d /var/lib/sshd \
+ -g sshd \
+ -s /bin/false \
+ -u 50 sshd
+
diff --git a/repos/xorg/openssh/sshd.run b/repos/xorg/openssh/sshd.run
new file mode 100755
index 00000000..8079fc4b
--- /dev/null
+++ b/repos/xorg/openssh/sshd.run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+ssh-keygen -A >/dev/null 2>&1 # Will generate host keys if they don't already exist
+[ -r conf ] && . ./conf
+exec sshd -D $OPTS