walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
cvsdist c905793
Summary: NFS utlilities and supporting daemons for the kernel NFS server.
cvsdist c905793
Name: nfs-utils
cvsdist 71d63d6
Version: 0.3.1
cvsdist 4e513ec
Release: 8
cvsdist 1ea8452
Source0: ftp://nfs.sourceforge.net/pub/nfs/nfs-utils-%{version}.tar.gz
cvsdist c905793
Source1: ftp://nfs.sourceforge.net/pub/nfs/nfs.doc.tar.gz
cvsdist c905793
Source10: nfs.init
cvsdist c905793
Source11: nfslock.init
cvsdist 71d63d6
Patch0: nfs-utils-0.3.1-drop-privs.patch
cvsdist 1ea8452
Patch1: nfs-utils-0.2beta-nowrap.patch
cvsdist 71d63d6
Patch2: no-chroot.patch
cvsdist 71d63d6
Patch3: nfs-utils-0.3.1-statd-manpage.patch
cvsdist 71d63d6
Patch4: eepro-support.patch
cvsdist 71d63d6
Patch5: time-h.patch
cvsdist 71d63d6
Patch6: syslog-level.patch
cvsdist c905793
Group: System Environment/Daemons
cvsdist c905793
Obsoletes: nfs-server
cvsdist c905793
Obsoletes: knfsd
cvsdist c905793
Obsoletes: knfsd-clients
cvsdist c905793
Obsoletes: nfs-server-clients 
cvsdist c905793
Obsoletes: knfsd-lock
cvsdist c905793
Provides: nfs-server 
cvsdist c905793
Provides: nfs-server-clients 
cvsdist c905793
Provides: knfsd-lock 
cvsdist c905793
Provides: knfsd-clients 
cvsdist c905793
Provides: knfsd
cvsdist c905793
License: GPL
cvsdist c905793
Buildroot: %{_tmppath}/%{name}-root
cvsdist 71d63d6
Requires: kernel >= 2.2.14, portmap >= 4.0, sed, gawk
cvsdist c905793
Prereq: /sbin/chkconfig /usr/sbin/useradd
cvsdist c905793
cvsdist c905793
%description
cvsdist c905793
The nfs-utils package provides a daemon for the kernel NFS server and
cvsdist c905793
related tools, which provides a much higher level of performance than the
cvsdist c905793
traditional Linux NFS server used by most users.
cvsdist c905793
cvsdist c905793
This package also contains the showmount program.  Showmount queries the
cvsdist c905793
mount daemon on a remote host for information about the NFS (Network File
cvsdist c905793
System) server on the remote host.  For example, showmount can display the
cvsdist c905793
clients which are mounted on that host.
cvsdist c905793
cvsdist c905793
%prep
cvsdist c905793
%setup -q -a 1 
cvsdist c905793
%patch -p1 -b .drop-privs
cvsdist 1ea8452
%patch1 -p0
cvsdist 71d63d6
%patch2 -p1 -b .no-chroot
cvsdist 71d63d6
%patch3 -p1 -b .statd-manpage
cvsdist 71d63d6
%patch4 -p1 -b .eepro-support
cvsdist 71d63d6
%patch5 -p1 -b .time-h
cvsdist 71d63d6
%patch6 -p1 -b .syslog-level
cvsdist c905793
cvsdist c905793
%build
cvsdist 71d63d6
#
cvsdist 71d63d6
# Hack to enable netgroups.  If anybody knows the right way to do
cvsdist 71d63d6
# this, please help yourself.
cvsdist 71d63d6
#
cvsdist 71d63d6
ac_cv_func_innetgr=yes \
cvsdist 1ea8452
CFLAGS="$RPM_OPT_FLAGS" ./configure --mandir=${RPM_BUILD_ROOT}%{_mandir}
cvsdist c905793
make all
cvsdist c905793
cvsdist c905793
%install
cvsdist c905793
rm -rf $RPM_BUILD_ROOT
cvsdist 1ea8452
mkdir -p $RPM_BUILD_ROOT{/sbin,/usr/sbin}
cvsdist 1ea8452
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/{man5,man8}
cvsdist c905793
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cvsdist c905793
make install install_prefix=$RPM_BUILD_ROOT
cvsdist c905793
install -s -m 755 tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
cvsdist c905793
install -m 755 %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
cvsdist c905793
install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
cvsdist c905793
touch $RPM_BUILD_ROOT/var/lib/nfs/rmtab
cvsdist c905793
mv $RPM_BUILD_ROOT/usr/sbin/{rpc.lockd,rpc.statd} $RPM_BUILD_ROOT/sbin
cvsdist c905793
cvsdist c905793
mkdir -p $RPM_BUILD_ROOT/var/lib/nfs/statd
cvsdist c905793
cvsdist 71d63d6
# we are using quotad from quota utils
cvsdist 71d63d6
rm %{buildroot}/%{_mandir}/man8/rquotad*
cvsdist 71d63d6
rm %{buildroot}/%{_sbindir}/rpc.rquotad
cvsdist 71d63d6
cvsdist c905793
%clean
cvsdist c905793
rm -rf $RPM_BUILD_ROOT
cvsdist c905793
cvsdist c905793
%pre
cvsdist c905793
/usr/sbin/useradd -c "RPC Service User" -r \
cvsdist c905793
        -s /bin/false -u 29 -d /var/lib/nfs rpcuser 2>/dev/null || :
