commit ad89da5455c9c84f10db6d83c4043d0ac8564952 Author: Marcin Krol <h...@tld-linux.org> Date: Sat Jul 22 15:35:44 2023 +0200
- allow building on systems without systemd multipath-tools.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- diff --git a/multipath-tools.spec b/multipath-tools.spec index 1e75d40..b6d024d 100644 --- a/multipath-tools.spec +++ b/multipath-tools.spec @@ -1,6 +1,7 @@ # # Conditional build: %bcond_with initrd # build initrd version (very broken) +%bcond_with systemd # systemd Summary: Tools to manage multipathed devices with the device-mapper Summary(pl.UTF-8): Implementacja wielotrasowego dostępu do zasobów przy użyciu device-mappera @@ -32,7 +33,7 @@ BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: rpmbuild(macros) >= 1.647 BuildRequires: sed >= 4.0 -BuildRequires: systemd-devel >= 1:209 +%{?with_systemd:BuildRequires: systemd-devel >= 1:209} BuildRequires: udev-devel BuildRequires: userspace-rcu-devel %if %{with initrd} @@ -210,8 +211,10 @@ fi /lib/udev/rules.d/56-multipath.rules # TODO: package for systemd? #/usr/lib/modules-load.d/multipath.conf +%if %{with systemd} %{systemdunitdir}/multipathd.service %{systemdunitdir}/multipathd.socket +%endif %{systemdtmpfilesdir}/multipath.conf %{_mandir}/man5/multipath.conf.5* %{_mandir}/man8/mpathpersist.8* ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/multipath-tools.git/commitdiff/ad89da5455c9c84f10db6d83c4043d0ac8564952 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit