1 Summary: ClusterNFS server
2 Summary(pl.UTF-8): Serwer ClusterNFS
7 Group: Networking/Daemons
8 URL: http://clusternfs.sourceforge.net/
9 Source0: http://dl.sourceforge.net/clusternfs/%{name}-%{version}rc2.tar.bz2
10 # Source0-md5: b25b578b2dd3222b554c4953a32efc8f
12 Source2: %{name}.sysconfig
13 Patch0: %{name}-types.patch
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libwrap-devel
17 BuildRequires: rpmbuild(macros) >= 1.268
18 Requires(post,preun): /sbin/chkconfig
19 Requires: portmap >= 4.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 ClusterNFS allows diskless clients to share a single root filesystem
28 by matching "tagged" filenames of the form "filename$$TAG=value$$"
29 with fallback to the original filename.
31 %description -l pl.UTF-8
32 ClusterNFS pozwala bezdyskowym klientom współdzielić pojedynczy system
33 plików wybierając odpowiednio "oznakowane" nazwy plików postaci
34 "plik$$TAG=wartość$$" z podmianą do oryginalnej nazwy.
37 %setup -q -n ClusterNFS
41 mv -f aclocal.m4 acinclude.m4
46 --ugidd=no --nis=yes \
48 --libwrap-directory=%{_prefix}/lib \
49 --exports-uid=0 --exports-gid=0 \
50 --log-mounts=yes --multi=yes \
51 --devtab=yes --trnames=yes \
52 --path_devtab=/var/lib/clusternfs/devtab
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
63 DESTDIR=$RPM_BUILD_ROOT
65 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clusternfs
66 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clusternfs
67 > $RPM_BUILD_ROOT%{_sysconfdir}/exports
70 rm -rf $RPM_BUILD_ROOT
73 /sbin/chkconfig --add clusternfs
74 %service clusternfs restart "NFS daemon"
77 if [ "$1" = "0" ]; then
78 %service clusternfs stop
79 /sbin/chkconfig --del clusternfs
83 %defattr(644,root,root,755)
84 %doc BUGS ChangeLog* EXAMPLE.ClusterNFS HALL_OF_FAME NEWS README* TODO*
85 %attr(754,root,root) /etc/rc.d/init.d/clusternfs
86 %attr(755,root,root) %{_sbindir}/rpc.*
89 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exports
90 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clusternfs