[packages/lastlog2] - systemd import service

baggins baggins at pld-linux.org
Sat Dec 23 13:27:14 CET 2023


commit 139c22f8a5a05cd503cd9180503eceb9368c9dc2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Dec 23 12:31:50 2023 +0100

    - systemd import service

 lastlog2.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/lastlog2.spec b/lastlog2.spec
index c7ef161..d73ce62 100644
--- a/lastlog2.spec
+++ b/lastlog2.spec
@@ -15,6 +15,7 @@ BuildRequires:	pam-devel
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.736
 BuildRequires:	sqlite3-devel
+Requires:	systemd-units >= 38
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_sbindir	/sbin
@@ -91,7 +92,10 @@ install -d $RPM_BUILD_ROOT/var/lib/lastlog
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-p /sbin/ldconfig
+%post
+/sbin/ldconfig
+%systemd_post lastlog2-import.service
+
 %postun	-p /sbin/ldconfig
 
 %files
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lastlog2.git/commitdiff/139c22f8a5a05cd503cd9180503eceb9368c9dc2



More information about the pld-cvs-commit mailing list