This commit is contained in:
2026-07-13 23:25:12 -03:00
parent 8a141ae86d
commit 7e0ec393a8
7 changed files with 115 additions and 110 deletions
+5 -18
View File
@@ -79,29 +79,21 @@ detect_pkg_manager() {
}
set_update_deps() {
# PAM_DEV_PKG provides <security/pam_appl.h>, needed to build the optional
# PAM auth support (cgo). Tracked separately because it is a dev header, not
# a command, so the command-based dependency check cannot detect it.
case "$PKG_MANAGER" in
apt)
PAM_DEV_PKG="libpam0g-dev"
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip "$PAM_DEV_PKG")
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip)
;;
dnf|yum)
PAM_DEV_PKG="pam-devel"
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip "$PAM_DEV_PKG")
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip)
;;
zypper)
PAM_DEV_PKG="pam-devel"
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip "$PAM_DEV_PKG")
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip)
;;
pacman)
PAM_DEV_PKG="pam"
UPDATE_DEPS=(git rsync wget ca-certificates python gcc make tar gzip "$PAM_DEV_PKG")
UPDATE_DEPS=(git rsync wget ca-certificates python gcc make tar gzip)
;;
apk)
PAM_DEV_PKG="linux-pam-dev"
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip "$PAM_DEV_PKG")
UPDATE_DEPS=(git rsync wget ca-certificates python3 gcc make tar gzip)
;;
esac
}
@@ -138,11 +130,6 @@ ensure_update_dependencies() {
if ! command -v python3 >/dev/null 2>&1; then
missing=true
fi
# The PAM auth build needs <security/pam_appl.h>; a dev header install, not a
# command, so check for the header file directly.
if [ ! -e /usr/include/security/pam_appl.h ]; then
missing=true
fi
if $missing; then
warn "One or more updater dependencies are missing. Installing them with $PKG_MANAGER..."
pkg_update