[openssh-commits] [openssh] 01/03: Factor out sudo installation and use for dragonfly.
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Nov 16 20:35:40 AEDT 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit c7bbb3fedbfa5c290159cb73a02f33804f8c4e3b
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Sun Nov 15 17:09:36 2026 +1100
Factor out sudo installation and use for dragonfly.
---
.github/install_sudo.sh | 14 ++++++++++++++
.github/workflows/vm.yml | 7 ++-----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/.github/install_sudo.sh b/.github/install_sudo.sh
new file mode 100755
index 000000000..bb5fa8944
--- /dev/null
+++ b/.github/install_sudo.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+ver=1.8.32
+
+set -e
+
+timeout 600 ftp ftp://ftp.sudo.ws/pub/sudo/sudo-${ver}.tar.gz || \
+ ftp ftp://ftp.sudo.ws/pub/sudo/sudo-${ver}.tar.gz
+tar xfz sudo-${ver}.tar.gz
+
+cd sudo-${ver}
+./configure --sysconfdir=/usr/local/etc
+make
+make install
diff --git a/.github/workflows/vm.yml b/.github/workflows/vm.yml
index 6b6c4c4d6..bf1556737 100644
--- a/.github/workflows/vm.yml
+++ b/.github/workflows/vm.yml
@@ -34,7 +34,7 @@ jobs:
release: ${{ matrix.target }}
usesh: true
prepare: |
- timeout 600 pkg install -y sudo || pkg install -y sudo
+ .github/install_sudo.sh
pw useradd builder -m
echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >>/usr/local/etc/sudoers
mkdir -p /var/empty /usr/local/etc
@@ -99,10 +99,7 @@ jobs:
prepare: |
case $(uname -r) in
12.*|13.*)
- timeout 600 ftp ftp://ftp.sudo.ws/pub/sudo/sudo-1.8.32.tar.gz || \
- ftp ftp://ftp.sudo.ws/pub/sudo/sudo-1.8.32.tar.gz
- tar xfz sudo-1.8.32.tar.gz
- (cd sudo-1.8.32 && ./configure --sysconfdir=/usr/local/etc && make && make install)
+ .github/install_sudo.sh
;;
*)
timeout 600 pkg install -y sudo || pkg install -y sudo
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list