Summary: ClusterNFS server Summary(pl): Serwer ClusterNFS Name: clusternfs Version: 3.0 Release: 0.rc2.1 License: GPL v2 Group: Networking/Daemons URL: http://clusternfs.sourceforge.net/ Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}rc2.tar.bz2 # Source0-md5: b25b578b2dd3222b554c4953a32efc8f Source1: %{name}.init Source2: %{name}.sysconfig Patch0: %{name}-types.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libwrap-devel PreReq: rc-scripts Requires(post,preun): /sbin/chkconfig Requires: portmap >= 4.0 Provides: nfscluster Conflicts: nfs-utils nfs-server BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description ClusterNFS allows diskless clients to share a single root filesystem by matching "tagged" filenames of the form "filename$$TAG=value$$" with fallback to the original filename. %description -l pl ClusterNFS pozwala bezdyskowym klientom współdzielić pojedynczy system plików wybierając odpowiednio "oznakowane" nazwy plików postaci "plik$$TAG=wartość$$" z podmianą do oryginalnej nazwy. %prep %setup -q -n ClusterNFS %patch0 -p1 %build mv -f aclocal.m4 acinclude.m4 %{__aclocal} %{__autoconf} ./BUILD --batch \ --rquotad=no \ --ugidd=no --nis=yes \ --hosts-access=yes \ --libwrap-directory=/usr/lib \ --exports-uid=0 --exports-gid=0 \ --log-mounts=yes --multi=yes \ --devtab=yes --trnames=yes \ --path_devtab=/var/lib/clusternfs/devtab %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clusternfs install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clusternfs > $RPM_BUILD_ROOT%{_sysconfdir}/exports %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add clusternfs if [ -r /var/lock/subsys/clusternfs ]; then /etc/rc.d/init.d/clusternfs restart >&2 else echo "Run \"/etc/rc.d/init.d/clusternfs start\" to start nfs daemon." fi %preun if [ "$1" = "0" ]; then if [ -r /var/lock/subsys/clusternfs ]; then /etc/rc.d/init.d/clusternfs stop >&2 fi /sbin/chkconfig --del clusternfs fi %files %defattr(644,root,root,755) %doc BUGS ChangeLog* EXAMPLE.ClusterNFS HALL_OF_FAME NEWS README* TODO* %attr(754,root,root) /etc/rc.d/init.d/clusternfs %attr(755,root,root) %{_sbindir}/rpc.* %{_mandir}/man5/* %{_mandir}/man8/[mn]* %attr(664,root,fileshare) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/exports %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/clusternfs /var/lib/clusternfs