[packages/rpcbind] - allow building on systems without systemd
hawk
hawk at pld-linux.org
Sun Dec 3 22:34:13 CET 2023
commit 670473569fe70e9526c29742296db9f5e3179fcb
Author: Marcin Krol <hawk at tld-linux.org>
Date: Sun Dec 3 22:28:20 2023 +0100
- allow building on systems without systemd
rpcbind.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/rpcbind.spec b/rpcbind.spec
index b9b8e07..93e03d5 100644
--- a/rpcbind.spec
+++ b/rpcbind.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_with rmtcalls # Remote Calls
+%bcond_without systemd # systemd
Summary: Universal addresses to RPC program number mapper
Summary(pl.UTF-8): Demon odwzorowujący adresy uniwersalne na numery programów RPC
@@ -28,7 +29,7 @@ BuildRequires: libtool
BuildRequires: libwrap-devel
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.623
-BuildRequires: systemd-devel
+%{?with_systemd:BuildRequires: systemd-devel}
Requires(post,preun): /sbin/chkconfig
Requires(post,preun,postun): systemd-units >= 38
Requires: /sbin/chkconfig
@@ -76,7 +77,11 @@ wywołania RPC na serwerze na tej maszynie.
--enable-warmstarts \
--with-statedir=/var/lib/rpcbind \
--with-rpcuser=rpc \
+%if %{with systemd}
--with-systemdsystemunitdir=%{systemdunitdir}
+%else
+ --without-systemdsystemunitdir
+%endif
%{__make}
%install
@@ -139,5 +144,8 @@ fi
%{_mandir}/man8/rpcbind.8*
%{_mandir}/man8/rpcinfo.8*
%dir %attr(700,rpc,root) %{_var}/lib/%{name}
+%if %{with systemd}
%{systemdunitdir}/rpcbind.service
%{systemdunitdir}/rpcbind.socket
+%endif
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpcbind.git/commitdiff/670473569fe70e9526c29742296db9f5e3179fcb
More information about the pld-cvs-commit
mailing list