From ba68d5dcd6e7ba71e099c551b3bf8fe1e99cabb3 Mon Sep 17 00:00:00 2001 From: madonuko Date: Tue, 2 Jul 2024 00:48:31 +0800 Subject: [PATCH] use pre.rhai to pre-download the tarballs from openbsd ftp servers --- anda/misc/openssh/openssh.spec | 4 ++-- anda/misc/openssh/pre.rhai | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 anda/misc/openssh/pre.rhai diff --git a/anda/misc/openssh/openssh.spec b/anda/misc/openssh/openssh.spec index d829d6fc66..891ace5f1d 100644 --- a/anda/misc/openssh/openssh.spec +++ b/anda/misc/openssh/openssh.spec @@ -57,8 +57,8 @@ Version: %{openssh_ver} Release: %{openssh_rel}%{?dist}.10 URL: http://www.openssh.com/portable.html #URL1: https://github.com/jbeverly/pam_ssh_agent_auth/ -Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz -Source1: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc +Source0: openssh-%{version}.tar.gz +Source1: openssh-%{version}.tar.gz.asc Source2: sshd.pam Source3: gpgkey-736060BA.gpg Source4: https://github.com/jbeverly/pam_ssh_agent_auth/archive/pam_ssh_agent_auth-%{pam_ssh_agent_ver}.tar.gz diff --git a/anda/misc/openssh/pre.rhai b/anda/misc/openssh/pre.rhai new file mode 100644 index 0000000000..b85989c46b --- /dev/null +++ b/anda/misc/openssh/pre.rhai @@ -0,0 +1,2 @@ +sh("wget ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz", #{ cwd: "anda/misc/openssh/" }); +sh("wget ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz.asc", #{ cwd: "anda/misc/openssh/" }); \ No newline at end of file