Summary: General-purpose symmetric cluster manager Summary(pl): Zarządca symetrycznych klastrów ogólnego przeznaczenia Name: cman Version: 1.0 %define bver pre32 Release: 0.%{bver}.1 License: GPL v2 Group: Applications/System Source0: http://people.redhat.com/cfeist/cluster/tgz/%{name}-%{version}-%{bver}.tar.gz # Source0-md5: 0564c8b91dfccb75de792414cccf16bd # from cman-kernel CVS Source1: cnxman-socket.h # NoSource1-md5: 5b10f050be925739f47b27ddb5075f5f (rev. 1.8) URL: http://sources.redhat.com/cluster/cman/ BuildRequires: ccs-devel BuildRequires: perl-base BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sbindir /sbin %description MAN is a symmetric, general-purpose, kernel-based cluster manager. It has two parts. Connection Manager (cnxman) handles membership, messaging, quorum, event notification and transitions. Service Manager (sm) handles "service groups" which are a general way of representing and managing instances of external systems that require cluster management. The CMAN cluster manager is the foundational system upon which DLM, GFS, CLVM, and Fence all depend. The CMAN API in the kernel and userspace is general and available for other programs to use. %description -l pl MAN to zarządca opartych na jądrze symetrycznych klastrów ogólnego przeznaczenia. Składa się z dwóch części. Zarządca połączeń (Connection Manager, cnxman) obsługuje członkostwo, komunikację, kworum, powiadamianie o zdarzeniach i przejścia. Zarządca usług (Service Manager, sm) obsługuje "grupy usług", które są ogólnym sposobem reprezentacji i zarządzania instancjami zewnętrznych systemów wymagających zarządzania klastrem. Zarządca klastrów CMAN to podstawowy system, na którym polegają DLM, GFS, CLVM i Fence. API CMAN-a w jądrze i przestrzeni użytkownika jest ogólne i w całości dostępne do wykorzystania w innych programach. %prep %setup -q -n %{name}-%{version}-%{bver} install -d include/cluster cp -f %{SOURCE1} include/cluster %{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile %{__perl} -pi -e 's/-g/%{rpmcflags}/' {cman_tool,tests}/Makefile %build ./configure \ --incdir=%{_includedir} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --prefix=%{_prefix} \ --sbindir=%{_sbindir} %{__make} \ CC="%{__cc}" \ incdir=`pwd`/include %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_sbindir}/* %{_mandir}/man5/cman.5* %{_mandir}/man8/cman_tool.8* #%attr(754,root,root) /etc/rc.d/init.d/cman