[arch-commits] Commit in sddm/trunk (PKGBUILD pam-faillock.patch)
Antonio Rojas
arojas at archlinux.org
Wed Nov 4 09:23:48 UTC 2020
Date: Wednesday, November 4, 2020 @ 09:23:48
Author: arojas
Revision: 399262
Fix autologin (FS#68520)
Added:
sddm/trunk/pam-faillock.patch
Modified:
sddm/trunk/PKGBUILD
--------------------+
PKGBUILD | 12 +++++++++---
pam-faillock.patch | 12 ++++++++++++
2 files changed, 21 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-04 09:11:34 UTC (rev 399261)
+++ PKGBUILD 2020-11-04 09:23:48 UTC (rev 399262)
@@ -4,7 +4,7 @@
pkgname=sddm
pkgver=0.19.0
-pkgrel=1
+pkgrel=2
pkgdesc='QML based X11 and Wayland display manager'
arch=(x86_64)
url='https://github.com/sddm/sddm'
@@ -18,11 +18,17 @@
'etc/pam.d/sddm-greeter')
provides=(display-manager)
source=($pkgname-$pkgver.tar.gz::"https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
- sddm.sysusers sddm.tmpfiles)
+ sddm.sysusers sddm.tmpfiles
+ pam-faillock.patch)
sha256sums=('e76da1f13d5ad5e0179e3fec57543126044339405ef19c397e105e0807bd4e41'
'9fce66f325d170c61caed57816f4bc72e9591df083e89da114a3bb16b0a0e60f'
- 'db625f2a3649d6d203e1e1b187a054d5c6263cadf7edd824774d8ace52219677')
+ 'db625f2a3649d6d203e1e1b187a054d5c6263cadf7edd824774d8ace52219677'
+ '441f441fc63c16c5dbd83411a305d88b17e50836c958677db881b9b6c13c668a')
+prepare() {
+ patch -d $pkgname-$pkgver -p1 -i ../pam-faillock.patch # Port away from deprecated pam_tally2
+}
+
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
Added: pam-faillock.patch
===================================================================
--- pam-faillock.patch (rev 0)
+++ pam-faillock.patch 2020-11-04 09:23:48 UTC (rev 399262)
@@ -0,0 +1,12 @@
+diff --git a/services/sddm-autologin.pam b/services/sddm-autologin.pam
+index 4c82048..b42991e 100755
+--- a/services/sddm-autologin.pam
++++ b/services/sddm-autologin.pam
+@@ -1,6 +1,6 @@
+ #%PAM-1.0
+ auth required pam_env.so
+-auth required pam_tally2.so file=/var/log/tallylog onerr=succeed
++auth required pam_faillock.so preauth
+ auth required pam_shells.so
+ auth required pam_nologin.so
+ auth required pam_permit.so
More information about the arch-commits
mailing list