# TODO # - skip interfaces check: # checking for iface getifaddrs... # lo IP=127.0.0.1 NETMASK=255.0.0.0 # eth0 IP=x.x.x.x NETMASK=255.255.252.0 # - add support for /sbin/ss instead of /bin/netstat (ss uses kernel netlink # which is huge win on server with loads of open tcp sockets) # - patch scripts for pld # # Conditional build: %bcond_without ibverbs # InfiniBand support %bcond_without pcp # Performance Co-Pilot support # Summary: A Clustered Database based on Samba's Trivial Database (TDB) Summary(pl.UTF-8): Klastrowa baza danych oparta na bazie danych Trivial Database z Samby (TDB) Name: ctdb Version: 2.5.6 Release: 1 License: GPL v3+ Group: Daemons Source0: https://www.samba.org/ftp/ctdb/%{name}-%{version}.tar.gz # Source0-md5: efc50109f90a4c790124c35e4ba234ad Patch0: %{name}-format.patch URL: http://ctdb.samba.org/ %{?with_pcp:BuildRequires: pcp-devel} BuildRequires: popt-devel BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: talloc-devel BuildRequires: tdb-devel BuildRequires: tevent-devel %if %{with ibverbs} BuildRequires: libibverbs-devel BuildRequires: librdmacm-devel %endif Requires(post,preun): /sbin/chkconfig Requires: coreutils Requires: psmisc Requires: rc-scripts Requires: sed BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description CTDB is a cluster implementation of the TDB database used by Samba and other projects to store temporary data. If an application is already using TDB for temporary data it is very easy to convert that application to be cluster aware and use CTDB instead. %description -l pl.UTF-8 CTDB to klastrowa implementacja bazy danych TDB używanej w Sambie oraz innych projektach do przechowywania danych tymczasowych. Jeśli jakaś aplikacja już wykorzystuje TDB do trzymania danych tymczasowych, bardzo przerobić ją na klastrowalną, wykorzystującą CTDB. %package devel Summary: CTDB clustered database development package Summary(pl.UTF-8): Pakiet programistyczny klastrowej bazy danych CTDB Group: Development/Libraries Requires: tdb-devel # does not require base %description devel Header files etc. you can use to develop CTDB applications. %description devel -l pl.UTF-8 Pliki nagłówkowe i inne, przy użyciu których można tworzyć aplikacje wykorzystujące CTDB. %package -n pcp-ctdb Summary: CTDB PMDA Summary(pl.UTF-8): PMDA CTDB Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: pcp %description -n pcp-ctdb This PMDA extracts metrics from the locally running ctdbd daemon for export to PMCD. %description -n pcp-ctdb -l pl.UTF-8 Ten PMDA odczytuje pomiary z lokalnie działającego demona ctdbd w celu wyeksportowania do PMCD. %prep %setup -q %patch0 -p1 %build %configure \ %{?with_pcp:--enable-pmda} \ %{?with_ibverbs:--enable-infiniband} %{__make} showflags %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{systemdunitdir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT cp -a config/ctdb.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/ctdb install -p config/ctdb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/ctdb cp -p config/ctdb.service $RPM_BUILD_ROOT%{systemdunitdir} install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir} cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/ctdb.conf <