Accepting request 1077011 from home:kukuk:cleanup

- Require current enough pam-config for silent_if= option
- Don't print lastlog messages with display manager

OBS-URL: https://build.opensuse.org/request/show/1077011
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/lastlog2?expand=0&rev=25
This commit is contained in:
Thorsten Kukuk 2023-04-03 13:58:38 +00:00 committed by Git OBS Bridge
parent d30e7692ac
commit b3ae143297
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
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>

View File

@ -29,7 +29,8 @@ BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(pam)
BuildRequires: pkgconfig(sqlite3)
PreReq: pam-config
Requires(pre): pam-config >= 2.3
Requires(post): pam-config >= 2.3
%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