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)