[packages/selinux-restorecond] - systemd user service startup, rel 2

baggins baggins at pld-linux.org
Mon Jan 10 23:05:02 CET 2022


commit 4635ce0f9f6711b07cc5fbca39d7203705ecbfe5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jan 10 23:03:36 2022 +0100

    - systemd user service startup, rel 2

 selinux-restorecond.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/selinux-restorecond.spec b/selinux-restorecond.spec
index df23d41..15b10ea 100644
--- a/selinux-restorecond.spec
+++ b/selinux-restorecond.spec
@@ -2,7 +2,7 @@ Summary:	restorecond - daemon which corrects contexts of newly created files
 Summary(pl.UTF-8):	restorecond - demon poprawiający konteksty nowo tworzonych plików
 Name:		selinux-restorecond
 Version:	3.1
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Daemons
 #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
@@ -15,10 +15,12 @@ BuildRequires:	glibc-devel >= 6:2.4
 BuildRequires:	pkgconfig
 BuildRequires:	pcre-devel
 BuildRequires:	libselinux-devel >= 3.1
-BuildRequires:	rpmbuild(macros) >= 1.682
+BuildRequires:	rpmbuild(macros) >= 2.011
 Requires(post,preun):	/sbin/chkconfig
+Requires(post,preun):	systemd-units >= 1:250.1
 Requires:	libselinux >= 3.1
 Requires:	rc-scripts
+Requires:	systemd-units >= 1:250.1
 Obsoletes:	policycoreutils-restorecond < 2.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -80,12 +82,14 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/chkconfig --add restorecond
 %service restorecond restart
+%systemd_user_post restorecond_user.service
 
 %preun
 if [ "$1" = "0" ]; then
 	%service restorecond stop
 	/sbin/chkconfig --del restorecond
 fi
+%systemd_user_preun restorecond_user.service
 
 %files
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/selinux-restorecond.git/commitdiff/4635ce0f9f6711b07cc5fbca39d7203705ecbfe5



More information about the pld-cvs-commit mailing list