Accepting request 1077081 from Linux-PAM

- Require pam-config 2.4 or newer (postlogin read fix) (forwarded request 1077080 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/1077081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lastlog2?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2023-04-04 19:17:56 +00:00 committed by Git OBS Bridge
commit 87b04983f9
4 changed files with 25 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b1c5530d454cf9c6397fc89fdb32501132baef9807440446ce368db4eb2c8b9
size 14880

3
lastlog2-0.7.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a65c0638324ceb30de6395e80d768f1412e2e783a69f94553ee14089c9522c8c
size 15316

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Apr 3 20:34:17 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Require pam-config 2.4 or newer (postlogin read fix)
-------------------------------------------------------------------
Mon Apr 3 12:51:05 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Require current enough pam-config for silent_if= option
- Don't print lastlog messages with display manager
-------------------------------------------------------------------
Mon Apr 3 10:01:03 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Version 0.7.0
- pam_lastlog2: add silent_if= option
- pam_lastlog2: try PAM_XDISPLAY if PAM_RHOST is not set
-------------------------------------------------------------------
Wed Mar 29 12:19:00 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -18,7 +18,7 @@
%define lname liblastlog2-0
Name: lastlog2
Version: 0.6.2
Version: 0.7.0
Release: 0
Summary: Reports most recent login of users
License: BSD-2-Clause
@ -29,7 +29,8 @@ BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(pam)
BuildRequires: pkgconfig(sqlite3)
PreReq: pam-config
Requires(pre): pam-config >= 2.4
Requires(post): pam-config >= 2.4
%description
pam_lastlog2 and lastlog2 are Y2038 safe versions of the old lastlog utility. pam_lastlog2 collects all data in a sqlite3 database and lastlog2 formats and prints the contents. The username, port, and last login time will be printed.
@ -70,7 +71,7 @@ to develop applications that needs to read, write or modify the lastlog2 databas
%post
%tmpfiles_create lastlog2.conf
%service_add_post lastlog2-import.service
pam-config -a --lastlog2
pam-config -a --lastlog2 --lastlog2-silent_if=gdm,gdm-password,lxdm,lightdm,mdm,sddm
%postun
if [ "$1" -eq 0 ]; then