a3470f
From 77c5fda269bffe16d8564a5d26ed838ad9b6fcea Mon Sep 17 00:00:00 2001
a3470f
From: Jiffin Tony Thottan <jthottan@redhat.com>
a3470f
Date: Tue, 14 Nov 2017 12:43:29 +0530
a3470f
Subject: [PATCH 73/74] Fix build issues related to nfs-ganesha package
a3470f
a3470f
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
a3470f
---
a3470f
 glusterfs.spec.in | 20 +++++++++++++-------
a3470f
 1 file changed, 13 insertions(+), 7 deletions(-)
a3470f
a3470f
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
a3470f
index 05eff07..b6ba91c 100644
a3470f
--- a/glusterfs.spec.in
a3470f
+++ b/glusterfs.spec.in
a3470f
@@ -822,9 +822,6 @@ install -D -p -m 0644 extras/glusterfs-logrotate \
a3470f
 # ganesha ghosts
a3470f
 mkdir -p %{buildroot}%{_sysconfdir}/ganesha
a3470f
 touch %{buildroot}%{_sysconfdir}/ganesha/ganesha-ha.conf
a3470f
-mkdir -p %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
a3470f
-touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
a3470f
-touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
a3470f
 
a3470f
 %if ( 0%{!?_without_georeplication:1} )
a3470f
 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
a3470f
@@ -888,11 +885,13 @@ modprobe fuse
a3470f
 exit 0
a3470f
 %endif
a3470f
 
a3470f
+%if ( 0%{?_build_server} )
a3470f
 %if ( 0%{?fedora} && 0%{?fedora} > 25 )
a3470f
 %post ganesha
a3470f
 semanage boolean -m ganesha_use_fusefs --on
a3470f
 exit 0
a3470f
 %endif
a3470f
+%endif
a3470f
 
a3470f
 %if ( 0%{?_build_server} )
a3470f
 %if ( 0%{!?_without_georeplication:1} )
a3470f
@@ -1016,11 +1015,13 @@ fi
a3470f
 %postun api
a3470f
 /sbin/ldconfig
a3470f
 
a3470f
+%if ( 0%{?_build_server} )
a3470f
 %if ( 0%{?fedora} && 0%{?fedora} > 25 )
a3470f
 %postun ganesha
a3470f
 semanage boolean -m ganesha_use_fusefs --off
a3470f
 exit 0
a3470f
 %endif
a3470f
+%endif
a3470f
 
a3470f
 %postun libs
a3470f
 /sbin/ldconfig
a3470f
@@ -1037,20 +1038,24 @@ exit 0
a3470f
 ##-----------------------------------------------------------------------------
a3470f
 ## All %%trigger should be placed here and keep them sorted
a3470f
 ##
a3470f
+%if ( 0%{?_build_server} )
a3470f
 %if ( 0%{?fedora} && 0%{?fedora} > 25 )
a3470f
 %trigger ganesha -- selinux-policy-targeted
a3470f
 semanage boolean -m ganesha_use_fusefs --on
a3470f
 exit 0
a3470f
 %endif
a3470f
+%endif
a3470f
 
a3470f
 ##-----------------------------------------------------------------------------
a3470f
 ## All %%triggerun should be placed here and keep them sorted
a3470f
 ##
a3470f
+%if ( 0%{?_build_server} )
a3470f
 %if ( 0%{?fedora} && 0%{?fedora} > 25 )
a3470f
 %triggerun ganesha -- selinux-policy-targeted
a3470f
 semanage boolean -m ganesha_use_fusefs --off
a3470f
 exit 0
a3470f
 %endif
a3470f
+%endif
a3470f
 
a3470f
 ##-----------------------------------------------------------------------------
a3470f
 ## All %%files should be placed here and keep them grouped
a3470f
@@ -1074,6 +1079,11 @@ exit 0
a3470f
 %if ( ! 0%{?_build_server} )
a3470f
 # exclude ganesha files
a3470f
 %exclude %{_prefix}/lib/ocf/*
a3470f
+%exclude %{_libexecdir}/ganesha/*
a3470f
+%exclude %{_prefix}/lib/ocf/resource.d/heartbeat/*
a3470f
+%exclude %{_sysconfdir}/ganesha/ganesha-ha.conf.sample
a3470f
+%exclude %{_sysconfdir}/ganesha/ganesha-ha.conf
a3470f
+
a3470f
 # exclude incrementalapi
a3470f
 %exclude %{_libexecdir}/glusterfs/*
a3470f
 %exclude %{_sbindir}/gfind_missing_files
a3470f
@@ -1323,10 +1333,6 @@ exit 0
a3470f
 %{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
a3470f
 %{_sysconfdir}/ganesha/ganesha-ha.conf.sample
a3470f
 %ghost %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
a3470f
-%ghost %dir %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha
a3470f
-%ghost %dir %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
a3470f
-%ghost %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
a3470f
-%ghost %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
a3470f
 %endif
a3470f
 
a3470f
 %if ( 0%{?_build_server} )
a3470f
-- 
a3470f
1.8.3.1
a3470f