feat: upgrade openssh to v10.6.1
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
c6c556c846
commit
b89e1fe7f5
3 files changed
+52
-39
No files matched your search
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -e /var/config/ssh/ssh_config ] && exit
|
||||
|
||||
mkdir -p /var/config/ssh
|
||||
|
||||
cp -a ${PREFIX}/share/config/ssh/. /var/config/ssh/
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -e /var/config/ssh/ssh_host_ed25519_key ] && exit 0
|
||||
|
||||
ssh-keygen -A
|
||||
@@ -1,62 +1,63 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("10.3.1")
|
||||
|
||||
version("10.6.1")
|
||||
description("the premier connectivity tool for remote login with the SSH protocol")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.3p1.tar.gz")
|
||||
source_managed("github://openssh/openssh-portable#V_10_6_P1")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep(f"libz-ng-dev @{arch.get_target()}")
|
||||
builddep(f"aws-lc-dev @{arch.get_target()}")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("linux-pam-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
"--sysconfdir=/var/config",
|
||||
"--disable-etc-default-login",
|
||||
"--with-linux-memlock-onfault",
|
||||
"--without-shadow",
|
||||
"--with-pam",
|
||||
"--with-pie",
|
||||
]
|
||||
)
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--libexecdir={get_prefix('openssh')}/libexec",
|
||||
f"--bindir={get_prefix('openssh')}/bin",
|
||||
f"--sbindir={get_prefix('openssh')}/bin",
|
||||
"--sysconfdir=/var/config/ssh",
|
||||
"--disable-etc-default-login",
|
||||
"--with-linux-memlock-onfault",
|
||||
"--without-shadow",
|
||||
"--with-pam",
|
||||
"--with-pam-service=remote-login",
|
||||
"--with-privsep-user=_sshd",
|
||||
"--with-default-path=/bin",
|
||||
"--with-pid-dir=/run/system",
|
||||
"--with-pie",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_client(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.makedir("libexec")
|
||||
composer.addfile("libexec/ssh-sk-helper", "libexec/ssh-sk-helper")
|
||||
composer.addfile("libexec/ssh-pkcs11-helper", "libexec/ssh-pkcs11-helper")
|
||||
def pack(composer):
|
||||
composer.add("bin")
|
||||
composer.add("libexec")
|
||||
composer.makedir("share")
|
||||
composer.add("var/config", "share/config")
|
||||
|
||||
def pack_docs(composer):
|
||||
composer.makedir("share")
|
||||
composer.add("share/man")
|
||||
|
||||
package("openssh-client")
|
||||
package("openssh")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(pack_client)
|
||||
provide("ssh")
|
||||
|
||||
|
||||
def pack_server(composer):
|
||||
composer.makedir("bin")
|
||||
composer.addfile("sbin/sshd", "bin/sshd")
|
||||
composer.makedir("libexec")
|
||||
composer.addfile("libexec/sftp-server", "libexec/sftp-server")
|
||||
composer.addfile("libexec/ssh-keysign", "libexec/ssh-keysign")
|
||||
composer.addfile("libexec/sshd-auth", "libexec/sshd-auth")
|
||||
composer.addfile("libexec/sshd-session", "libexec/sshd-session")
|
||||
|
||||
|
||||
package("openssh-server")
|
||||
dep("openssh-client (same)")
|
||||
dep("libpam @same-arch")
|
||||
on_pack(pack_server)
|
||||
provide("ssh")
|
||||
provide("sshd")
|
||||
configure_script("configure/default-config")
|
||||
configure_script("configure/hostkeys")
|
||||
on_pack(pack)
|
||||
|
||||
package("openssh-docs")
|
||||
on_pack(pack_docs)
|
||||
Reference in new issue
Block a user