Add openbsd netcat to script/linux (#21478)

- Follow-up to: https://github.com/zed-industries/zed/pull/20751

openbsd-netcat is required for interactive SSH Remoting prompts
(password, passphrase, 2fa, etc).
This commit is contained in:
Peter Tripp 2024-12-03 20:27:12 +00:00 committed by GitHub
parent 731e6d31f6
commit 165d50ff5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,7 @@ if [[ -n $apt ]]; then
cmake cmake
clang clang
jq jq
netcat-openbsd
git git
curl curl
gettext-base gettext-base
@ -84,12 +85,14 @@ if [[ -n $dnf ]] || [[ -n $yum ]]; then
tar tar
) )
# perl used for building openssl-sys crate. See: https://docs.rs/openssl/latest/openssl/ # perl used for building openssl-sys crate. See: https://docs.rs/openssl/latest/openssl/
# openbsd-netcat is unavailable in RHEL8/9 (and nmap-ncat doesn't support sockets)
if grep -qP '^ID="(fedora)' /etc/os-release; then if grep -qP '^ID="(fedora)' /etc/os-release; then
deps+=( deps+=(
perl-FindBin perl-FindBin
perl-IPC-Cmd perl-IPC-Cmd
perl-File-Compare perl-File-Compare
perl-File-Copy perl-File-Copy
netcat
mold mold
) )
elif grep -qP '^ID="(rhel|rocky|alma|centos|ol)' /etc/os-release; then elif grep -qP '^ID="(rhel|rocky|alma|centos|ol)' /etc/os-release; then
@ -120,7 +123,7 @@ if [[ -n $dnf ]] || [[ -n $yum ]]; then
fi fi
fi fi
$maysudo $pkg_cmd install -y "${deps[@]}" $maysudo "$pkg_cmd" install -y "${deps[@]}"
finalize finalize
exit 0 exit 0
fi fi
@ -145,6 +148,7 @@ if [[ -n $zyp ]]; then
libzstd-devel libzstd-devel
make make
mold mold
netcat-openbsd
openssl-devel openssl-devel
sqlite3-devel sqlite3-devel
tar tar
@ -169,6 +173,7 @@ if [[ -n $pacman ]]; then
wayland wayland
libgit2 libgit2
libxkbcommon-x11 libxkbcommon-x11
openbsd-netcat
openssl openssl
zstd zstd
pkgconf pkgconf
@ -198,6 +203,7 @@ if [[ -n $xbps ]]; then
libxcb-devel libxcb-devel
libxkbcommon-devel libxkbcommon-devel
libzstd-devel libzstd-devel
openbsd-netcat
openssl-devel openssl-devel
wayland-devel wayland-devel
vulkan-loader vulkan-loader
@ -222,6 +228,7 @@ if [[ -n $emerge ]]; then
media-libs/alsa-lib media-libs/alsa-lib
media-libs/fontconfig media-libs/fontconfig
media-libs/vulkan-loader media-libs/vulkan-loader
net-analyzer/openbsd-netcat
x11-libs/libxcb x11-libs/libxcb
x11-libs/libxkbcommon x11-libs/libxkbcommon
sys-devel/mold sys-devel/mold