[packages/sysstat] - allow packaging on systems without systemd
hawk
hawk at pld-linux.org
Sat Apr 27 20:22:33 CEST 2024
commit e68ea845a2b40f8567b6d45b345d7a936f4a5d51
Author: Marcin Krol <hawk at tld-linux.org>
Date: Sat Apr 27 20:05:23 2024 +0200
- allow packaging on systems without systemd
sysstat.spec | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/sysstat.spec b/sysstat.spec
index 0236fb2..143a04a 100644
--- a/sysstat.spec
+++ b/sysstat.spec
@@ -1,3 +1,4 @@
+%bcond_without systemd # systemd
#
# Fix or remove install.patch (seems systemd files are installed now)
Summary: The sar and iostat system monitoring commands
@@ -164,12 +165,14 @@ fi
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/sysstat
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sysstat
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sysstat.ioconf
+%if %{with systemd}
%{systemdunitdir}/sysstat.service
%{systemdunitdir}/sysstat-collect.service
%{systemdunitdir}/sysstat-collect.timer
%{systemdunitdir}/sysstat-summary.service
%{systemdunitdir}/sysstat-summary.timer
%{systemdunitdir}-sleep/sysstat.sleep
+%endif
%{_mandir}/man1/cifsiostat.1*
%{_mandir}/man1/iostat.1*
%{_mandir}/man1/mpstat.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sysstat.git/commitdiff/e68ea845a2b40f8567b6d45b345d7a936f4a5d51
More information about the pld-cvs-commit
mailing list