From 4ef76f71c7ee52c7fa94bd45fb67538dfe1e3938 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 28 Apr 2018 08:30:06 +0200 Subject: [PATCH] - updated to 2.4.4 - handle qdevices,qnetd,libcgroup options --- corosync.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/corosync.spec b/corosync.spec index d5f6e86..f0ea567 100644 --- a/corosync.spec +++ b/corosync.spec @@ -8,19 +8,21 @@ %bcond_without testagents # test agents build %bcond_without watchdog # watchdog support %bcond_without monitoring # resource monitoring -%bcond_with qdevices # Quorum devices support [NOP as of 2.3.1] +%bcond_without qdevices # Quorum devices support +%bcond_without qnetd # Quorum Net Daemon support %bcond_without xmlconf # XML configuration support +%bcond_without libcgroup # libcgroup support # Summary: Corosync - OSI Certified implementation of a complete cluster engine Summary(pl.UTF-8): Corosync - implementacja silnika klastrowego certyfikowana przez OSI Name: corosync -Version: 2.4.2 +Version: 2.4.4 Release: 1 License: BSD Group: Base #Source0Download: http://corosync.org/download/ Source0: http://build.clusterlabs.org/corosync/releases/%{name}-%{version}.tar.gz -# Source0-md5: 547fa78704da53aa35912be58d31035f +# Source0-md5: 69db29ff4bc035936946be44fc8be5cd Source1: %{name}.init Source2: %{name}-notifyd.init Source3: %{name}-notifyd.sysconfig @@ -31,12 +33,13 @@ BuildRequires: automake >= 1:1.11 %{?with_apidocs:BuildRequires: doxygen} %{?with_apidocs:BuildRequires: graphviz} BuildRequires: groff +%{?with_libcgroup:BuildRequires: libcgroup-devel} BuildRequires: libqb-devel -%{?with_monitoring:BuildRequires: libstatgrab-devel} %if %{with rdma} BuildRequires: libibverbs-devel BuildRequires: librdmacm-devel %endif +%{?with_monitoring:BuildRequires: libstatgrab-devel} BuildRequires: libtool >= 2:2.2.6 %{?with_snmp:BuildRequires: net-snmp-devel} BuildRequires: nss-devel @@ -138,8 +141,10 @@ Dane SNMP MIB dla Corosync. %configure \ %{?with_augeas:--enable-augeas} \ %{?with_dbus:--enable-dbus} \ + %{?with_libcgroup:--enable-libcgroup} \ %{?with_monitoring:--enable-monitoring} \ %{?with_qdevices:--enable-qdevices} \ + %{?with_qnetd:--enable-qnetd} \ %{?with_rdma:--enable-rdma} \ --disable-silent-rules \ %{?with_snmp:--enable-snmp} \ @@ -173,6 +178,18 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-notifyd install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-notifyd +%if %{with qdevices} || %{with qnetd} +install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir} +cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/corosync.conf <