Compare commits

1 Commits
main ... 1.1

6 changed files with 13 additions and 133 deletions

View File

@@ -5,7 +5,7 @@
<param name="changesgenerate">enable</param>
<param name="filename">wtmpdb</param>
<param name="revision">main</param>
<param name="versionformat">0.73.0+git%cd.%h</param>
<param name="versionformat">0.13.0+git.%cd</param>
</service>
<service mode="manual" name="recompress">
<param name="file">*.tar</param>

View File

@@ -4,4 +4,4 @@
</service>
<service name="tar_scm">
<param name="url">https://github.com/thkukuk/wtmpdb.git</param>
<param name="changesrevision">edb8638a616e720616a1564ec395275b09295b8e</param></service></servicedata>
<param name="changesrevision">1855b60ac1c3bda79c091bdb5f621a7f09f1e4d7</param></service></servicedata>

BIN
wtmpdb-0.13.0+git.20240814.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wtmpdb-0.73.0+git20250408.edb8638.tar.xz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,117 +1,3 @@
-------------------------------------------------------------------
Tue Apr 08 13:19:54 UTC 2025 - Thorsten Kukuk <kukuk@suse.com>
- Update to version 0.73.0+git20250408.edb8638:
* Release version 0.73.0
* expand accepted time format options
* use documented -t short option for last --until
* hurd: avoid PATH_MAX
* hurd: compat for lack of CLOCK_BOOTTIME
-------------------------------------------------------------------
Wed Mar 05 12:59:57 UTC 2025 - kukuk@suse.com
- Update to version 0.72.0+git20250305.10803fd:
* Release version 0.72.0
* i386: fix integer format length errors
* Add utmp format importer
* Fix wtmp database path in documentation
* test: schedule test logins on correct day
* rotate: don't throw away microseconds calculating threshold
-------------------------------------------------------------------
Thu Feb 06 10:44:44 UTC 2025 - kukuk@suse.com
- Update to version 0.71.0+git20250206.608632a:
* Fix expected output of wtmpdb_rotate() test
* Make header usable from C++
-------------------------------------------------------------------
Mon Feb 03 12:46:06 UTC 2025 - kukuk@suse.com
- Update to version 0.71.0+git20250203.86b8442:
* Release version 0.71.0
* zero struct tm before calling strptime()
* Accept classic 'last -N' form for max entries
* tst-varlink: fix order of error checking
* CI: use valgrind
* Run meson test in verbose mode
* tst-varlink works only if run as root
* Use meson feature and not combo options
* Add CI for openSUSE
* CI: make sure sqlite3 devel is installed
-------------------------------------------------------------------
Tue Jan 21 15:45:20 UTC 2025 - kukuk@suse.com
- Update to version 0.70.0+git20250121.3e409b5:
* Fix installation of all wtmpdbd man page variants
* Release version 0.70.0
* Add wtmpdbd.8 manual page
* wtmpdbd: fix printing help text
* wtmpdbd: more fine granular log level filtering
* wtmpdbd: implement varlink_event_loop_with_idle
* wtmpdbd.socket: fix socket descriptor name
* meson: no longer check for v258 sd-varlink function
-------------------------------------------------------------------
Mon Jan 20 13:52:51 UTC 2025 - kukuk@suse.com
- Update to version 0.60.0+git20250120.64d23d8:
* Release version 0.60.0
* Merge reader/write socket to one generic one
* wtmpdbd: add Ping, SetLogLevel and GetEnvironment
-------------------------------------------------------------------
Fri Jan 17 10:17:17 UTC 2025 - kukuk@suse.com
- Update to version 0.50.0+git20250117.a9b48cf:
* wtmpdbd.service: secure more
* wtmpdb: Implement json output for last (#20)
-------------------------------------------------------------------
Thu Jan 16 14:20:26 UTC 2025 - kukuk@suse.com
- Update to version 0.50.0+git20250110.cbabeb7:
* Harden wtmpdbd.service
* libwtmpdb: fallback to sqlite if SELinux blocks varlink socket
-------------------------------------------------------------------
Fri Jan 10 13:02:32 UTC 2025 - kukuk@suse.com
- Update to version 0.50.0+git20250110.12da60f:
* Release version 0.50.0
* README: add wtmpdbd
* wtmpdbd: Print stopped message
* wtmpdbd.service: preset WTMPDBD_OPTS
* wtmpdbd: don't call listen if started by a socket
* tst-varlink: skip if varlink is not supported
* libwtmpdb: set varlink_is_active to 0 without systemd
* libwtmpdb: always define varlink checks
* wtmpdb: define quiet only if we have systemd
* libwtmpdb: return error if varlink support is missing
* Send sd_notify(STOPPING=1);
* Check if systemd has sd_varlink_server_listen_name()
* wtmpdbd.service: optional read /etc/default/wtmpdbd
* wtmpdbd: simplify creation of varlink sockets
* Set umaks with varlink to 0077, improve error reporting
* wtmpdbd: enable to start via sockets
* libwtmpdb: handle ECONNRESET as wtmpdbd not running
* libwtmpdb: fix crash in varlink if error==NULL
* Install daemon in libexec directory
* tst-get_id: skip if there is no db file
* libwtmpdb: improve error return code
* db path "varlink" will enforce varlink interface
* Add service and socket files
* wmtpdb: call wtmpdb_* functions with NULL as path
* wtmpdbd: add socket activation
* Implement varlink read_all client side
* Make wtmpdbd support compiletime config
* Add daemon using varlink for communication
* Document that openssh is special
* libwtmpdb: create wrapper around sqlite functions
* Make mkdir_p more robust
-------------------------------------------------------------------
Wed Aug 14 09:59:01 UTC 2024 - kukuk@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package wtmpdb
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%define lname libwtmpdb0
Name: wtmpdb
Version: 0.73.0+git20250408.edb8638
Version: 0.13.0+git.20240814
Release: 0
Summary: Database for recording the last logged in users and system reboots
License: BSD-2-Clause
@@ -28,7 +28,7 @@ BuildRequires: docbook5-xsl-stylesheets
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(audit)
BuildRequires: pkgconfig(libsystemd) >= 257
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(pam)
BuildRequires: pkgconfig(sqlite3)
Requires(post): pam-config
@@ -62,7 +62,7 @@ the wtmpdb database.
%autosetup
%build
%meson -Dman=enabled -Dcompat-symlink=true -Dwtmpdbd=enabled
%meson -Dman=true -Dcompat-symlink=true
%meson_build
%install
@@ -74,14 +74,14 @@ echo ".so man8/wtmpdb.8" > %{buildroot}%{_mandir}/man1/last.1
%meson_test
%pre
%service_add_pre wtmpdb-update-boot.service wtmpdb-rotate.timer wtmpdbd.socket
%service_add_pre wtmpdb-update-boot.service wtmpdb-rotate.timer
%preun
%service_del_preun wtmpdb-update-boot.service wtmpdb-rotate.timer wtmpdbd.socket
%service_del_preun wtmpdb-update-boot.service wtmpdb-rotate.timer
%post
%tmpfiles_create wtmpdb.conf
%service_add_post wtmpdb-update-boot.service wtmpdb-rotate.timer wtmpdbd.socket
%service_add_post wtmpdb-update-boot.service wtmpdb-rotate.timer
pam-config -a --wtmpdb --wtmpdb-skip_if=sshd
%postun
@@ -89,7 +89,7 @@ if [ "$1" -eq 0 ]; then
pam-config -d --wtmpdb
fi
%service_del_postun_without_restart wtmpdb-update-boot.service
%service_del_postun wtmpdb-rotate.timer wtmpdbd.socket
%service_del_postun wtmpdb-rotate.timer
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
@@ -98,20 +98,14 @@ fi
%license LICENSE
%{_bindir}/last
%{_bindir}/wtmpdb
%{_libexecdir}/wtmpdbd
%{_unitdir}/wtmpdb-update-boot.service
%{_unitdir}/wtmpdb-rotate.service
%{_unitdir}/wtmpdb-rotate.timer
%{_prefix}/lib/systemd/system/wtmpdbd.service
%{_prefix}/lib/systemd/system/wtmpdbd.socket
%{_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/wtmpdbd.8%{?ext_man}
%{_mandir}/man8/wtmpdbd.service.8%{?ext_man}
%{_mandir}/man8/wtmpdbd.socket.8%{?ext_man}
%{_mandir}/man8/pam_wtmpdb.8%{?ext_man}
%files -n %{lname}