BuildRequires: libtevent-devel >= %{libtevent_version}
%endif
+# To build the ctdb-pcp-pmda package, run rpmbuild with "--with pmda"
+%define with_pcp_pmda %{?_with_pmda: 1} %{?!_with_pmda: 0}
+%if %with_pcp_pmda
+BuildRequires: pcp-libs-devel
+%endif
+
%description
ctdb is the clustered database used by samba
%endif
%if %with_included_tevent
--with-included-tevent \
+%endif
+%if %with_pcp_pmda
+ --enable-pmda \
%endif
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
%{_bindir}/ctdb_run_cluster_tests
%doc tests/README
+%if %with_pcp_pmda
+
+%package pcp-pmda
+Summary: CTDB PCP pmda support
+Group: Development/Tools
+Requires: ctdb = %{version}
+Requires: pcp-libs
+
+%description pcp-pmda
+Performance Co-Pilot (PCP) support for CTDB
+
+%files pcp-pmda
+%dir /var/lib/pcp/pmdas/ctdb
+/var/lib/pcp/pmdas/ctdb/*
+
+%endif
+
+
%changelog
* Thu Mar 1 2012 : Version 1.13