cvsdist c905793
cvsdist c905793
%post
cvsdist c905793
/sbin/chkconfig --add nfs
cvsdist c905793
/sbin/chkconfig --add nfslock
cvsdist c905793
cvsdist c905793
%preun
cvsdist c905793
if [ "$1" = "0" ]; then
cvsdist c905793
    /sbin/chkconfig --del nfs
cvsdist c905793
    /sbin/chkconfig --del nfslock
cvsdist c905793
    /usr/sbin/userdel rpcuser 2>/dev/null || :
cvsdist c905793
    /usr/sbin/groupdel rpcuser 2>/dev/null || :
cvsdist c905793
fi
cvsdist c905793
cvsdist c905793
%triggerpostun -- nfs-server
cvsdist c905793
/sbin/chkconfig --add nfs
cvsdist c905793
cvsdist c905793
%triggerpostun -- knfsd
cvsdist c905793
/sbin/chkconfig --add nfs
cvsdist c905793
cvsdist c905793
%triggerpostun -- knfsd-clients
cvsdist c905793
/sbin/chkconfig --add nfslock
cvsdist c905793
cvsdist c905793
%files
cvsdist c905793
%defattr(-,root,root)
cvsdist c905793
%config /etc/rc.d/init.d/nfs
cvsdist c905793
%dir /var/lib/nfs
cvsdist c905793
%dir %attr(700,rpcuser,rpcuser) /var/lib/nfs/statd
cvsdist c905793
%config(noreplace) /var/lib/nfs/xtab
cvsdist c905793
%config(noreplace) /var/lib/nfs/etab
cvsdist c905793
%config(noreplace) /var/lib/nfs/rmtab
cvsdist c905793
%doc nfs/*.html nfs/*.ps linux-nfs/*
cvsdist c905793
/sbin/rpcdebug
cvsdist c905793
/sbin/rpc.lockd
cvsdist c905793
/sbin/rpc.statd
cvsdist c905793
/usr/sbin/exportfs
cvsdist c905793
/usr/sbin/nfsstat
cvsdist c905793
/usr/sbin/nhfsstone
cvsdist c905793
/usr/sbin/rpc.mountd
cvsdist c905793
/usr/sbin/rpc.nfsd
cvsdist c905793
/usr/sbin/showmount
cvsdist c905793
%{_mandir}/*/*
cvsdist c905793
%config /etc/rc.d/init.d/nfslock
cvsdist c905793
cvsdist c905793
%changelog
cvsdist 4e513ec
* Fri Apr 21 2001 Bill Nottingham <notting@redhat.com>
cvsdist 4e513ec
- re-disable quota stuff for non-errata :)
cvsdist 4e513ec
cvsdist 4e513ec
* Tue Apr 17 2001 Preston Brown <pbrown@redhat.com>
cvsdist 4e513ec
- re-enable quota stuff for errata
cvsdist 4e513ec
cvsdist 426d8c6
* Tue Apr 10 2001 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 426d8c6
- do not start lockd on kernel 2.2.18 or higher (done automatically)
cvsdist 426d8c6
cvsdist 71d63d6
* Fri Mar 30 2001 Preston Brown <pbrown@redhat.com>
cvsdist 71d63d6
- don't use rquotad from here now; quota package contains a version that 
cvsdist 71d63d6
  works with 2.4 (#33738)
cvsdist 71d63d6
cvsdist 71d63d6
* Tue Mar 12 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- Statd logs at LOG_DAEMON rather than LOG_LOCAL5
cvsdist 71d63d6
- s/nfs/\$0/ where appropriate in init scripts
cvsdist 71d63d6
cvsdist 71d63d6
* Tue Mar  6 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 71d63d6
- Move to nfs-utils-0.3.1
cvsdist 71d63d6
cvsdist 71d63d6
* Wed Feb 14 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- #include <time.h> patch
cvsdist 71d63d6
cvsdist 71d63d6
* Mon Feb 12 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- Really enable netgroups
cvsdist 71d63d6
cvsdist 71d63d6
* Mon Feb  5 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 71d63d6
- i18nize initscripts
cvsdist 71d63d6
cvsdist 71d63d6
* Fri Jan 19 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- Increased {s,r}blen in rpcmisc.c:makesock to accommodate eepro100
cvsdist 71d63d6
cvsdist 71d63d6
* Tue Jan 16 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- Hackish fix in build section to enable netgroups
cvsdist 71d63d6
cvsdist 71d63d6
* Wed Jan  3 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- Fix incorrect file specifications in statd manpage.
cvsdist 71d63d6
- Require gawk 'cause it's used in nfslock init script.
cvsdist 71d63d6
cvsdist 71d63d6
* Thu Dec 13 2000 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- Require sed because it's used in nfs init script
cvsdist 71d63d6
cvsdist 71d63d6
* Tue Dec 12 2000 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- Don't do a chroot(2) after dropping privs, in statd.
cvsdist 71d63d6
cvsdist 71d63d6
* Mon Dec 11 2000 Bob Matthews <bmatthews@redhat.com>
cvsdist 71d63d6
- NFSv3 if kernel >= 2.2.18, detected in init script
cvsdist 71d63d6
cvsdist 71d63d6
* Thu Nov 23 2000 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 71d63d6
- update to 0.2.1
cvsdist 71d63d6
cvsdist 71d63d6
* Tue Nov 14 2000 Bill Nottingham <notting@redhat.com>
cvsdist 71d63d6
- don't start lockd on 2.4 kernels; it's unnecessary
cvsdist 71d63d6
cvsdist 1ea8452
* Tue Sep  5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 1ea8452
- more portable fix for mandir
cvsdist 1ea8452
cvsdist 1ea8452
* Sun Sep  3 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 1ea8452
- update to 0.2-release
cvsdist 1ea8452
cvsdist 1ea8452
* Fri Sep  1 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 1ea8452
- fix reload script
cvsdist 1ea8452
cvsdist 1ea8452
* Thu Aug 31 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 1ea8452
- update to 0.2 from CVS
cvsdist 1ea8452
- adjust statd-drop-privs patch
cvsdist 1ea8452
- disable tcp_wrapper support
cvsdist 1ea8452
cvsdist c905793
* Wed Aug  2 2000 Bill Nottingham <notting@redhat.com>
cvsdist c905793
- fix stop priority of nfslock
cvsdist c905793
cvsdist c905793
* Tue Aug  1 2000 Bill Nottingham <notting@redhat.com>
cvsdist c905793
- um, actually *include and apply* the statd-drop-privs patch
cvsdist c905793
cvsdist c905793
* Mon Jul 24 2000 Bill Nottingham <notting@redhat.com>
cvsdist c905793
- fix init script ordering (#14502)
cvsdist c905793
cvsdist c905793
* Sat Jul 22 2000 Bill Nottingham <notting@redhat.com>
cvsdist c905793
- run statd chrooted and as non-root
cvsdist c905793
- add prereqs
cvsdist c905793
cvsdist c905793
* Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist c905793
- use "License", not "Copyright"
cvsdist c905793
- use %%{_tmppath} and %%{_mandir}
cvsdist c905793
cvsdist c905793
* Mon Jul 17 2000 Matt Wilson <msw@redhat.com>
cvsdist c905793
- built for next release
cvsdist c905793
cvsdist c905793
* Mon Jul 17 2000 Matt Wilson <msw@redhat.com>
cvsdist c905793
- 0.1.9.1
cvsdist c905793
- remove patch0, has been integrated upstream
cvsdist c905793
cvsdist c905793
* Wed Feb  9 2000 Bill Nottingham <notting@redhat.com>
cvsdist c905793
- the wonderful thing about triggers, is triggers are wonderful things...
cvsdist c905793
cvsdist c905793
* Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
cvsdist c905793
- switch to nfs-utils as the base tree
cvsdist c905793
- fix the statfs patch for the new code base
cvsdist c905793
- single package that obsoletes everything we had before (if I am to keep
cvsdist c905793
  some traces of my sanity with me...)
cvsdist c905793
cvsdist c905793
* Mon Jan 17 2000 Preston Brown <pbrown@redhat.com>
cvsdist c905793
- use statfs syscall instead of stat to determinal optimal blksize