Blame SOURCES/0013-Add-capability-to-share-collections-using-nfs.patch

39593f
From 5d045f6056750460e01f0b00d9004f64a6a6e1a6 Mon Sep 17 00:00:00 2001
39593f
From: Lubos Kardos <lkardos@redhat.com>
39593f
Date: Wed, 24 Sep 2014 10:27:47 +0200
39593f
Subject: [PATCH] Add capability to share collections using nfs
39593f
39593f
- Add macro nfsmountable. If this macro is defined then syconfdir and
39593f
  localstatedir are moved from /opt to /etc and /var.
39593f
---
39593f
 macros.scl | 5 ++++-
39593f
 1 file changed, 4 insertions(+), 1 deletion(-)
39593f
39593f
diff --git a/macros.scl b/macros.scl
39593f
index 67c76be..3bf00ce 100644
39593f
--- a/macros.scl
39593f
+++ b/macros.scl
39593f
@@ -65,8 +65,11 @@ package or when debugging this package.
39593f
 %global _libexecdir		%{_exec_prefix}/libexec
39593f
 %global _datadir		%{_prefix}/share
39593f
 %global _sysconfdir		%{_scl_root}/etc
39593f
-%global _sharedstatedir		%{_prefix}/com
d1a94d
+%{?nfsmountable:		%global _sysconfdir %{_root_sysconfdir}%{_scl_prefix}/%{scl}}
39593f
+%global _sharedstatedir		%{_scl_root}/var/lib
d1a94d
+%{?nfsmountable:		%global _sharedstatedir %{_root_localstatedir}%{_scl_prefix}/%{scl}/lib}
39593f
 %global _localstatedir		%{_scl_root}/var
d1a94d
+%{?nfsmountable:		%global _localstatedir %{_root_localstatedir}%{_scl_prefix}/%{scl}}
39593f
 %global _libdir			%{_exec_prefix}/%{_lib}
39593f
 %global _includedir		%{_prefix}/include
39593f
 %global _infodir		%{_datadir}/info
39593f
-- 
39593f
1.9.3
39593f