From c8387ba7e8e801f9d30b06cddb70b7075274c2d3 Mon Sep 17 00:00:00 2001 From: Frank Steinborn Date: Sun, 25 Aug 2019 13:52:01 +0200 Subject: [PATCH] i3lock-color: fix pam configuration file pam_tally(i3lock:auth): Error opening /var/log/faillog for update pam_tally doesn't have the necessary privileges to write to /var/log/faillog. Replace 'login' with 'system-auth' to fix the issue. Fix taken from Gentoo. --- srcpkgs/i3lock-color/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/i3lock-color/template b/srcpkgs/i3lock-color/template index 1ec44f0c738..07bd585c69d 100644 --- a/srcpkgs/i3lock-color/template +++ b/srcpkgs/i3lock-color/template @@ -1,7 +1,7 @@ # Template file for 'i3lock-color' pkgname=i3lock-color version=2.12 -revision=1 +revision=2 wrksrc="${pkgname}-${version}.c" build_style=gnu-configure hostmakedepends="pkg-config automake" @@ -20,6 +20,10 @@ pre_configure() { autoreconf -i } +pre_build() { + vsed -i 's:login:system-auth:' pam/i3lock +} + post_install() { vlicense LICENSE }