void-packages/srcpkgs/i3lock-color/template
Frank Steinborn c8387ba7e8 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.
2019-08-25 21:10:40 +02:00

29 lines
845 B
Bash

# Template file for 'i3lock-color'
pkgname=i3lock-color
version=2.12
revision=2
wrksrc="${pkgname}-${version}.c"
build_style=gnu-configure
hostmakedepends="pkg-config automake"
makedepends="libev-devel cairo-devel pam-devel libxkbcommon-devel xcb-util-devel
xcb-util-image-devel xcb-util-xrm-devel libjpeg-turbo-devel"
short_desc="Screenlocker forked from i3lock with more features"
maintainer="jtalowell <jtalowell@protonmail.com>"
license="MIT"
homepage="https://github.com/PandorasFox/i3lock-color"
distfiles="https://github.com/PandorasFox/i3lock-color/archive/${version}.c.tar.gz"
checksum=c2ba4cfa51fee3fd2cab439805d213d8614407d93cf8eecbd4e6fa5cb4c9b7a3
conf_files="/etc/pam.d/i3lock"
conflicts="i3lock"
pre_configure() {
autoreconf -i
}
pre_build() {
vsed -i 's:login:system-auth:' pam/i3lock
}
post_install() {
vlicense LICENSE
}