mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 12:56:23 +03:00
38 lines
1.7 KiB
Bash
Executable File
38 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=openssh
|
|
workdir=openssh-portable-94eb6858efecc1b4f02d8a6bd35e149f55c814c8
|
|
version=9.0-94eb685
|
|
files="https://github.com/openssh/openssh-portable/archive/94eb6858efecc1b4f02d8a6bd35e149f55c814c8.tar.gz openssh-9.0-94eb685.tar.gz 8a6bfb4c21d32f4e82d6d7734cd68585337cdd57428a2799295e1b1e72c332b5"
|
|
auth_type=sha256
|
|
depends=("zlib" "openssl")
|
|
useconfigure=true
|
|
use_fresh_config_sub=true
|
|
configopts=("--prefix=/usr/local" "--disable-utmp" "--disable-strip" "--sysconfdir=/etc/ssh" "--with-ssl-dir=${SERENITY_INSTALL_ROOT}/usr/local/lib")
|
|
|
|
export LDFLAGS="-lcrypt -lcore"
|
|
|
|
pre_configure() {
|
|
run autoreconf
|
|
}
|
|
|
|
install() {
|
|
# Can't make keys outside of Serenity since ssh-keygen is built for Serenity.
|
|
run make DESTDIR="${SERENITY_INSTALL_ROOT}" "${installopts[@]}" install-nokeys
|
|
|
|
if command -v ssh-keygen &>/dev/null; then
|
|
mkdir -p "${SERENITY_INSTALL_ROOT}/etc/ssh"
|
|
if [ ! -e "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_rsa_key" ]; then
|
|
ssh-keygen -f "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_rsa_key" -C serenity -N "" -t rsa
|
|
fi
|
|
if [ ! -e "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_dsa_key" ]; then
|
|
ssh-keygen -f "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_dsa_key" -C serenity -N "" -t dsa
|
|
fi
|
|
if [ ! -e "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_ecdsa_key" ]; then
|
|
ssh-keygen -f "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_ecdsa_key" -C serenity -N "" -t ecdsa -b 521
|
|
fi
|
|
if [ ! -e "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_ed25519_key" ]; then
|
|
ssh-keygen -f "${SERENITY_INSTALL_ROOT}/etc/ssh/ssh_host_ed25519_key" -C serenity -N "" -t ed25519
|
|
fi
|
|
fi
|
|
}
|