Lines 28-47
Packager: Alexei Takaseev <taf@altlinux.ru>
Link Here
|
28 |
|
28 |
|
29 |
Source0: %name-%version.tar |
29 |
Source0: %name-%version.tar |
30 |
Source1: glusterd.sysconfig |
30 |
Source1: glusterd.sysconfig |
31 |
Source2: glusterfsd.sysconfig |
31 |
|
32 |
Source3: umount.glusterfs |
32 |
Source3: umount.glusterfs |
33 |
Source4: glusterfs-fuse.logrotate |
33 |
Source4: glusterfs-fuse.logrotate |
34 |
Source5: glusterd.logrotate |
34 |
Source5: glusterd.logrotate |
35 |
Source6: glusterfsd.logrotate |
35 |
Source6: glusterfsd.logrotate |
36 |
|
36 |
|
37 |
Source7: glusterd.init |
37 |
Source7: glusterd.init |
38 |
Source8: glusterfsd.init |
38 |
|
39 |
|
39 |
|
40 |
Patch0: %name-%version-%release.patch |
40 |
Patch0: %name-%version-%release.patch |
41 |
|
41 |
|
42 |
%define _init_install() install -D -p -m 0755 %1 %buildroot%_initdir/%2 ; |
42 |
%define _init_install() install -D -p -m 0755 %1 %buildroot%_initdir/%2 ; |
43 |
%define _init_file1 %_initdir/glusterd |
43 |
%define _init_file1 %_initdir/glusterd |
44 |
%define _init_file2 %_initdir/glusterfsd |
44 |
#%define _init_file2 %_initdir/glusterfsd |
45 |
|
45 |
|
46 |
# Automatically added by buildreq on Mon Nov 19 2012 |
46 |
# Automatically added by buildreq on Mon Nov 19 2012 |
47 |
BuildRequires: flex glibc-devel-static libibverbs-devel libreadline-devel libssl-devel libxml2-devel python-module-mwlib |
47 |
BuildRequires: flex glibc-devel-static libibverbs-devel libreadline-devel libssl-devel libxml2-devel python-module-mwlib |
Lines 212-221
install -p -m 0644 xlators/protocol/server/src/*.h \
Link Here
|
212 |
rm -f %buildroot/etc/init.d/glusterd |
212 |
rm -f %buildroot/etc/init.d/glusterd |
213 |
|
213 |
|
214 |
# Create logging directory |
214 |
# Create logging directory |
215 |
mkdir -p %buildroot%_logdir/gluster |
215 |
mkdir -p %buildroot%_logdir/glusterfs/ |
216 |
mkdir -p %buildroot%_logdir/gluster/glusterd |
|
|
217 |
mkdir -p %buildroot%_logdir/gluster/glusterfs |
218 |
mkdir -p %buildroot%_logdir/gluster/glusterfsd |
219 |
|
216 |
|
220 |
# Remove unwanted files from all the shared libraries |
217 |
# Remove unwanted files from all the shared libraries |
221 |
find %buildroot%_libdir -name '*.a' -delete |
218 |
find %buildroot%_libdir -name '*.a' -delete |
Lines 243-253
rm -f examples/Makefile*
Link Here
|
243 |
|
240 |
|
244 |
# Install init script and sysconfig file |
241 |
# Install init script and sysconfig file |
245 |
%_init_install %SOURCE7 glusterd |
242 |
%_init_install %SOURCE7 glusterd |
246 |
%_init_install %SOURCE8 glusterfsd |
|
|
247 |
install -D -p -m 0644 %SOURCE1 \ |
243 |
install -D -p -m 0644 %SOURCE1 \ |
248 |
%buildroot%_sysconfdir/sysconfig/glusterd |
244 |
%buildroot%_sysconfdir/sysconfig/glusterd |
249 |
install -D -p -m 0644 %SOURCE2 \ |
|
|
250 |
%buildroot%_sysconfdir/sysconfig/glusterfsd |
251 |
# Install wrapper umount script |
245 |
# Install wrapper umount script |
252 |
install -D -p -m 0755 %SOURCE3 \ |
246 |
install -D -p -m 0755 %SOURCE3 \ |
253 |
%buildroot/sbin/umount.glusterfs |
247 |
%buildroot/sbin/umount.glusterfs |
Lines 266-274
install -D -p -m 644 extras/glusterfs.vim \
Link Here
|
266 |
|
260 |
|
267 |
%files |
261 |
%files |
268 |
%doc ChangeLog INSTALL README THANKS COPYING-GPLV2 COPYING-LGPLV3 |
262 |
%doc ChangeLog INSTALL README THANKS COPYING-GPLV2 COPYING-LGPLV3 |
269 |
#%config(noreplace) %_sysconfdir/logrotate.d/glusterd |
|
|
270 |
#%config(noreplace) %_sysconfdir/sysconfig/glusterd |
271 |
#%_libdir/glusterfs |
272 |
%_libdir/*.so.* |
263 |
%_libdir/*.so.* |
273 |
%_sbindir/glusterfs* |
264 |
%_sbindir/glusterfs* |
274 |
%_sbindir/gluster |
265 |
%_sbindir/gluster |
Lines 279-285
install -D -p -m 644 extras/glusterfs.vim \
Link Here
|
279 |
%_libdir/glusterfs/%version/auth/ |
270 |
%_libdir/glusterfs/%version/auth/ |
280 |
%_libdir/glusterfs/%version/xlator/ |
271 |
%_libdir/glusterfs/%version/xlator/ |
281 |
%exclude %_libdir/glusterfs/%version/xlator/mount/fuse* |
272 |
%exclude %_libdir/glusterfs/%version/xlator/mount/fuse* |
282 |
%_logdir/gluster/* |
273 |
%_logdir/glusterfs |
283 |
%_man8dir/*gluster*.8* |
274 |
%_man8dir/*gluster*.8* |
284 |
%exclude %_man8dir/mount.glusterfs.8* |
275 |
%exclude %_man8dir/mount.glusterfs.8* |
285 |
%if 0%{!?_without_rdma:1} |
276 |
%if 0%{!?_without_rdma:1} |
Lines 316-325
install -D -p -m 644 extras/glusterfs.vim \
Link Here
|
316 |
%config(noreplace) %_sysconfdir/glusterfs |
307 |
%config(noreplace) %_sysconfdir/glusterfs |
317 |
# Legacy configs |
308 |
# Legacy configs |
318 |
%config(noreplace) %_sysconfdir/logrotate.d/glusterfsd |
309 |
%config(noreplace) %_sysconfdir/logrotate.d/glusterfsd |
319 |
%config(noreplace) %_sysconfdir/sysconfig/glusterfsd |
|
|
320 |
%_sharedstatedir/glusterd |
310 |
%_sharedstatedir/glusterd |
321 |
%_init_file1 |
311 |
%_init_file1 |
322 |
%_init_file2 |
|
|
323 |
|
312 |
|
324 |
%files vim |
313 |
%files vim |
325 |
%doc COPYING-GPLV2 COPYING-LGPLV3 |
314 |
%doc COPYING-GPLV2 COPYING-LGPLV3 |
Lines 332-342
install -D -p -m 644 extras/glusterfs.vim \
Link Here
|
332 |
%_libdir/pkgconfig/glusterfs-api.pc |
321 |
%_libdir/pkgconfig/glusterfs-api.pc |
333 |
|
322 |
|
334 |
%post server |
323 |
%post server |
335 |
%post_service glusterfsd |
|
|
336 |
%post_service glusterd |
324 |
%post_service glusterd |
337 |
|
325 |
|
338 |
%preun server |
326 |
%preun server |
339 |
%preun_service glusterfsd |
|
|
340 |
%preun_service glusterd |
327 |
%preun_service glusterd |
341 |
|
328 |
|
342 |
%changelog |
329 |
%changelog |
343 |
- |
|
|