From: Marcin Krol Date: Thu, 25 Apr 2024 20:13:38 +0000 (+0200) Subject: - allow packaging on systems without systemd X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcluster-glue.git;a=commitdiff_plain;h=HEAD - allow packaging on systems without systemd --- diff --git a/cluster-glue.spec b/cluster-glue.spec index f96ef95..d2b3d55 100644 --- a/cluster-glue.spec +++ b/cluster-glue.spec @@ -4,6 +4,7 @@ # - separate some stonith plugins which have external dependencies? # # Conditional build: +%bcond_without systemd # systemd %bcond_without vacm # VACM stonith plugin # Summary: Reusable cluster components @@ -221,7 +222,9 @@ fi %defattr(644,root,root,755) %doc AUTHORS ChangeLog logd/logd.cf doc/stonith/README* %attr(754,root,root) /etc/rc.d/init.d/logd +%if %{with systemd} %{systemdunitdir}/logd.service +%endif %attr(755,root,root) %{_sbindir}/ha_logger %attr(755,root,root) %{_sbindir}/hb_report