commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-12-20 21:01:07 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.9037 (New) Package is "wtmpdb" Wed Dec 20 21:01:07 2023 rev:12 rq:1134046 version:0.10.0 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-10-27 22:27:50.726749226 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.9037/wtmpdb.changes 2023-12-20 21:01:17.524362012 +0100 @@ -1,0 +2,6 @@ +Wed Dec 13 14:01:00 UTC 2023 - Thorsten Kukuk + +- Update to version 0.10.0 + - last: support matching for username and/or tty + +--- Old: wtmpdb-0.9.3.tar.xz New: wtmpdb-0.10.0.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.95fgaU/_old 2023-12-20 21:01:18.212387043 +0100 +++ /var/tmp/diff_new_pack.95fgaU/_new 2023-12-20 21:01:18.212387043 +0100 @@ -18,12 +18,12 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.9.3 +Version:0.10.0 Release:0 Summary:Database for recording the last logged in users and system reboots License:BSD-2-Clause URL:https://github.com/thkukuk/wtmpdb -Source: https://github.com/thkukuk/wtmpdb/releases/download/v0.7.1/%{name}-%{version}.tar.xz +Source: https://github.com/thkukuk/wtmpdb/releases/download/v0.10.0/%{name}-%{version}.tar.xz BuildRequires: docbook5-xsl-stylesheets BuildRequires: meson BuildRequires: pkgconfig ++ wtmpdb-0.9.3.tar.xz -> wtmpdb-0.10.0.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.9.3/NEWS new/wtmpdb-0.10.0/NEWS --- old/wtmpdb-0.9.3/NEWS 2023-10-26 15:03:36.0 +0200 +++ new/wtmpdb-0.10.0/NEWS 2023-12-13 14:56:33.0 +0100 @@ -1,3 +1,6 @@ +Version 0.10.0 +* last: support matching for username and/or tty + Version 0.9.3 * wtmpdb last: don't print date in the future if there is no db entry diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.9.3/man/wtmpdb.8.xml new/wtmpdb-0.10.0/man/wtmpdb.8.xml --- old/wtmpdb-0.9.3/man/wtmpdb.8.xml 2023-10-26 15:03:36.0 +0200 +++ new/wtmpdb-0.10.0/man/wtmpdb.8.xml 2023-12-13 14:56:33.0 +0100 @@ -40,7 +40,9 @@ last - option⦠+ option⦠+ username⦠+ tty⦠wtmpdb last goes through the @@ -48,8 +50,11 @@ database designated by the -f option) and displays a list of of all users logged in and logged out. The output can be restricted to different patterns via various - options. + options. If one or more usernames and/or ttys are given + wtmpdb last will only show the entries matching + those arguments. + The login and logout times of the special user reboot are the boot and shutdown times of the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.9.3/meson.build new/wtmpdb-0.10.0/meson.build --- old/wtmpdb-0.9.3/meson.build2023-10-26 15:03:36.0 +0200 +++ new/wtmpdb-0.10.0/meson.build 2023-12-13 14:56:33.0 +0100 @@ -9,9 +9,10 @@ 'buildtype=debugoptimized', 'default_library=shared', 'b_pie=true', + 'b_lto=true', 'warning_level=3',], license : ['BSD-2-Clause',], - version : '0.9.3', + version : '0.10.0', ) conf = configuration_data() @@ -28,8 +29,6 @@ '-D_TIME_BITS=64'], language : 'c') possible_cc_flags = [ - '-flto=auto', - '-ffat-lto-objects', '-fstack-protector-strong', '-funwind-tables', '-fasynchronous-unwind-tables', @@ -47,11 +46,7 @@ '-Wstrict-prototypes', '-Wundef', ] -possible_ld_flags = [ - '-flto', - ] add_project_arguments(cc.get_supported_arguments(possible_cc_flags), language : 'c') -add_project_link_arguments(cc.get_supported_arguments(possible_ld_flags), language : 'c') fs = import('fs') if get_option('split-usr') == 'auto' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.9.3/src/wtmpdb.c new/wtmpdb-0.10.0/src/wtmpdb.c --- old/wtmpdb-0.9.3/src/wtmpdb.c 2023-10-26 15:03:36.0
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-10-27 22:27:32 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.17445 (New) Package is "wtmpdb" Fri Oct 27 22:27:32 2023 rev:11 rq:1120586 version:0.9.3 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-09-21 22:13:16.171571728 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.17445/wtmpdb.changes 2023-10-27 22:27:50.726749226 +0200 @@ -1,0 +2,7 @@ +Thu Oct 26 13:07:54 UTC 2023 - Thorsten Kukuk + +- Update to version 0.9.3 + - wtmpdb last: don't print date in the future if there is no +db entry + +--- Old: wtmpdb-0.9.2.tar.xz New: wtmpdb-0.9.3.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.mf2h4F/_old 2023-10-27 22:27:51.318770939 +0200 +++ /var/tmp/diff_new_pack.mf2h4F/_new 2023-10-27 22:27:51.322771085 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.9.2 +Version:0.9.3 Release:0 Summary:Database for recording the last logged in users and system reboots License:BSD-2-Clause ++ wtmpdb-0.9.2.tar.xz -> wtmpdb-0.9.3.tar.xz ++ 3795 lines of diff (skipped)
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-09-21 22:13:05 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.1770 (New) Package is "wtmpdb" Thu Sep 21 22:13:05 2023 rev:10 rq:1112164 version:0.9.2 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-08-28 17:10:53.295327736 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.1770/wtmpdb.changes 2023-09-21 22:13:16.171571728 +0200 @@ -1,0 +2,8 @@ +Tue Sep 19 07:53:57 UTC 2023 - Stefan Schubert + +- Update to version 0.9.2 + - Set busy timeout for DB access: The process is waiting until +5 seconds for DB connection if the DB is locked by another +process. + +--- Old: wtmpdb-0.9.1.tar.xz New: wtmpdb-0.9.2.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.GuByUZ/_old 2023-09-21 22:13:17.527620943 +0200 +++ /var/tmp/diff_new_pack.GuByUZ/_new 2023-09-21 22:13:17.527620943 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.9.1 +Version:0.9.2 Release:0 Summary:Database for recording the last logged in users and system reboots License:BSD-2-Clause ++ wtmpdb-0.9.1.tar.xz -> wtmpdb-0.9.2.tar.xz ++ 3757 lines of diff (skipped)
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-08-28 17:10:52 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.1766 (New) Package is "wtmpdb" Mon Aug 28 17:10:52 2023 rev:9 rq:1105296 version:0.9.1 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-08-17 19:42:41.514693585 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.1766/wtmpdb.changes 2023-08-28 17:10:53.295327736 +0200 @@ -1,0 +2,7 @@ +Tue Aug 22 13:47:10 UTC 2023 - Thorsten Kukuk + +- Fix last.1 manual page reference +- Update to version 0.9.1 + - Fix printf format specifier on 32bit + +--- Old: wtmpdb-0.9.0.tar.xz New: wtmpdb-0.9.1.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.ImEb04/_old 2023-08-28 17:10:54.343365373 +0200 +++ /var/tmp/diff_new_pack.ImEb04/_new 2023-08-28 17:10:54.347365517 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.9.0 +Version:0.9.1 Release:0 Summary:Database for recording the last logged in users and system reboots License:BSD-2-Clause @@ -67,7 +67,7 @@ %install %meson_install mkdir -p %{buildroot}%{_mandir}/man1 -echo ".so wtmpdb.8" > %{buildroot}%{_mandir}/man1/last.1 +echo ".so man8/wtmpdb.8" > %{buildroot}%{_mandir}/man1/last.1 %check %meson_test ++ wtmpdb-0.9.0.tar.xz -> wtmpdb-0.9.1.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.9.0/.gitignore new/wtmpdb-0.9.1/.gitignore --- old/wtmpdb-0.9.0/.gitignore 1970-01-01 01:00:00.0 +0100 +++ new/wtmpdb-0.9.1/.gitignore 2023-08-22 15:46:10.0 +0200 @@ -0,0 +1,19 @@ +# Object files +*.o +*.ko +*.obj +*.elf + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects +*.so +*.so.* + +# Misc +build +*~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.9.0/meson.build new/wtmpdb-0.9.1/meson.build --- old/wtmpdb-0.9.0/meson.build2023-08-14 17:03:04.0 +0200 +++ new/wtmpdb-0.9.1/meson.build2023-08-22 15:46:10.0 +0200 @@ -1,7 +1,7 @@ project( 'wtmpdb', 'c', - meson_version : '>= 0.53.0', + meson_version : '>= 0.61.0', default_options : [ 'prefix=/usr', 'sysconfdir=/etc', @@ -11,7 +11,7 @@ 'b_pie=true', 'warning_level=3',], license : ['BSD-2-Clause',], - version : '0.9.0', + version : '0.9.1', ) conf = configuration_data() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.9.0/src/wtmpdb.c new/wtmpdb-0.9.1/src/wtmpdb.c --- old/wtmpdb-0.9.0/src/wtmpdb.c 2023-08-14 17:03:04.0 +0200 +++ new/wtmpdb-0.9.1/src/wtmpdb.c 2023-08-22 15:46:10.0 +0200 @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -186,16 +187,16 @@ calc_time_length(char *dst, size_t dstlen, uint64_t start, uint64_t stop) { uint64_t secs = (stop - start)/USEC_PER_SEC; - uint64_t mins = (secs / 60) % 60; - uint64_t hours = (secs / 3600) % 24; + int mins = (secs / 60) % 60; + int hours = (secs / 3600) % 24; uint64_t days = secs / 86400; if (days) -snprintf (dst, dstlen, "(%ld+%02ld:%02ld)", days, hours, mins); +snprintf (dst, dstlen, "(%" PRId64 "+%02d:%02d)", days, hours, mins); else if (hours) -snprintf (dst, dstlen, " (%02ld:%02ld)", hours, mins); +snprintf (dst, dstlen, " (%02d:%02d)", hours, mins); else -snprintf (dst, dstlen, " (00:%02ld)", mins); +snprintf (dst, dstlen, " (00:%02d)", mins); } static void
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-08-17 19:42:40 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.1766 (New) Package is "wtmpdb" Thu Aug 17 19:42:40 2023 rev:8 rq:1104166 version:0.9.0 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-08-10 15:33:08.515879929 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.1766/wtmpdb.changes 2023-08-17 19:42:41.514693585 +0200 @@ -1,0 +2,7 @@ +Mon Aug 14 15:04:26 UTC 2023 - Thorsten Kukuk + +- Update to version 0.9.0 + - Try to detect systemctl soft-reboot + - Many conversation warning/error fixes + +--- Old: wtmpdb-0.8.0.tar.xz New: wtmpdb-0.9.0.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.5t5uVT/_old 2023-08-17 19:42:43.030696420 +0200 +++ /var/tmp/diff_new_pack.5t5uVT/_new 2023-08-17 19:42:43.042696442 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.8.0 +Version:0.9.0 Release:0 Summary:Database for recording the last logged in users and system reboots License:BSD-2-Clause ++ wtmpdb-0.8.0.tar.xz -> wtmpdb-0.9.0.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.8.0/INSTALL.md new/wtmpdb-0.9.0/INSTALL.md --- old/wtmpdb-0.8.0/INSTALL.md 2023-08-09 16:12:24.0 +0200 +++ new/wtmpdb-0.9.0/INSTALL.md 2023-08-14 17:03:04.0 +0200 @@ -9,7 +9,7 @@ ```shell $ meson setup build $ meson compile -C build -$ meson compile -C build test +$ meson test -C build $ sudo meson install -C build ``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.8.0/NEWS new/wtmpdb-0.9.0/NEWS --- old/wtmpdb-0.8.0/NEWS 2023-08-09 16:12:24.0 +0200 +++ new/wtmpdb-0.9.0/NEWS 2023-08-14 17:03:04.0 +0200 @@ -1,3 +1,8 @@ +Version 0.9.0 +* Fix lot of 32bit/64bit signed/unsiged int conversations +* Try to autodetect systemctl soft-reboot and use current + time instead of kernel boot time. + Version 0.8.0 * Fix linking with clang * wtmdb boottime: show boot time diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.8.0/README.md new/wtmpdb-0.9.0/README.md --- old/wtmpdb-0.8.0/README.md 2023-08-09 16:12:24.0 +0200 +++ new/wtmpdb-0.9.0/README.md 2023-08-14 17:03:04.0 +0200 @@ -17,7 +17,7 @@ The main features of `wtmpdb` are: * It's using sqlite3 as database backend. -* Data is mainly collected via a PAM module, so that every tools can make use of it, without modifying existing packages. For cases where this is not possible, there is a library `libwtmpdb`. +* Data is mainly collected via a PAM module, so that every tool can make use of it, without modifying existing packages. For cases where this is not possible, there is a library `libwtmpdb`. * The `wtmpdb last` output is as compatible as possible with the old `last` implementation, but not all options are yet supported. For compatibility reasons, a symlink `last` pointing to `wtmpdb` can be created. **IMPORTANT** To be Y2038 safe on 32bit architectures, the binaries needs to be build with a **64bit time_t**. This should be the standard on 64bit architectures. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.8.0/lib/logwtmpdb.c new/wtmpdb-0.9.0/lib/logwtmpdb.c --- old/wtmpdb-0.8.0/lib/logwtmpdb.c2023-08-09 16:12:24.0 +0200 +++ new/wtmpdb-0.9.0/lib/logwtmpdb.c2023-08-14 17:03:04.0 +0200 @@ -57,7 +57,7 @@ clock_gettime (CLOCK_REALTIME, ); - int64_t time = wtmpdb_timespec2usec (ts); + uint64_t time = wtmpdb_timespec2usec (ts); if (error) *error = NULL; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.8.0/lib/sqlite.c new/wtmpdb-0.9.0/lib/sqlite.c --- old/wtmpdb-0.8.0/lib/sqlite.c 2023-08-09 16:12:24.0 +0200 +++ new/wtmpdb-0.9.0/lib/sqlite.c 2023-08-14 17:03:04.0 +0200 @@ -59,7 +59,7 @@ static const int max_ext_len = 4; /* Check chars starting at end of string to find last '.' */ -for (ssize_t i = strlen(in_str); i > (name_min_len + max_ext_len); i--) +for (size_t i = strlen(in_str); i > (name_min_len + max_ext_len); i--) { if (in_str[i] == '.') { @@ -397,7 +397,7 @@ wtmpdb_get_id (const char *db_path, const char *tty, char **error) { sqlite3 *db; - int
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-08-10 15:33:00 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.11712 (New) Package is "wtmpdb" Thu Aug 10 15:33:00 2023 rev:7 rq:1103168 version:0.8.0 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-07-12 17:26:52.842329775 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.11712/wtmpdb.changes 2023-08-10 15:33:08.515879929 +0200 @@ -1,0 +2,6 @@ +Wed Aug 9 14:13:17 UTC 2023 - Thorsten Kukuk + +- Update to version 0.8.0 + - wtmpdb boottime: print boot time + +--- @@ -11 +17 @@ -- Update to ersion 0.7.1 +- Update to version 0.7.1 Old: wtmpdb-0.7.1.tar.xz New: wtmpdb-0.8.0.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.lFRv4E/_old 2023-08-10 15:33:09.067883371 +0200 +++ /var/tmp/diff_new_pack.lFRv4E/_new 2023-08-10 15:33:09.071883397 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.7.1 +Version:0.8.0 Release:0 Summary:Database for recording the last logged in users and system reboots License:BSD-2-Clause ++ wtmpdb-0.7.1.tar.xz -> wtmpdb-0.8.0.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.7.1/NEWS new/wtmpdb-0.8.0/NEWS --- old/wtmpdb-0.7.1/NEWS 2023-06-29 14:05:36.0 +0200 +++ new/wtmpdb-0.8.0/NEWS 2023-08-09 16:12:24.0 +0200 @@ -1,3 +1,7 @@ +Version 0.8.0 +* Fix linking with clang +* wtmdb boottime: show boot time + Version 0.7.1 * wtmpdb last: Support "-MM-DD", "today" and "yesterday" as time option diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.7.1/include/wtmpdb.h new/wtmpdb-0.8.0/include/wtmpdb.h --- old/wtmpdb-0.7.1/include/wtmpdb.h 2023-06-29 14:05:36.0 +0200 +++ new/wtmpdb-0.8.0/include/wtmpdb.h 2023-08-09 16:12:24.0 +0200 @@ -57,6 +57,9 @@ extern int wtmpdb_rotate (const char *db_path, const int days, char **error, char **wtmpdb_name, uint64_t *entries); +/* Returns last "BOOT_TIME" entry as usec */ +extern uint64_t wtmpdb_get_boottime (const char *db_path, char **error); + /* helper function */ extern int64_t wtmpdb_get_id (const char *db_path, const char *tty, char **error); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.7.1/lib/libwtmpdb.map new/wtmpdb-0.8.0/lib/libwtmpdb.map --- old/wtmpdb-0.7.1/lib/libwtmpdb.map 2023-06-29 14:05:36.0 +0200 +++ new/wtmpdb-0.8.0/lib/libwtmpdb.map 2023-08-09 16:12:24.0 +0200 @@ -12,3 +12,8 @@ global: wtmpdb_rotate; } LIBWTMPDB_0.1; +LIBWTMPDB_0.8 { + global: +wtmpdb_get_boottime; +} LIBWTMPDB_0.7; + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.7.1/lib/sqlite.c new/wtmpdb-0.8.0/lib/sqlite.c --- old/wtmpdb-0.7.1/lib/sqlite.c 2023-06-29 14:05:36.0 +0200 +++ new/wtmpdb-0.8.0/lib/sqlite.c 2023-08-09 16:12:24.0 +0200 @@ -650,3 +650,55 @@ return 0; } + +static uint64_t +search_boottime (sqlite3 *db, char **error) +{ + uint64_t boottime = 0; + sqlite3_stmt *res; + char *sql = "SELECT Login FROM wtmp WHERE User = 'reboot' ORDER BY Login DESC LIMIT 1;"; + + if (sqlite3_prepare_v2 (db, sql, -1, , 0) != SQLITE_OK) +{ + if (error) +if (asprintf (error, "Failed to execute statement: %s", + sqlite3_errmsg (db)) < 0) + *error = strdup ("Out of memory"); + + return -1; +} + + int step = sqlite3_step (res); + + if (step == SQLITE_ROW) +boottime = sqlite3_column_int64 (res, 0); + else +{ + if (error) +if (asprintf (error, "Boot time not found (%d)", step) < 0) + *error = strdup("Out of memory"); + + sqlite3_finalize (res); + return -1; +} + + sqlite3_finalize (res); + + return boottime; +} + +uint64_t +wtmpdb_get_boottime (const char *db_path, char **error) +{ + sqlite3 *db; + uint64_t retval; + + if ((db = open_database_ro (db_path?db_path:_PATH_WTMPDB, error)) == NULL) +return -1; + + retval = search_boottime (db, error); + + sqlite3_close (db); + + return retval; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.7.1/meson.build new/wtmpdb-0.8.0/meson.build --- old/wtmpdb-0.7.1/meson.build2023-06-29
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-07-12 17:26:40 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.8922 (New) Package is "wtmpdb" Wed Jul 12 17:26:40 2023 rev:6 rq:1097971 version:0.7.1 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-06-23 21:52:17.590515959 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.8922/wtmpdb.changes 2023-07-12 17:26:52.842329775 +0200 @@ -1,0 +2,19 @@ +Sat Jul 1 23:43:32 UTC 2023 - Jan Engelhardt + +- https://en.opensuse.org/SourceUrls +- Use noun phrase for Summary. +- Wrap descriptions at 70 (for yast2 textmode). + +--- +Thu Jun 29 12:09:19 UTC 2023 - Thorsten Kukuk + +- Update to ersion 0.7.1 + - wtmpdb last: Support "-MM-DD", "today" and "yesterday" as +time option + +--- +Tue Jun 27 06:30:33 UTC 2023 - Thorsten Kukuk + +- Add last compat symlink and manual page + +--- Old: wtmpdb-0.7.0.tar.xz New: wtmpdb-0.7.1.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.uHwTJE/_old 2023-07-12 17:26:53.466333411 +0200 +++ /var/tmp/diff_new_pack.uHwTJE/_new 2023-07-12 17:26:53.474333458 +0200 @@ -18,12 +18,12 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.7.0 +Version:0.7.1 Release:0 -Summary:Reports last logged in users and system reboots +Summary:Database for recording the last logged in users and system reboots License:BSD-2-Clause URL:https://github.com/thkukuk/wtmpdb -Source: %{name}-%{version}.tar.xz +Source: https://github.com/thkukuk/wtmpdb/releases/download/v0.7.1/%{name}-%{version}.tar.xz BuildRequires: docbook5-xsl-stylesheets BuildRequires: meson BuildRequires: pkgconfig @@ -32,33 +32,42 @@ BuildRequires: pkgconfig(sqlite3) Requires(post): pam-config Requires(postun):pam-config +# Split provide for last +Provides: util-linux:/usr/bin/last %description -pam_wtmpdb and wtmpdb are Y2038 safe versions of wtmp and the last utility. pam_wtmpdb collects all data in a sqlite3 database and wtmpdb creates boot and shutdown entries or formats and prints the contents of the wtmp database. +pam_wtmpdb and wtmpdb are Y2038-safe versions of wtmp and the last +utility. pam_wtmpdb collects all data in a sqlite3 database and the +wtmpdb utility creates boot and shutdown entries or formats and +prints the contents of the wtmp database. %package -n %{lname} Summary:PAM module to store login and logout of users %description -n %{lname} -The libwtmpdb provides various interfaces to read, write or modify the wtmpdb database. +The libwtmpdb provides various interfaces to read, write or modify +the wtmpdb database. %package devel Summary:Development files for libwtmpdb Requires: %{lname} = %{version} %description devel -This package contains all necessary include files and libraries needed -to develop applications that needs to read, write or modify the wtmpdb database. +This package contains all necessary include files and libraries +needed to develop applications that needs to read, write or modify +the wtmpdb database. %prep -%setup -q +%autosetup %build -%meson -Dman=true +%meson -Dman=true -Dcompat-symlink=true %meson_build %install %meson_install +mkdir -p %{buildroot}%{_mandir}/man1 +echo ".so wtmpdb.8" > %{buildroot}%{_mandir}/man1/last.1 %check %meson_test @@ -86,6 +95,7 @@ %files %license LICENSE +%{_bindir}/last %{_bindir}/wtmpdb %{_unitdir}/wtmpdb-update-boot.service %{_unitdir}/wtmpdb-rotate.service @@ -93,6 +103,7 @@ %{_tmpfilesdir}/wtmpdb.conf %{_pam_moduledir}/pam_wtmpdb.so %ghost %{_localstatedir}/lib/wtmpdb +%{_mandir}/man1/last.1%{?ext_man} %{_mandir}/man8/wtmpdb.8%{?ext_man} %{_mandir}/man8/pam_wtmpdb.8%{?ext_man} ++ wtmpdb-0.7.0.tar.xz -> wtmpdb-0.7.1.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.7.0/NEWS new/wtmpdb-0.7.1/NEWS --- old/wtmpdb-0.7.0/NEWS 2023-06-22 15:27:58.0 +0200 +++ new/wtmpdb-0.7.1/NEWS 2023-06-29 14:05:36.0 +0200 @@ -1,3 +1,6 @@ +Version 0.7.1 +* wtmpdb last: Support "-MM-DD", "today" and "yesterday" as time option + Version 0.7.0 * wtmpdb rotate: use sqlite3_bind_* internal * wtmpdb last: Implement -x, -d, -i and -w options diff -urN '--exclude=CVS' '--exclude=.cvsignore'
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-06-23 21:52:10 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.15902 (New) Package is "wtmpdb" Fri Jun 23 21:52:10 2023 rev:5 rq:1094677 version:0.7.0 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-06-14 16:28:39.950219812 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.15902/wtmpdb.changes 2023-06-23 21:52:17.590515959 +0200 @@ -1,0 +2,7 @@ +Wed Jun 21 06:52:21 UTC 2023 - Thorsten Kukuk + +- Update to version 0.7.0 + - wtmpdb rotate: use sqlite3_bind_* internal + - wtmpdb last: Implement -x, -d, -i and -w options + +--- Old: wtmpdb-0.6.0.tar.xz New: wtmpdb-0.7.0.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.nkaqUE/_old 2023-06-23 21:52:18.346520066 +0200 +++ /var/tmp/diff_new_pack.nkaqUE/_new 2023-06-23 21:52:18.350520088 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.6.0 +Version:0.7.0 Release:0 Summary:Reports last logged in users and system reboots License:BSD-2-Clause @@ -78,7 +78,8 @@ if [ "$1" -eq 0 ]; then pam-config -d --wtmpdb fi -%service_del_postun_without_restart wtmpdb-update-boot.service wtmpdb-rotate.timer +%service_del_postun_without_restart wtmpdb-update-boot.service +%service_del_postun wtmpdb-rotate.timer %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig ++ wtmpdb-0.6.0.tar.xz -> wtmpdb-0.7.0.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.6.0/NEWS new/wtmpdb-0.7.0/NEWS --- old/wtmpdb-0.6.0/NEWS 2023-06-12 16:15:30.0 +0200 +++ new/wtmpdb-0.7.0/NEWS 2023-06-22 15:27:58.0 +0200 @@ -1,3 +1,7 @@ +Version 0.7.0 +* wtmpdb rotate: use sqlite3_bind_* internal +* wtmpdb last: Implement -x, -d, -i and -w options + Version 0.6.0 * wtmpdb rotate: move old log entries into wtmpdb_.db diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.6.0/include/wtmpdb.h new/wtmpdb-0.7.0/include/wtmpdb.h --- old/wtmpdb-0.6.0/include/wtmpdb.h 2023-06-12 16:15:30.0 +0200 +++ new/wtmpdb-0.7.0/include/wtmpdb.h 2023-06-22 15:27:58.0 +0200 @@ -54,9 +54,8 @@ int (*cb_func) (void *unused, int argc, char **argv, char **azColName), char **error); -extern int wtmpdb_logrotate (const char *db_path, -const int days, - char **error); +extern int wtmpdb_rotate (const char *db_path, const int days, char **error, + char **wtmpdb_name, uint64_t *entries); /* helper function */ extern int64_t wtmpdb_get_id (const char *db_path, const char *tty, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.6.0/lib/libwtmpdb.map new/wtmpdb-0.7.0/lib/libwtmpdb.map --- old/wtmpdb-0.6.0/lib/libwtmpdb.map 2023-06-12 16:15:30.0 +0200 +++ new/wtmpdb-0.7.0/lib/libwtmpdb.map 2023-06-22 15:27:58.0 +0200 @@ -4,8 +4,11 @@ wtmpdb_login; wtmpdb_logout; wtmpdb_read_all; - wtmpdb_logrotate; wtmpdb_timespec2usec; wtmpdb_get_id; local: *; }; +LIBWTMPDB_0.7 { + global: +wtmpdb_rotate; +} LIBWTMPDB_0.1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.6.0/lib/sqlite.c new/wtmpdb-0.7.0/lib/sqlite.c --- old/wtmpdb-0.6.0/lib/sqlite.c 2023-06-12 16:15:30.0 +0200 +++ new/wtmpdb-0.7.0/lib/sqlite.c 2023-06-22 15:27:58.0 +0200 @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -441,23 +442,21 @@ return 0; } -static int logrotate_callback(void *data, int argc, char **argv, char **azColName) { - (void)argc; - (void)azColName; - sqlite3 *db_dest = (sqlite3*)data; - char *error = NULL; +static int +export_row (sqlite3 *db_dest, sqlite3_stmt *sqlStatement, char **error) +{ char *endptr; - const int type = atoi (argv[1]); - const char *user = argv[2]; - const char *tty = argv[5]; - const char *host = argv[6]; - const char *service = argv[7]; - uint64_t login_t = strtoul(argv[3], , 10); + const int type = sqlite3_column_int( sqlStatement, 1 ); + const char *user = (const char*)sqlite3_column_text( sqlStatement, 2 ); + const char *tty =
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-06-14 16:28:34 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.15902 (New) Package is "wtmpdb" Wed Jun 14 16:28:34 2023 rev:4 rq:1092602 version:0.6.0 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-04-26 17:26:28.370012288 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.15902/wtmpdb.changes 2023-06-14 16:28:39.950219812 +0200 @@ -1,0 +2,6 @@ +Wed Jun 7 15:18:21 UTC 2023 - Thorsten Kukuk + +- Update to version 0.6.0 + - wtmpdb rotate: move old log entries into wtmpdb_.db + +--- @@ -7 +12,0 @@ - Old: wtmpdb-0.5.0.tar.xz New: wtmpdb-0.6.0.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.2BB6rY/_old 2023-06-14 16:28:40.794224999 +0200 +++ /var/tmp/diff_new_pack.2BB6rY/_new 2023-06-14 16:28:40.794224999 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.5.0 +Version:0.6.0 Release:0 Summary:Reports last logged in users and system reboots License:BSD-2-Clause @@ -64,21 +64,21 @@ %meson_test %pre -%service_add_pre wtmpdb-update-boot.service +%service_add_pre wtmpdb-update-boot.service wtmpdb-rotate.timer %preun -%service_del_preun wtmpdb-update-boot.service +%service_del_preun wtmpdb-update-boot.service wtmpdb-rotate.timer %post %tmpfiles_create wtmpdb.conf -%service_add_post wtmpdb-update-boot.service +%service_add_post wtmpdb-update-boot.service wtmpdb-rotate.timer pam-config -a --wtmpdb --wtmpdb-skip_if=sshd %postun if [ "$1" -eq 0 ]; then pam-config -d --wtmpdb fi -%service_del_postun_without_restart wtmpdb-update-boot.service +%service_del_postun_without_restart wtmpdb-update-boot.service wtmpdb-rotate.timer %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig @@ -87,6 +87,8 @@ %license LICENSE %{_bindir}/wtmpdb %{_unitdir}/wtmpdb-update-boot.service +%{_unitdir}/wtmpdb-rotate.service +%{_unitdir}/wtmpdb-rotate.timer %{_tmpfilesdir}/wtmpdb.conf %{_pam_moduledir}/pam_wtmpdb.so %ghost %{_localstatedir}/lib/wtmpdb ++ wtmpdb-0.5.0.tar.xz -> wtmpdb-0.6.0.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.5.0/INSTALL.md new/wtmpdb-0.6.0/INSTALL.md --- old/wtmpdb-0.5.0/INSTALL.md 1970-01-01 01:00:00.0 +0100 +++ new/wtmpdb-0.6.0/INSTALL.md 2023-06-12 16:15:30.0 +0200 @@ -0,0 +1,17 @@ +# Building and installing wtmpdb + +## Building with Meson + +wtmpdb requires a relatively recent version of Meson. + +Building with Meson is quite simple: + +```shell +$ meson setup build +$ meson compile -C build +$ meson compile -C build test +$ sudo meson install -C build +``` + +If you want to build with the address sanitizer enabled, add +`-Db_sanitize=address` as an argument to `meson build`. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.5.0/NEWS new/wtmpdb-0.6.0/NEWS --- old/wtmpdb-0.5.0/NEWS 2023-04-26 11:10:14.0 +0200 +++ new/wtmpdb-0.6.0/NEWS 2023-06-12 16:15:30.0 +0200 @@ -1,6 +1,9 @@ +Version 0.6.0 +* wtmpdb rotate: move old log entries into wtmpdb_.db + Version 0.5.0 * Use uint64_t instead of usec_t to avoid conflicts with other projects -* wtmpdb boot: ore accurate calculation of boot time +* wtmpdb boot: more accurate calculation of boot time Version 0.4.0 * libwtmpdb: Use project version for library version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.5.0/README.md new/wtmpdb-0.6.0/README.md --- old/wtmpdb-0.5.0/README.md 2023-04-26 11:10:14.0 +0200 +++ new/wtmpdb-0.6.0/README.md 2023-06-12 16:15:30.0 +0200 @@ -18,7 +18,7 @@ * It's using sqlite3 as database backend. * Data is mainly collected via a PAM module, so that every tools can make use of it, without modifying existing packages. For cases where this is not possible, there is a library `libwtmpdb`. -* The `wtmpdb last` output is as compatible as possible with the old `last` implementation, but not all options are yet supported. +* The `wtmpdb last` output is as compatible as possible with the old `last` implementation, but not all options are yet supported. For compatibility reasons, a symlink `last` pointing to `wtmpdb` can be created. **IMPORTANT** To be Y2038 safe on 32bit architectures, the binaries needs to be build with a **64bit time_t**. This should be the standard on 64bit
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-04-26 17:26:25 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.1533 (New) Package is "wtmpdb" Wed Apr 26 17:26:25 2023 rev:3 rq:1082984 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-04-24 22:31:44.523699241 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.1533/wtmpdb.changes 2023-04-26 17:26:28.370012288 +0200 @@ -1,0 +2,8 @@ +Wed Apr 26 09:11:23 UTC 2023 - Thorsten Kukuk + +- Update to version 0.5.0 + - Use uint64_t instead of usec_t to avoid conflicts + - wtmpdb boot: more accurate calculation of boot time + + +--- Old: wtmpdb-0.4.0.tar.xz New: wtmpdb-0.5.0.tar.xz Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.LjO0iQ/_old 2023-04-26 17:26:29.658019803 +0200 +++ /var/tmp/diff_new_pack.LjO0iQ/_new 2023-04-26 17:26:29.666019849 +0200 @@ -18,7 +18,7 @@ %define lname libwtmpdb0 Name: wtmpdb -Version:0.4.0 +Version:0.5.0 Release:0 Summary:Reports last logged in users and system reboots License:BSD-2-Clause ++ wtmpdb-0.4.0.tar.xz -> wtmpdb-0.5.0.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.4.0/NEWS new/wtmpdb-0.5.0/NEWS --- old/wtmpdb-0.4.0/NEWS 2023-04-18 08:20:46.0 +0200 +++ new/wtmpdb-0.5.0/NEWS 2023-04-26 11:10:14.0 +0200 @@ -1,3 +1,7 @@ +Version 0.5.0 +* Use uint64_t instead of usec_t to avoid conflicts with other projects +* wtmpdb boot: ore accurate calculation of boot time + Version 0.4.0 * libwtmpdb: Use project version for library version * libwtmpdb: Always use _PATH_WTMPDB as fallback diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.4.0/include/wtmpdb.h new/wtmpdb-0.5.0/include/wtmpdb.h --- old/wtmpdb-0.4.0/include/wtmpdb.h 2023-04-18 08:20:46.0 +0200 +++ new/wtmpdb-0.5.0/include/wtmpdb.h 2023-04-26 11:10:14.0 +0200 @@ -37,26 +37,25 @@ #define RUNLEVEL2 /* The system's runlevel. Unused with systemd. */ #define USER_PROCESS3 /* Normal process. */ -typedef uint64_t usec_t; -#define USEC_INFINITY ((usec_t) UINT64_MAX) -#define NSEC_PER_USEC ((usec_t) 1000ULL) -#define USEC_PER_SEC ((usec_t) 100ULL) +#define USEC_INFINITY ((uint64_t) UINT64_MAX) +#define NSEC_PER_USEC ((uint64_t) 1000ULL) +#define USEC_PER_SEC ((uint64_t) 100ULL) extern int64_t logwtmpdb (const char *db_path, const char *tty, const char *name, const char *host, const char *service, char **error); extern int64_t wtmpdb_login (const char *db_path, int type, -const char *user, usec_t login, +const char *user, uint64_t usec_login, const char *tty, const char *rhost, const char *service, char **error); -extern int wtmpdb_logout (const char *db_path, int64_t id, usec_t logout, - char **error); +extern int wtmpdb_logout (const char *db_path, int64_t id, + uint64_t usec_logout, char **error); extern int wtmpdb_read_all (const char *db_path, - int (*cb_func) (void *unused, int argc, + int (*cb_func) (void *unused, int argc, char **argv, char **azColName), char **error); /* helper function */ extern int64_t wtmpdb_get_id (const char *db_path, const char *tty, char **error); -extern usec_t wtmpdb_timespec2usec (const struct timespec ts); +extern uint64_t wtmpdb_timespec2usec (const struct timespec ts); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/wtmpdb-0.4.0/lib/logwtmpdb.c new/wtmpdb-0.5.0/lib/logwtmpdb.c --- old/wtmpdb-0.4.0/lib/logwtmpdb.c2023-04-18 08:20:46.0 +0200 +++ new/wtmpdb-0.5.0/lib/logwtmpdb.c2023-04-26 11:10:14.0 +0200 @@ -33,18 +33,18 @@ #include "wtmpdb.h" -usec_t +uint64_t wtmpdb_timespec2usec (const struct timespec ts) { if (ts.tv_sec < 0 || ts.tv_nsec < 0) return USEC_INFINITY; - if ((usec_t) ts.tv_sec > + if ((uint64_t) ts.tv_sec > (UINT64_MAX - (ts.tv_nsec / NSEC_PER_USEC)) / USEC_PER_SEC) return UINT64_MAX; - return (usec_t) ts.tv_sec * USEC_PER_SEC + -(usec_t) ts.tv_nsec / NSEC_PER_USEC;
commit wtmpdb for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wtmpdb for openSUSE:Factory checked in at 2023-04-24 22:31:33 Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old) and /work/SRC/openSUSE:Factory/.wtmpdb.new.1533 (New) Package is "wtmpdb" Mon Apr 24 22:31:33 2023 rev:2 rq:1082462 version:0.4.0 Changes: --- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes2023-04-22 22:03:51.226433699 +0200 +++ /work/SRC/openSUSE:Factory/.wtmpdb.new.1533/wtmpdb.changes 2023-04-24 22:31:44.523699241 +0200 @@ -1,0 +2,5 @@ +Mon Apr 24 09:46:56 UTC 2023 - Thorsten Kukuk + +- Use Requires(pre) and Requires(post) instead of PreReq + +--- Other differences: -- ++ wtmpdb.spec ++ --- /var/tmp/diff_new_pack.39fqCH/_old 2023-04-24 22:31:44.919701595 +0200 +++ /var/tmp/diff_new_pack.39fqCH/_new 2023-04-24 22:31:44.923701619 +0200 @@ -30,7 +30,8 @@ BuildRequires: pkgconfig(audit) BuildRequires: pkgconfig(pam) BuildRequires: pkgconfig(sqlite3) -PreReq: pam-config +Requires(post): pam-config +Requires(postun):pam-config %description pam_wtmpdb and wtmpdb are Y2038 safe versions of wtmp and the last utility. pam_wtmpdb collects all data in a sqlite3 database and wtmpdb creates boot and shutdown entries or formats and prints the contents of the wtmp database.