%define name ctdb %define version 1.0.77 %define release %mkrel 1 Summary: Clustered TDB Name: %name Version: %version Release: %release License: GPLv3 Group: System/Cluster URL: http://ctdb.samba.org/ Source: http://ctdb.samba.org/packages/redhat/RHEL5/ctdb-%{version}.tgz Patch2: ctdb-fix-fmt.patch BuildRequires: autoconf >= 2.50, automake >= 1.6 Requires(pre): chkconfig mktemp psmisc coreutils sed Requires(pre): rpm-helper Requires(postun): rpm-helper BuildRoot: %{_tmppath}/%{name}-%{version}-root %description ctdb is the clustered database used by samba %package devel Summary: Development files for ctdb Group: Development/Other %description devel devel files for ctdb %prep %setup -q %patch2 -p1 -b .fmt %build CC="gcc" ## always run autogen.sh ./autogen.sh export CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0 -D_GNU_SOURCE" %configure make showflags %make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig mkdir -p %{buildroot}/%{_initrddir} %makeinstall_std install -m644 config/ctdb.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ctdb install -m755 config/ctdb.init $RPM_BUILD_ROOT%{_initrddir}/ctdb perl -pi -e 's,/var/ctdb,/var/lib/ctdb,g' %{buildroot}/%{_initrddir}/%{name} mkdir -p %{buildroot}/var/lib/ctdb touch %{buildroot}/%{_sysconfdir}/ctdb/nodes %clean rm -rf $RPM_BUILD_ROOT %post %_post_service %{name} %preun %_preun_service %{name} %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/ctdb %attr(755,root,root) %{_initrddir}/ctdb %config(noreplace) %{_sysconfdir}/%{name}/nodes %doc doc/*html %{_sysconfdir}/ctdb/functions %{_sysconfdir}/ctdb/events.d/ %{_sysconfdir}/ctdb/statd-callout %{_sbindir}/ctdbd %{_bindir}/ctdb %{_bindir}/smnotify %{_bindir}/ctdb_ipmux %{_bindir}/ctdb_diagnostics %{_bindir}/onnode %{_mandir}/man1/ctdb.1.* %{_mandir}/man1/ctdbd.1.* %{_mandir}/man1/onnode.1.* %dir %attr(750,root,root) /var/lib/ctdb %files devel %defattr(-,root,root) %{_includedir}/ctdb.h %{_includedir}/ctdb_private.h %changelog * Wed Apr 15 2009 Buchan Milne <bgmilne@mandriva.org> 1.0.77-1mdv2009.1 + Revision: 367578 - New version 1.0.77 - Fix format-not-a-string-literal - Cleanups + Thierry Vignaud <tvignaud@mandriva.com> - rebuild * Fri Feb 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0-3mdv2008.1 + Revision: 164088 - require coreutils instead of fileutils * Thu Feb 07 2008 Erwan Velu <erwan@mandriva.org> 1.0-2mdv2008.1 + Revision: 163608 - Adding sub package for the devel files Removing %%config on initscript Fixing Requires * Thu Feb 07 2008 Erwan Velu <erwan@mandriva.org> 1.0-1mdv2008.1 + Revision: 163573 - cdtb for mandriva - import ctdb * Wed Feb 06 2008 : Version 1.0.27 - Add eventscript for iscsi * Thu Jan 31 2008 : Version 1.0.26 - Fix crashbug in tdb transaction code * Tue Jan 29 2008 : Version 1.0.25 - added async recovery code - make event scripts more portable - fixed ctdb dumpmemory - more efficient tdb allocation code - improved machine readable ctdb status output - added ctdb uptime * Wed Jan 16 2008 : Version 1.0.24 - added syslog support - documentation updates * Wed Jan 16 2008 : Version 1.0.23 - fixed a memory leak in the recoveryd - fixed a corruption bug in the new transaction code - fixed a case where an packet for a disconnected client could be processed - added http event script - updated documentation * Thu Jan 10 2008 : Version 1.0.22 - auto-run vacuum and repack ops * Wed Jan 09 2008 : Version 1.0.21 - added ctdb vacuum and ctdb repack code * Sun Jan 06 2008 : Version 1.0.20 - new transaction based recovery code * Sat Jan 05 2008 : Version 1.0.19 - fixed non-master bug - big speedup in recovery for large databases - lots of changes to improve tdb and ctdb for high churn databases * Thu Dec 27 2007 : Version 1.0.18 - fixed crash bug in monitor_handler * Tue Dec 04 2007 : Version 1.0.17 - fixed bugs related to ban/unban of nodes - fixed a race condition that could lead to monitoring being permanently disabled, which would lead to long recovery times - make deterministic IPs the default - fixed a bug related to continuous recovery - added a debugging option --node-ip