walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
cvsdist 59bb715
Summary: NFS utlilities and supporting daemons for the kernel NFS server.
cvsdist c905793
Name: nfs-utils
cvsdist 9d8f355
Version: 1.0.6
cvsdist 9d8f355
Release: 1
cvsdist 9d8f355
Source0: http://prdownloads.sourceforge.net/nfs/nfs-utils-1.0.6.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 9d8f355
Patch0: nfs-utils-0.2beta-nowrap.patch
cvsdist 9d8f355
Patch1: install-prefix.patch
cvsdist 9d8f355
Patch2: nfs-utils-1.0.5-statdpath.patch
cvsdist af1fa63
Patch3: nfs-utils-0.3.3.statd-manpage.patch
cvsdist 9d8f355
Patch4: nfs-utils-1.0.3-aclexport.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 85eb2b5
Requires: kernel >= 2.2.14, portmap >= 4.0, sed, gawk, sh-utils, fileutils, textutils, grep
cvsdist 7a8b656
Prereq: /sbin/chkconfig /usr/sbin/useradd /sbin/nologin
cvsdist c905793
cvsdist c905793
%description
cvsdist c905793
The nfs-utils package provides a daemon for the kernel NFS server and
cvsdist 59bb715
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 59bb715
This package also contains the showmount program.  Showmount queries the
cvsdist 59bb715
mount daemon on a remote host for information about the NFS (Network File
cvsdist 59bb715
System) server on the remote host.  For example, showmount can display the
cvsdist 59bb715
clients which are mounted on that host.
cvsdist c905793
cvsdist c905793
%prep
cvsdist c905793
%setup -q -a 1 
cvsdist 9d8f355
%patch0 -p0
cvsdist 9d8f355
%patch1 -p1 -b .prefix
cvsdist 9d8f355
%patch2 -p1 -b .statdpath
cvsdist 71d63d6
%patch3 -p1 -b .statd-manpage
cvsdist 9d8f355
#%patch4 -p1 -b .aclexp
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 c4251ba
CFLAGS="$RPM_OPT_FLAGS" %configure
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 7a8b656
rm %{buildroot}/%{_mandir}/man8/rpc.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 7a8b656
        -s /sbin/nologin -u 29 -d /var/lib/nfs rpcuser 2>/dev/null || :
cvsdist 85eb2b5
# If UID 65534 is unassigned, create user "nfsnobody"
cvsdist 85eb2b5
cat /etc/passwd | cut -d':' -f 3 | grep --quiet 65534 2>/dev/null
cvsdist 85eb2b5
if [ "$?" -eq 1 ]; then
cvsdist 9e219a7
	/usr/sbin/useradd -c "Anonymous NFS User" -r \
cvsdist 85eb2b5
		-s /sbin/nologin -u 65534 -d /var/lib/nfs nfsnobody 2>/dev/null || :
cvsdist 85eb2b5
fi
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 9d8f355
    /etc/rc.d/init.d/nfs stop
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 85eb2b5
    /usr/sbin/userdel nfsnobody 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 9d8f355
