summaryrefslogtreecommitdiff
path: root/ctdb/packaging
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-03-05 20:34:48 +1100
committerMartin Schwenke <martins@samba.org>2018-03-09 07:08:24 +0100
commit5a99835c386d34d995c82aa491fae87995ead7db (patch)
tree81b50db78451a43296ac0d1c0a75efd334727967 /ctdb/packaging
parentb416ed72d43242432a0a151ec5cb5c3509e33a43 (diff)
downloadsamba-5a99835c386d34d995c82aa491fae87995ead7db.tar.gz
ctdb-packaging: Use RPM's local state directory
Instead of fixed /var. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/packaging')
-rw-r--r--ctdb/packaging/RPM/ctdb.spec.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/packaging/RPM/ctdb.spec.in b/ctdb/packaging/RPM/ctdb.spec.in
index 7e89634eed4..da5c8e6a15f 100644
--- a/ctdb/packaging/RPM/ctdb.spec.in
+++ b/ctdb/packaging/RPM/ctdb.spec.in
@@ -100,7 +100,7 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./buildtools/bin/waf configure \
--libexecdir=%{_libexecdir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
- --localstatedir="/var"
+ --localstatedir=%{_localstatedir}
./buildtools/bin/waf build
@@ -263,7 +263,7 @@ Requires: pcp-libs
Performance Co-Pilot (PCP) support for CTDB
%files pcp-pmda
-%dir /var/lib/pcp/pmdas/ctdb
-/var/lib/pcp/pmdas/ctdb/*
+%dir %{_localstatedir}/lib/pcp/pmdas/ctdb
+%{_localstatedir}/lib/pcp/pmdas/ctdb/*
%endif