[packages/wtmpdb] - updated to 0.74.0; wtmpdbd requires newer systemd (with sd-varlink support)

qboosh qboosh at pld-linux.org
Tue Aug 26 21:57:30 CEST 2025


commit 5bf193e27d44f62c1c9e69039c8cfe8d73a2c547
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Aug 26 22:00:12 2025 +0200

    - updated to 0.74.0; wtmpdbd requires newer systemd (with sd-varlink support)

 split-usr.patch |  8 ++++----
 wtmpdb.spec     | 24 ++++++++++++++++++++----
 2 files changed, 24 insertions(+), 8 deletions(-)
---
diff --git a/wtmpdb.spec b/wtmpdb.spec
index 07e601d..7e3eac8 100644
--- a/wtmpdb.spec
+++ b/wtmpdb.spec
@@ -1,13 +1,17 @@
+#
+# Conditional build:
+%bcond_with	wtmpdbd		# wtmpdbd daemon with sd-varlink support
+
 Summary:	Y2038 safe version of wtmp
 Summary(pl.UTF-8):	Wersja wtmp odporna na Y2038
 Name:		wtmpdb
-Version:	0.11.0
+Version:	0.74.0
 Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/thkukuk/wtmpdb/releases
-Source0:	https://github.com/thkukuk/wtmpdb/releases/download/v%{version}/%{name}-%{version}.tar.xz
-# Source0-md5:	f9305ba45b93b4acedf14a53ed62e08e
+Source0:	https://github.com/thkukuk/wtmpdb/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	789114600c2f76d16ec37b494a47b854
 Patch0:		split-usr.patch
 URL:		https://github.com/thkukuk/wtmpdb
 BuildRequires:	audit-libs-devel
@@ -20,6 +24,8 @@ BuildRequires:	pam-devel
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 2.042
 BuildRequires:	sqlite3-devel >= 3
+BuildRequires:	systemd-devel >= 1:209
+%{?with_wtmpdbd:BuildRequires:	systemd-devel >= 1:257}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -74,7 +80,11 @@ Pliki nagłówkowe biblioteki wtmpdb.
 
 %build
 %meson \
-	-Dsplit-usr=true
+	-Daudit=enabled \
+	-Dman=enabled \
+	-Dsplit-usr=true \
+	-Dsystemd=enabled \
+	-Dwtmpdbd=%{__enabled_disabled wtmpdbd}
 
 %meson_build
 
@@ -111,6 +121,12 @@ rm -rf $RPM_BUILD_ROOT
 %{systemdtmpfilesdir}/wtmpdb.conf
 %dir /var/lib/wtmpdb
 %ghost /var/lib/wtmpdb/wtmp.db
+%if %{with wtmpdbd}
+%attr(755,root,root) %{_libexecdir}/wtmpdbd
+%{_mandir}/man8/wtmpdbd.8*
+%{_mandir}/man8/wtmpdbd.service.8*
+%{_mandir}/man8/wtmpdbd.socket.8*
+%endif
 
 %files -n pam-pam_wtmpdb
 %defattr(644,root,root,755)
diff --git a/split-usr.patch b/split-usr.patch
index 89d71b4..67b49e4 100644
--- a/split-usr.patch
+++ b/split-usr.patch
@@ -1,9 +1,9 @@
---- wtmpdb-0.10.0/meson.build~	2023-12-13 14:56:33.000000000 +0100
-+++ wtmpdb-0.10.0/meson.build	2023-12-23 12:19:19.234489409 +0100
-@@ -86,7 +86,7 @@
- if prefixdir != rootprefixdir and rootprefixdir != '/' and not prefixdir.strip('/').startswith(rootprefixdir.strip('/') + '/')
+--- wtmpdb-0.74.0/meson.build.orig	2025-04-24 11:54:18.000000000 +0200
++++ wtmpdb-0.74.0/meson.build	2025-08-26 21:42:15.192904385 +0200
+@@ -88,7 +88,7 @@ if prefixdir != rootprefixdir and rootpr
          error('Prefix is not below root prefix (now rootprefix=@0@ prefix=@1@)'.format(rootprefixdir, prefixdir))
  endif
+ libexecdir = join_paths(prefixdir, get_option('libexecdir'))
 -systemunitdir = prefixdir / 'lib/systemd/system'
 +systemunitdir = '/lib/systemd/system'
  tmpfilesdir = prefixdir / 'lib/tmpfiles.d'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wtmpdb.git/commitdiff/5bf193e27d44f62c1c9e69039c8cfe8d73a2c547



More information about the pld-cvs-commit mailing list