cvsdist f128f4
Summary: A tool for automatically mounting and unmounting filesystems.
cvsdist f128f4
Name: autofs
cvsdist f128f4
Version: 3.1.5
cvsdist f128f4
Release: 5
cvsdist f128f4
Epoch: 1
cvsdist f128f4
Copyright: GPL
cvsdist f128f4
Group: System Environment/Daemons
cvsdist f128f4
Source: ftp://ftp.kernel.org/pub/linux/daemons/autofs/autofs-%{version}.tar.bz2
cvsdist f128f4
Patch0: autofs-3.1.6-doc.patch
cvsdist f128f4
Patch1: autofs-3.1.4-loop.patch
cvsdist f128f4
Patch2: autofs-3.1.4-modules.patch
cvsdist f128f4
Patch3: autofs-3.1.5-hesiod-bind.patch
cvsdist f128f4
Patch4: autofs-3.1.5-init.patch
cvsdist f128f4
Patch5: autofs-3.1.4-linux-2.3.patch
cvsdist f128f4
Patch6: autofs-4.0.0-ldap.patch
cvsdist f128f4
Patch7: autofs-4.0.0-open_max.patch
cvsdist f128f4
Patch8: autofs-4.0.0-clean.patch
cvsdist f128f4
Patch9: autofs-4.0.0-initialize.patch
cvsdist f128f4
Patch10: ftp://ftp.kernel.org/pub/linux/daemons/autofs/testing-v3/autofs-3.1.6-pre2.patch.bz2
cvsdist f128f4
Buildroot: %{_tmppath}/%{name}-tmp
cvsdist f128f4
BuildPrereq: bind-devel, openldap-devel
cvsdist f128f4
Prereq: /sbin/chkconfig, /etc/init.d
cvsdist f128f4
Requires: /bin/bash, mktemp, sed, textutils, sh-utils, grep, /bin/ps
cvsdist f128f4
Obsoletes: autofs-ldap
cvsdist f128f4
cvsdist f128f4
%description
cvsdist f128f4
Autofs controls the operation of the automount daemons. The automount
cvsdist f128f4
daemons automatically mount filesystems when you use them and
cvsdist f128f4
unmount them after a period of inactivity. Filesystems can include
cvsdist f128f4
network filesystems, CD-ROMs, floppies and others.
cvsdist f128f4
cvsdist f128f4
Install this package if you want a program for automatically mounting
cvsdist f128f4
and unmounting filesystems. If your Red Hat Linux machine is on a
cvsdist f128f4
network, you should install autofs.
cvsdist f128f4
cvsdist f128f4
%prep
cvsdist f128f4
%setup -q
cvsdist f128f4
%patch10 -p1 -b .pre1
cvsdist f128f4
%patch0 -p1 -b .doc
cvsdist f128f4
%patch1 -p1 -b .loop
cvsdist f128f4
%patch2 -p1 -b .modules
cvsdist f128f4
%patch3 -p1 -b .hesiod-bind
cvsdist f128f4
%patch4 -p1 -b .init
cvsdist f128f4
%patch5 -p1 -b .linux-2.3
cvsdist f128f4
#%patch6 -p1 -b .ldap
cvsdist f128f4
%patch7 -p1 -b .open_max
cvsdist f128f4
#%patch8 -p1 -b .clean
cvsdist f128f4
#%patch9 -p1 -b .initialize
cvsdist f128f4
chmod u+w configure
cvsdist f128f4
autoconf
cvsdist f128f4
cvsdist f128f4
%build
cvsdist f128f4
CFLAGS=-ggdb; export CFLAGS
cvsdist f128f4
%configure --with-hesiod=/usr/lib/bind --with-openldap=/usr
cvsdist f128f4
make
cvsdist f128f4
cvsdist f128f4
%install
cvsdist f128f4
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cvsdist f128f4
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cvsdist f128f4
mkdir -p $RPM_BUILD_ROOT%{_libdir}/autofs
cvsdist f128f4
mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
cvsdist f128f4
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
cvsdist f128f4
cvsdist f128f4
%{makeinstall} autofslibdir=$RPM_BUILD_ROOT%{_libdir}/autofs
cvsdist f128f4
install -m 755 samples/rc.autofs $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
cvsdist f128f4
install -m 644 samples/auto.master $RPM_BUILD_ROOT/etc
cvsdist f128f4
install -m 644 samples/auto.misc $RPM_BUILD_ROOT/etc
cvsdist f128f4
#install -m 755 samples/auto.net $RPM_BUILD_ROOT/etc/auto.net
cvsdist f128f4
install -m 755 -d $RPM_BUILD_ROOT/misc
cvsdist f128f4
#install -m 755 -d $RPM_BUILD_ROOT/net
cvsdist f128f4
cvsdist f128f4
%clean
cvsdist f128f4
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cvsdist f128f4
cvsdist f128f4
%post
cvsdist f128f4
/sbin/chkconfig --add autofs
cvsdist f128f4
cvsdist f128f4
%postun
cvsdist f128f4
if [ $1 -ge 1 ] ; then
cvsdist f128f4
	/sbin/service autofs condrestart > /dev/null 2>&1 || :
