Files
gtk-ahfail/packaging/aur/ahfail.install
T
Asger Geel Weirsøe 79bb0e41d5 Build everything in one cargo run, and package for the AUR
Four cargo builds with four target directories compiled the GTK and
GStreamer bindings four times; one build with a shared target directory
takes a package build from about an hour to about seven minutes.
Adds the ahfail binary and /etc/pam.d/ahfail to the install, the
update_check option, an AUR PKGBUILD (offline build after cargo fetch
--locked) and a tag-triggered workflow that publishes it and mirrors the
PKGBUILD to the tarballz index.

Claude-Session: https://claude.ai/code/session_012LCTmU2ewo8tnM1dByYAoG
2026-09-30 19:18:21 +02:00

30 lines
875 B
Plaintext

_ahfail_msg() {
cat <<'MSG'
==> ahfail is its own screen locker and uses its own PAM service (/etc/pam.d/ahfail).
Nothing in your other PAM files has been changed.
Check your setup: ahfail doctor
See the effect safely: ahfail test
Lock the screen: ahfail
Lock automatically:
Wayland: swayidle -w timeout 300 'ahfail' before-sleep 'ahfail'
X11: xss-lock -- ahfail
The old PAM hook (auth optional .../libahfail_pam.so in e.g. /etc/pam.d/i3lock)
is no longer needed with `ahfail`. Remove that line yourself if you added it.
MSG
}
post_install() {
_ahfail_msg
}
post_upgrade() {
# Only when coming from before 0.10.0, when ahfail became its own locker;
# repeating the message on every update would just teach people to skip it.
if (( $(vercmp "$2" 0.10.0) < 0 )); then
_ahfail_msg
fi
}