forked from semios/semios-packages
Merge pull request 'feat: add package openssh' (#47) from sisungo/semios-packages:openssh into master
Reviewed-on: semios/semios-packages#47
This commit is contained in:
@@ -0,0 +1,55 @@
|
|||||||
|
from lib import cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("10.3.1")
|
||||||
|
source_url("https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.3p1.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--prefix=/",
|
||||||
|
"--sysconfdir=/var/config",
|
||||||
|
"--disable-etc-default-login",
|
||||||
|
"--with-linux-memlock-onfault",
|
||||||
|
"--without-shadow",
|
||||||
|
"--with-pam",
|
||||||
|
"--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")
|
||||||
|
|
||||||
|
|
||||||
|
package("openssh-client")
|
||||||
|
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)
|
||||||
Reference in New Issue
Block a user