aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-01-29 01:08:35 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-01-29 01:08:35 +0800
commit280e0a4c3824e219cbed9bfa93a9f5c832b76d4a (patch)
treed04edee9fd6e6747188f55a694381e1fb48282af
parentbf6ca59aae7d92c9c7a6ebdc34a74c40f6b574f2 (diff)
downloadalicelinux-280e0a4c3824e219cbed9bfa93a9f5c832b76d4a.tar.gz
alicelinux-280e0a4c3824e219cbed9bfa93a9f5c832b76d4a.zip
openssh: moved from xorg to extra
-rw-r--r--repos/extra/openssh/.checksum2
-rw-r--r--repos/extra/openssh/.files47
-rw-r--r--repos/extra/openssh/abuild8
-rwxr-xr-xrepos/extra/openssh/postinstall10
-rwxr-xr-xrepos/extra/openssh/sshd.run5
5 files changed, 72 insertions, 0 deletions
diff --git a/repos/extra/openssh/.checksum b/repos/extra/openssh/.checksum
new file mode 100644
index 00000000..473a69bb
--- /dev/null
+++ b/repos/extra/openssh/.checksum
@@ -0,0 +1,2 @@
+4cb4d97b991b5593df23d723d455d89e86608df39454d6a734bbf06478130984 openssh-9.9p1.tar.gz
+4012d0f90ad02ef57f7688b61d249061b7065e0b0fe7fcb7dd2d519cc9541a3c sshd.run
diff --git a/repos/extra/openssh/.files b/repos/extra/openssh/.files
new file mode 100644
index 00000000..70968087
--- /dev/null
+++ b/repos/extra/openssh/.files
@@ -0,0 +1,47 @@
+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
+-rwxr-xr-x root/root usr/libexec/sshd-session
+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/extra/openssh/abuild b/repos/extra/openssh/abuild
new file mode 100644
index 00000000..46314c92
--- /dev/null
+++ b/repos/extra/openssh/abuild
@@ -0,0 +1,8 @@
+name=openssh
+version=9.9p1
+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"
+export CFLAGS="$CFLAGS -Wno-error=incompatible-pointer-types"
diff --git a/repos/extra/openssh/postinstall b/repos/extra/openssh/postinstall
new file mode 100755
index 00000000..981ce237
--- /dev/null
+++ b/repos/extra/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/extra/openssh/sshd.run b/repos/extra/openssh/sshd.run
new file mode 100755
index 00000000..8079fc4b
--- /dev/null
+++ b/repos/extra/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