From 6b0b96ddd637019b97d434e60d2cf31459905ccad11e93b964846a1745ac9cc5 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Fri, 17 Mar 2023 17:17:20 +0000 Subject: [PATCH] - Version 0.5.0 - Import old lastlog data OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/lastlog2?expand=0&rev=15 --- lastlog2-0.0.1.tar.xz | 3 --- lastlog2-0.5.0.tar.xz | 3 +++ lastlog2.changes | 6 ++++++ lastlog2.spec | 11 ++++++++++- 4 files changed, 19 insertions(+), 4 deletions(-) delete mode 100644 lastlog2-0.0.1.tar.xz create mode 100644 lastlog2-0.5.0.tar.xz diff --git a/lastlog2-0.0.1.tar.xz b/lastlog2-0.0.1.tar.xz deleted file mode 100644 index c4a6c62..0000000 --- a/lastlog2-0.0.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:13682438c8bf1125d1ee587fb93bb55e814de6ae8fdf51743d3d83c1bca59301 -size 13132 diff --git a/lastlog2-0.5.0.tar.xz b/lastlog2-0.5.0.tar.xz new file mode 100644 index 0000000..1b5acd1 --- /dev/null +++ b/lastlog2-0.5.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fad83503441a64262ffc8eedf2d42145bb91bf8273247a39bf3ef97f0c41571 +size 13384 diff --git a/lastlog2.changes b/lastlog2.changes index 808e570..ed352ff 100644 --- a/lastlog2.changes +++ b/lastlog2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 17 17:16:54 UTC 2023 - Thorsten Kukuk + +- Version 0.5.0 + - Import old lastlog data + ------------------------------------------------------------------- Fri Mar 17 13:33:38 UTC 2023 - Thorsten Kukuk diff --git a/lastlog2.spec b/lastlog2.spec index d227053..6b6701a 100644 --- a/lastlog2.spec +++ b/lastlog2.spec @@ -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