%config(noreplace) /var/lib/nfs/state
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 c4251ba
/usr/sbin/nhfs*
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 9d8f355
* Wed Oct 22 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Upgrated to 1.0.6
cvsdist 9d8f355
- Commented out the acl path for fedora
cvsdist 9d8f355
cvsdist 9d8f355
* Thu Aug  27 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Added the setting of lockd ports via sysclt interface
cvsdist 9d8f355
- Removed queue setting code since its no longer needed
cvsdist 9d8f355
cvsdist 9d8f355
* Thu Aug  7 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Added back the acl patch Taroon b2
cvsdist 9d8f355
cvsdist 9d8f355
* Wed Jul 23 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Commented out the acl patch (for now)
cvsdist 9d8f355
cvsdist 9d8f355
* Wed Jul 21 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Upgrated to 1.0.5
cvsdist 9d8f355
cvsdist 9d8f355
* Wed Jun 18 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Added security update
cvsdist 9d8f355
- Fixed the drop-privs.patch which means the chroot
cvsdist 9d8f355
patch could be removed.
cvsdist 9d8f355
cvsdist 9d8f355
* Mon Jun  9 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Defined the differ kinds of debugging avaliable for mountd in
cvsdist 9d8f355
the mountd man page. 
cvsdist 9d8f355
cvsdist 9d8f355
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 9d8f355
- rebuilt
cvsdist 9d8f355
cvsdist 9d8f355
* Tue Jun  3 2003 Steve Dickson <SteveD@RedHat.com>
cvsdist 9d8f355
- Upgraded to 1.0.3 
cvsdist 9d8f355
- Fixed numerous bugs in init scrips
cvsdist 9d8f355
- Added nfsstat overflow patch
cvsdist 19b677a
cvsdist 5816d0e
* Thu Jan 23 2003 Tim Powers <timp@redhat.com> 1.0.1-2.9
cvsdist 5816d0e
- rebuild
cvsdist 5816d0e
cvsdist 5816d0e
* Fri Dec 13 2002 Daniel J Walsh <dwalsh@redhat.com>
cvsdist 5816d0e
- change init script to not start rpc.lock if already running
cvsdist 5816d0e
cvsdist 5816d0e
* Wed Dec 11 2002 Daniel J Walsh <dwalsh@redhat.com>
cvsdist 5816d0e
- Moved access code to be after dropping privs
cvsdist 5816d0e
cvsdist c4251ba
* Mon Nov 18 2002 Stephen C. Tweedie <sct@redhat.com>
cvsdist c4251ba
- Build with %configure
cvsdist c4251ba
- Add nhfsgraph, nhfsnums and nhfsrun to the files list
cvsdist c4251ba
cvsdist c4251ba
* Mon Nov 11 2002 Stephen C. Tweedie <sct@redhat.com>
cvsdist c4251ba
- Don't drop privs until we've bound the notification socket
cvsdist c4251ba
cvsdist c4251ba
* Thu Nov  7 2002 Stephen C. Tweedie <sct@redhat.com>
cvsdist c4251ba
- Ignore SIGPIPE in rpc.mountd
cvsdist c4251ba
cvsdist e53021f
* Thu Aug  1 2002 Bob Matthews <bmatthews@redhat.com>
cvsdist e53021f
- Add Sean O'Connell's <sean@ee.duke.edu> nfs control tweaks
cvsdist e53021f
- to nfs init script.
cvsdist e53021f
cvsdist 6ae4499
* Mon Jul 22 2002 Bob Matthews <bmatthews@redhat.com>
cvsdist 6ae4499
- Move to nfs-utils-1.0.1
cvsdist 6ae4499
cvsdist af1fa63
* Mon Feb 18 2002 Bob Matthews <bmatthews@redhat.com>
cvsdist af1fa63
- "service nfs restart" should start services even if currently 
cvsdist af1fa63
-   not running (#59469)
cvsdist af1fa63
- bump version to 0.3.3-4
cvsdist af1fa63
cvsdist af1fa63
* Wed Oct  3 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist af1fa63
- Move to nfs-utils-0.3.3
cvsdist af1fa63
- Make nfsnobody a system account (#54221)
cvsdist 9e219a7
cvsdist 85eb2b5
* Tue Aug 21 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 4f69ea4
- if UID 65534 is unassigned, add user nfsnobody (#22685)
cvsdist 85eb2b5
cvsdist 85eb2b5
* Mon Aug 20 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 85eb2b5
- fix typo in nfs init script which prevented MOUNTD_PORT from working (#52113)
cvsdist 85eb2b5
cvsdist 1c22dc7
* Tue Aug  7 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 1c22dc7
- nfs init script shouldn't fail if /etc/exports doesn't exist (#46432)
cvsdist 1c22dc7
cvsdist 7a8b656
* Fri Jul 13 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 7a8b656
- Make %pre useradd consistent with other Red Hat packages.
cvsdist 4e513ec
cvsdist 7a8b656
* Tue Jul 03 2001 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 7a8b656
- Added sh-utils dependency for uname -r in nfs init script
cvsdist 7a8b656
cvsdist 7a8b656
* Tue Jun 12 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 7a8b656
- make non RH kernel release strings scan correctly in 
cvsdist 7a8b656
-   nfslock init script (#44186)
cvsdist 7a8b656
cvsdist 7a8b656
* Mon Jun 11 2001 Bob Matthews <bmatthews@redhat.com>
cvsdist 7a8b656
- don't install any rquota pages in _mandir: (#39707, #44119)
cvsdist 7a8b656
- don't try to manipulate rpc.rquotad in init scripts 
cvsdist 7a8b656
-   unless said program actually exists: (#43340)
cvsdist 7a8b656
cvsdist 7a8b656
* Tue Apr 10 2001 Preston Brown <pbrown@redhat.com>
cvsdist 7a8b656
- don't translate initscripts for 6.x
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