angie(arch): prefer angie-bin (repackaged upstream .deb, instant) over source build; verified http_acme/ssl/v2/v3/realip all compiled in; fall back to aur/angie if bin unavailable

This commit is contained in:
mk 2026-07-28 05:53:43 +03:00
parent ca8f01083c
commit b653191de2

View File

@ -27,12 +27,25 @@ run_angie() {
}
_angie_arch() {
if command -v yay >/dev/null 2>&1; then
as_user yay -S --noconfirm angie 2>/dev/null \
|| as_user yay -S --noconfirm aur/angie 2>/dev/null \
|| warn "angie AUR build failed — try: yay -S angie"
if ! command -v yay >/dev/null 2>&1; then
warn "yay not available — install angie manually from AUR: yay -S angie-bin"
return
fi
# Prefer angie-bin: it repackages the upstream official Ubuntu .deb, so it's
# instant (no source compile) and carries the same compiled-in modules our
# config relies on — http_acme, http_ssl, http_v2/v3, http_realip, stream*
# (verified via the .deb's 'angie -V'). Drop back to the source 'angie'
# package only if the binary package is unavailable.
log "AUR install: angie-bin first, fall back to angie (source build)"
if as_user yay -S --noconfirm --needed angie-bin 2>/dev/null; then
ok "angie-bin installed from AUR"
return
fi
log "angie-bin unavailable/failed — building angie from source (may take a few minutes)"
if as_user yay -S --noconfirm --needed aur/angie 2>/dev/null; then
ok "angie (source) installed from AUR"
else
warn "yay not available — install angie manually from AUR: yay -S angie"
warn "angie install failed — try manually: yay -S angie-bin (or: yay -S angie)"
fi
}