5
5
%define _libexecdir %{_prefix}/local/libexec/
7
7
# if you wish to compile an rpm without rdma support, compile like this...
8
# rpmbuild -ta glusterfs-3.2.0.tar.gz --without rdma
8
# rpmbuild -ta glusterfs-3.2.1.tar.gz --without rdma
9
9
%{?_without_rdma:%define _without_rdma --disable-ibverbs}
11
11
# if you wish to compile an rpm without epoll...
12
# rpmbuild -ta glusterfs-3.2.0.tar.gz --without epoll
12
# rpmbuild -ta glusterfs-3.2.1.tar.gz --without epoll
13
13
%{?_without_epoll:%define _without_epoll --disable-epoll}
15
15
# if you wish to compile an rpm with fusermount...
16
# rpmbuild -ta glusterfs-3.2.0.tar.gz --with fusermount
16
# rpmbuild -ta glusterfs-3.2.1.tar.gz --with fusermount
17
17
%{?_with_fusermount:%define _with_fusermount --enable-fusermount}
19
19
# if you wish to compile an rpm without geo-replication support, compile like this...
20
# rpmbuild -ta glusterfs-3.2.0.tar.gz --without geo-replication
20
# rpmbuild -ta glusterfs-3.2.1.tar.gz --without geo-replication
21
21
%{?_without_geo-replication:%define _without_geo-replication --disable-geo-replication}
23
23
Summary: Cluster File System
26
26
Release: %{release}
28
28
Group: System Environment/Base
29
29
Vendor: Gluster Inc
30
30
Packager: gluster-users@gluster.org
31
31
URL: http://www.gluster.org/docs/index.php/GlusterFS
32
Source0: ftp://ftp.gluster.com/pub/gluster/glusterfs/3.2.0/glusterfs-3.2.0.tar.gz
32
Source0: ftp://ftp.gluster.com/pub/gluster/glusterfs/3.2.1/glusterfs-3.2.1.tar.gz
33
33
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
34
34
Requires(post): /sbin/chkconfig
35
35
Requires(preun): /sbin/service, /sbin/chkconfig
165
165
echo "%{_prefix}/lib64" > /etc/ld.so.conf.d/glusterfs.conf
168
if [ -d /etc/glusterd/vols ]; then
169
#for each dir under vols, backup non-fuse .vol files as .Vol.old
170
for file in `find /etc/glusterd/vols -type f ! -name *-fuse.vol `;
172
grep ".vol" $file &> /dev/null && fname=`basename $file .vol` && dname=`dirname $file` && cp $file $dname/$fname.Vol.old
168
176
pidof -c -o %PPID -x glusterd &> /dev/null
171
179
kill -9 `pgrep -f gsyncd.py` &> /dev/null
181
killall glusterd &> /dev/null
182
#add marker translator
183
glusterd --xlator-option *.upgrade=on
185
killall glusterd &> /dev/null
186
#start glusterd normally.
172
187
/etc/init.d/glusterd restart &> /dev/null
190
glusterd --xlator-option *.upgrade=on
192
killall glusterd &> /dev/null