cvsdist f128f4
fi
cvsdist f128f4
cvsdist f128f4
%preun
cvsdist f128f4
if [ "$1" = 0 ] ; then
cvsdist f128f4
	/sbin/service autofs stop > /dev/null 2>&1
cvsdist f128f4
	chkconfig --del autofs
cvsdist f128f4
fi
cvsdist f128f4
exit 0
cvsdist f128f4
cvsdist f128f4
%files
cvsdist f128f4
%defattr(-,root,root)
cvsdist f128f4
%doc COPYING COPYRIGHT NEWS README* TODO
cvsdist f128f4
%config /etc/rc.d/init.d/autofs
cvsdist f128f4
%config(noreplace) /etc/auto.master
cvsdist f128f4
%config(missingok) /etc/auto.misc
cvsdist f128f4
%{_sbindir}/automount
cvsdist f128f4
%dir %{_libdir}/autofs
cvsdist f128f4
%{_libdir}/autofs/lookup_file.so
cvsdist f128f4
%{_libdir}/autofs/lookup_hesiod.so
cvsdist f128f4
%{_libdir}/autofs/lookup_multi.so
cvsdist f128f4
%{_libdir}/autofs/lookup_nisplus.so
cvsdist f128f4
%{_libdir}/autofs/lookup_ldap.so
cvsdist f128f4
%{_libdir}/autofs/lookup_program.so
cvsdist f128f4
%{_libdir}/autofs/lookup_userhome.so
cvsdist f128f4
%{_libdir}/autofs/lookup_yp.so
cvsdist f128f4
%{_libdir}/autofs/mount*
cvsdist f128f4
%{_libdir}/autofs/parse*
cvsdist f128f4
%{_mandir}/*/*
cvsdist f128f4
%dir /misc
cvsdist f128f4
cvsdist f128f4
#%config /etc/auto.net
cvsdist f128f4
#%dir /net
cvsdist f128f4
cvsdist f128f4
%changelog
cvsdist f128f4
* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- convert YP map names that start with "auto_" to "auto." (#16753)
cvsdist f128f4
cvsdist f128f4
* Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- add an extra pause after the initial shutdown attempt
cvsdist f128f4
cvsdist f128f4
* Fri Aug 11 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- patch init script to not shut down --submount mounts on reload
cvsdist f128f4
- remove temporary files again during reload
cvsdist f128f4
cvsdist f128f4
* Thu Aug 10 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- revert to 3.1.5
cvsdist f128f4
- add 3.1.6pre1 patch to handle LDAP maps
cvsdist f128f4
- add Epoch: to upgrade from Raw Hide or Pinstripe
cvsdist f128f4
- update to 3.1.6pre2
cvsdist f128f4
cvsdist f128f4
* Fri Aug  4 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- work around kernel insmod concurrency problem (#14972) by loading the module
cvsdist f128f4
  at start-time
cvsdist f128f4
cvsdist f128f4
* Wed Aug  2 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- fix duplicate detection for false matches (e.g. "/user" == "/users") (#15183)
cvsdist f128f4
cvsdist f128f4
* Mon Aug  1 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- merge ldap subpackage back into the main one and Obsolete: it
cvsdist f128f4
- clean up build warnings
cvsdist f128f4
- fix errors automounting ext2 filesystems due to uninitialized option string
cvsdist f128f4
cvsdist f128f4
* Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
cvsdist f128f4
- move initscript back
cvsdist f128f4
cvsdist f128f4
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist f128f4
- automatic rebuild
cvsdist f128f4
cvsdist f128f4
* Mon Jul 10 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- move the init script to the right place
cvsdist f128f4
cvsdist f128f4
* Fri Jul  7 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- add /net directory to the package
cvsdist f128f4
cvsdist f128f4
* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- do manual unmounting in shutdown script
cvsdist f128f4
- change initscripts prereq to /etc/init.d
cvsdist f128f4
- move autoconf invocation to setup section
cvsdist f128f4
cvsdist f128f4
* Wed Jul  5 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- move condrestart to postun
cvsdist f128f4
- make condrestart check the right file to determine if already running
cvsdist f128f4
cvsdist f128f4
* Wed Jul  5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist f128f4
- ignore errors in post script
cvsdist f128f4
cvsdist f128f4
* Tue Jul  4 2000 Matt Wilson <msw@redhat.com>
cvsdist f128f4
- use full path to chkconfig
cvsdist f128f4
- full *correct* path to chkconfig
cvsdist f128f4
cvsdist f128f4
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- smoother starting/stopping on upgrades/removal
cvsdist f128f4
cvsdist f128f4
* Thu Jun 15 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- be more aggressive when shutting down autofs
cvsdist f128f4
- add condrestart support
cvsdist f128f4
cvsdist f128f4
* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- move man pages to %{_mandir}
cvsdist f128f4
cvsdist f128f4
* Wed May 31 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- tweak argument parsing (bug #11801)
cvsdist f128f4
cvsdist f128f4
* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- rebuild in new build environment
cvsdist f128f4
cvsdist f128f4
* Mon May  8 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- fix duplicate detection logic (duh!)
cvsdist f128f4
cvsdist f128f4
* Tue May  2 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- add config: and processname: tags to init script
cvsdist f128f4
cvsdist f128f4
* Sun Apr 30 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- fix shutdown logic (test -z $pid fails with multiple autofs daemons)
cvsdist f128f4
cvsdist f128f4
* Wed Apr 26 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- split off autofs4 for testing & development
cvsdist f128f4
- update patches for autofs4 for feeding back to autofs list
cvsdist f128f4
- make auto.master a noreplace file
cvsdist f128f4
cvsdist f128f4
* Mon Apr 17 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- split lookup_ldap into a subpackage (bug #10874)
cvsdist f128f4
cvsdist f128f4
* Tue Apr 11 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- add LDAP map support, requires openldap
cvsdist f128f4
- tweak init script patch to use fields 2+ for the map name instead of just 2
cvsdist f128f4
cvsdist f128f4
* Wed Apr 05 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- fix bug #10402 by fixing the init script, hopefully for everybody
cvsdist f128f4
- merge patches for the init script into a single patch to send to hpa
cvsdist f128f4
- patch to build on 2.2 and late-series 2.3 kernels
cvsdist f128f4
cvsdist f128f4
* Tue Feb 29 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- enable hesiod support over libbind
cvsdist f128f4
cvsdist f128f4
* Mon Feb 28 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- fix init script bug when startup failed
cvsdist f128f4
- fix option passing in init script
cvsdist f128f4
cvsdist f128f4
* Sun Feb 13 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- make autofs start after ypbind by moving start priority 18, stop to 82
cvsdist f128f4
- make sure that calls to "ps aux" include "www" to avoid snippage
cvsdist f128f4
cvsdist f128f4
* Wed Feb  2 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- make sure all the docs get packaged
cvsdist f128f4
- make init script do status messages like others
cvsdist f128f4
- add "nosuid,nodev" to options for /misc/cd
cvsdist f128f4
- switch to using INSTALLROOT during make install
cvsdist f128f4
cvsdist f128f4
* Fri Jan 21 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist f128f4
- update to 3.1.4
cvsdist f128f4
cvsdist f128f4
* Mon Sep 20 1999 Cristian Gafton <gafton@redhat.com>
cvsdist f128f4
- use ps axw instead of ps ax in the init script
cvsdist f128f4
cvsdist f128f4
* Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
cvsdist f128f4
- chkconfig --del in %preun, not %postun
cvsdist f128f4
cvsdist f128f4
* Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
cvsdist f128f4
- add patch from HJLu to handle NIS auto.master better
cvsdist f128f4
cvsdist f128f4
* Wed Aug 25 1999 Cristian Gafton <gafton@redhat.com>
cvsdist f128f4
- fix bug #4708
cvsdist f128f4
cvsdist f128f4
* Sat Aug 21 1999 Bill Nottingham <notting@redhat.com>
cvsdist f128f4
- fix perms on /usr/lib/autofs/* 
cvsdist f128f4
- add support for specifying maptype in auto.master
cvsdist f128f4
cvsdist f128f4
* Fri Aug 13 1999 Cristian Gafton <gafton@redhat.com>
cvsdist f128f4
- add patch from rth to avoid an infinite loop
cvsdist f128f4
cvsdist f128f4
* Wed Apr 28 1999 Cristian Gafton <gafton@redhat.com>
cvsdist f128f4
- use "autofs" instead of "automount" for /var/lock/subsys lock file
cvsdist f128f4
cvsdist f128f4
* Fri Apr 09 1999 Cristian Gafton <gafton@redhat.com>
cvsdist f128f4
- enahanced initscript to try to load maps over NIS
cvsdist f128f4
- changed the mount point back to misc (there is a reason we leave /mnt
cvsdist f128f4
  alone)
cvsdist f128f4
- patched back autofs.misc to the version shipped on 5.2 to avoid replacing
cvsdist f128f4
  yet one more config file for those who upgrade
cvsdist f128f4
cvsdist f128f4
* Wed Mar 24 1999 Preston Brown <pbrown@redhat.com>
cvsdist f128f4
- upgrade to 3.1.3, fixing smbfs stuff and other things
cvsdist f128f4
- changed mountpoint from /misc to /mnt
cvsdist f128f4
cvsdist f128f4
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist f128f4
- auto rebuild in the new build environment (release 10)
cvsdist f128f4
cvsdist f128f4
* Mon Feb  8 1999 Bill Nottingham <notting@redhat.com>
cvsdist f128f4
- build for kernel-2.2/glibc2.1
cvsdist f128f4
cvsdist f128f4
* Tue Oct  6 1998 Bill Nottingham <notting@redhat.com>
cvsdist f128f4
- fix bash2 breakage in init script
cvsdist f128f4
cvsdist f128f4
* Sun Aug 23 1998 Jeff Johnson <jbj@redhat.com>
cvsdist f128f4
- typo in man page.
cvsdist f128f4
cvsdist f128f4
* Mon Jul 20 1998 Jeff Johnson <jbj@redhat.com>
cvsdist f128f4
- added sparc to ExclusiveArch.
cvsdist f128f4
cvsdist f128f4
* Thu May 07 1998 Prospector System <bugs@redhat.com>
cvsdist f128f4
- translations modified for de, fr, tr
cvsdist f128f4
cvsdist f128f4
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
cvsdist f128f4
- updated to 3.1.1
cvsdist f128f4
cvsdist f128f4
* Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com>
cvsdist f128f4
- enhanced initscripts
cvsdist f128f4
cvsdist f128f4
* Fri Dec 05 1997 Michael K. Johnson <johnsonm@redhat.com>
cvsdist f128f4
- Link with -lnsl for glibc compliance.
cvsdist f128f4
cvsdist f128f4
* Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
cvsdist f128f4
- exclusivearch for i386 for now, since our kernel packages on
cvsdist f128f4
  other platforms don't include autofs yet.
cvsdist f128f4
- improvements to initscripts.
cvsdist f128f4
cvsdist f128f4
* Thu Oct 16 1997 Michael K. Johnson <johnsonm@redhat.com>
cvsdist f128f4
- Built package from 0.3.14 for 5.0