diff options
author | Martin Schwenke <martin@meltin.net> | 2013-05-28 14:19:32 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-05-28 14:24:16 +1000 |
commit | 7adf52e6b31ffc6323b1d78a8e5ad2c84cc64530 (patch) | |
tree | 032e992f78b6513c39b40631a4b1545d8cb3fffd /ctdb/packaging | |
parent | 4a1eed5043034814f33437fdb7a7b39fe1680057 (diff) | |
download | samba-7adf52e6b31ffc6323b1d78a8e5ad2c84cc64530.tar.gz |
packaging: Create separate package for pcp pmda
To build ctdb-pcp-pmda package, run packaging/RPM/makerpms.sh script with
"--with pmda" option.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 85e11b9b13b3add88c1b8957be51793cc1db4f2d)
Diffstat (limited to 'ctdb/packaging')
-rw-r--r-- | ctdb/packaging/RPM/ctdb.spec.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ctdb/packaging/RPM/ctdb.spec.in b/ctdb/packaging/RPM/ctdb.spec.in index 98724279472..44bd46f6ca0 100644 --- a/ctdb/packaging/RPM/ctdb.spec.in +++ b/ctdb/packaging/RPM/ctdb.spec.in @@ -45,6 +45,12 @@ BuildRequires: libtdb-devel >= %{libtdb_version} 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 @@ -81,6 +87,9 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0 -D_GNU_SOURCE" ./configure \ %if %with_included_tevent --with-included-tevent \ %endif +%if %with_pcp_pmda + --enable-pmda \ +%endif --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ --mandir=%{_mandir} \ @@ -216,6 +225,24 @@ test suite for ctdb %{_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 |