SHA256
1
0
forked from pool/lastlog2

- Version 0.5.0

- Import old lastlog data

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/lastlog2?expand=0&rev=15
This commit is contained in:
Thorsten Kukuk 2023-03-17 17:17:20 +00:00 committed by Git OBS Bridge
parent d713699d47
commit 6b0b96ddd6
4 changed files with 19 additions and 4 deletions

View File

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

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

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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 17 17:16:54 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Version 0.5.0
- Import old lastlog data
-------------------------------------------------------------------
Fri Mar 17 13:33:38 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -18,7 +18,7 @@
%define lname liblastlog2-0
Name: lastlog2
Version: 0.0.1
Version: 0.5.0
Release: 0
Summary: Reports most recent login of users
License: BSD-2-Clause
@ -61,14 +61,22 @@ to develop applications that needs to read, write or modify the lastlog2 databas
%check
%meson_test
%pre
%service_add_pre lastlog2-import.service
%preun
%service_del_preun lastlog2-import.service
%post
%tmpfiles_create lastlog2.conf
%service_add_post lastlog2-import.service
pam-config -a --lastlog2
%postun
if [ "$1" -eq 0 ]; then
pam-config -d --lastlog2
fi
%service_del_postun lastlog2-import.service
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
@ -76,6 +84,7 @@ fi
%files
%license LICENSE
%{_bindir}/lastlog2
%{_unitdir}/lastlog2-import.service
%{_tmpfilesdir}/lastlog2.conf
%{_pam_moduledir}/pam_lastlog2.so
%ghost %{_localstatedir}/lib/lastlog