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

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