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