auto-import changelog data from am-utils-6.0.4s5-8.src.rpm

Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
- move initscript back
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Thu Jul 06 2000 Nalin Dahyabhai <nalin@redhat.com>
- only create /var/lock/subsys/amd if startup succeeds
- revamp shutdown procedure to minimize time spent just spinning
- change initscripts dependency to /etc/init.d
Tue Jul 04 2000 Florian La Roche <Florian.LaRoche@redhat.com>
- delete noreplace from initscript
Wed Jun 28 2000 Nalin Dahyabhai <nalin@redhat.com>
- fix postun script
- add requires: initscripts
Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
- remove unnecessary libamu.so symlink
Mon Jun 26 2000 Nalin Dahyabhai <nalin@redhat.com>
- move init script to /etc/init.d
- add URL: tag
Wed Jun 21 2000 Preston Brown <pbrown@redhat.com>
- noreplace config files
- gracefully stop/restart service
Fri Jun 16 2000 Matt Wilson <msw@redhat.com>
- FHS paths
- 6.0.4 snapshot (as it builds against kernel 2.4 headers)
Wed Feb 16 2000 Cristian Gafton <gafton@redhat.com>
- version 6.0.3
- enhance init script to be more wait4amd2die-like
- make default map type to be file (#9185)
- get rid of the kludges
Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
- man pages are compressed
- version 6.0.2
- fix descriptions
Mon Sep 13 1999 Cristian Gafton <gafton@redhat.com>
- version 6.0.1 final
Tue Aug 24 1999 Cristian Gafton <gafton@redhat.com>
- remove the noldap patch
- add amd.net file as the default config map file
- change the config file to teh new config file format instead of a simple
    map file name.
- try to avoid some damage with a new %pre script
- prereq grep now
- modify the init file so it calls amd -F /etc/amd.conf now
Tue Aug 24 1999 Bill Nottingham <notting@redhat.com>
- update to 6.0.1s11
Sat Jun 19 1999 Bill Nottingham <notting@redhat.com>
- don't run by default
Mon May 31 1999 Kenneth Skaar <kenneths@regina.uio.no>
- Fixed amd -F core dump and related dumps by other programs
Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
- kill -HUP on reload, restart does a real restart.
Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
- twiddle an echo in initscript
Tue Mar 23 1999 Cristian Gafton <gafton@redhat.com>
- version 6.0 proper
- Serial:1 because to enforce versioning
Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 6)
Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
- rebuild for glibc 2.1
- strip all binaries
Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
- add missing ':' to default 'opts:=nosuid,nodev'
- install info pages
Mon Jul 13 1998 Cristian Gafton <gafton@redhat.com>
- added the NIS support that the broken configure script failed to detect
Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
- disabled autofs support on alpha
- run ldconfig in postinstall
Mon May 04 1998 Cristian Gafton <gafton@redhat.com>
- new package to replace the old and unmaintained amd
This commit is contained in:
cvsdist 2004-09-09 02:55:14 +00:00
parent 9fe199c277
commit f65ef2b861
7 changed files with 336 additions and 0 deletions

View File

@ -0,0 +1 @@
am-utils-6.0.4s5.tar.gz

33
am-utils.conf Normal file
View File

@ -0,0 +1,33 @@
#
# amd default config file
#
# check amd.conf(5) man page for details about options in this file
#
# GLOBAL OPTIONS SECTION
[ global ]
normalize_hostnames = no
print_pid = yes
pid_file = /var/run/amd.pid
restart_mounts = yes
auto_dir = /.automount
#log_file = /var/log/amd
log_file = syslog
log_options = all
#debug_options = all
plock = no
selectors_on_default = yes
print_version = no
# set map_type to "nis" for NIS maps, or comment it out to search for all
# types
map_type = file
search_path = /etc
browsable_dirs = yes
show_statfs_entries = no
fully_qualified_hosts = no
cache_duration = 300
# DEFINE AN AMD MOUNT POINT
[ /net ]
map_name = amd.net
map_type = file

94
am-utils.init Executable file
View File

@ -0,0 +1,94 @@
#!/bin/sh
#
# Version: 1.3
#
# chkconfig: - 72 28
# description: Runs the automount daemon that mounts devices and NFS hosts \
# on demand.
# processname: amd
# config: /etc/amd.conf
#
# we require the /etc/amd.conf file
[ -f /etc/amd.conf ] || exit 0
[ -f /etc/sysconfig/amd ] || exit 0
# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/amd
RETVAL=0
start() {
echo -n "Starting amd: "
daemon /usr/sbin/amd -F /etc/amd.conf $AMDOPTS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/amd
return $RETVAL
}
stop() {
echo -n "Shutting down amd: "
delay=5
count=10
i=1
is_down="nope"
while [ $i != $count ]; do
# run amq
/usr/sbin/amq > /dev/null 2>&1
if [ $? = 0 ] ; then
# amd is up
/usr/sbin/amq | awk '{print $1}' | xargs -n 1 /usr/sbin/amq -uf
else
# amd is down
is_down=""
break
fi
/usr/sbin/amq > /dev/null 2>&1
if [ $? != 0 ] ; then
sleep $delay
fi
i=`expr $i + 1`
done
if [ -n "$is_down" ] ; then
killproc amd
RETVAL=$?
fi
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/amd
echo
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status amd
;;
restart)
stop
start
;;
condrestart)
if [ -f /var/lock/subsys/amd ]; then
stop
start
fi
;;
reload)
killall -HUP amd
;;
*)
echo "Usage: amd {start|stop|status|restart|condrestart|reload}"
exit 1
esac
exit 0

2
am-utils.net.map Normal file
View File

@ -0,0 +1,2 @@
/defaults fs:=${autodir}/${rhost}/root/${rfs};opts:=nosuid,nodev
* rhost:=${key};type:=host;rfs:=/

202
am-utils.spec Normal file
View File

@ -0,0 +1,202 @@
Summary: Automount utilities including an updated version of Amd.
Name: am-utils
Version: 6.0.4s5
Release: 8
Copyright: BSD
# XXX up serial with 6.0.4 comes out
Serial: 4
Group: System Environment/Daemons
URL: http://www.cs.columbia.edu/~ezk/am-utils/
Source: ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/snapshots/am-utils-%{version}.tar.gz
Source1: am-utils.init
Source2: am-utils.conf
Source3: am-utils.sysconf
Source4: am-utils.net.map
BuildRoot: %{_tmppath}/%{name}-root
Requires: portmap, grep, gawk, findutils
Prereq: /sbin/install-info, /etc/init.d, /sbin/chkconfig, grep
Obsoletes: amd
%description
Am-utils includes an updated version of Amd, the popular BSD
automounter. An automounter is a program which maintains a cache
of mounted filesystems. Filesystems are mounted when they are
first referenced by the user and unmounted after a certain period of
inactivity. Amd supports a variety of filesystems, including NFS, UFS,
CD-ROMS and local drives.
You should install am-utils if you need a program for automatically
mounting and unmounting filesystems.
%prep
%setup -q
%build
%configure --enable-shared --enable-libs=-lnsl --disable-amq-mount
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
mkdir -p $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
install -m 755 $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
install -m 755 $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
strip $RPM_BUILD_ROOT/usr/sbin/* $RPM_BUILD_ROOT/usr/bin/* || :
gzip -q9f $RPM_BUILD_ROOT/%{_infodir}/*info*
mkdir -p $RPM_BUILD_ROOT/.automount
rm -f $RPM_BUILD_ROOT/usr/sbin/ctl-amd
# install the default config and map files
install -m 600 %{SOURCE2} $RPM_BUILD_ROOT/etc/amd.conf
install -m 640 %{SOURCE4} $RPM_BUILD_ROOT/etc/amd.net
%clean
rm -rf $RPM_BUILD_ROOT
%pre
# Check if we have an old fashioned amd.conf and rename if to amd.net
if [ "$1" = "0" ] ; then
if grep -q "auto_dir" /etc/amd.conf 2>/dev/null ; then
# this is okay
exit 0
else
# this needs to be renamed. Still, if /etc/amd.net exists, then
# don't bother renamig it. RPM will handle it better than us here.
if [ -e /etc/amd.net ] ; then
exit 0
else
mv -f /etc/amd.conf /etc/amd.net
fi
fi
fi
exit 0
%post
/sbin/ldconfig
/sbin/chkconfig --add amd
/sbin/install-info %{_infodir}/am-utils.info.gz %{_infodir}/dir
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/am-utils.info.gz %{_infodir}/dir
/sbin/service amd stop >/dev/null 2>&1
/sbin/chkconfig --del amd
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service amd condrestart >/dev/null 2>&1
fi
%files
%defattr(-,root,root)
%doc doc/*.ps AUTHORS BUGS ChangeLog NEWS README* scripts/*-sample
%dir /.automount
/usr/bin/pawd
/usr/sbin/*
%{_mandir}/man[58]/*
%{_mandir}/man1/pawd.1*
%config(noreplace) /etc/amd.net
%config(noreplace) /etc/amd.conf
%config(noreplace) /etc/sysconfig/amd
%config /etc/rc.d/init.d/amd
%{_infodir}/*info*.gz
/usr/lib/libamu.so.*.*
%changelog
* Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
- move initscript back
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Thu Jul 6 2000 Nalin Dahyabhai <nalin@redhat.com>
- only create /var/lock/subsys/amd if startup succeeds
- revamp shutdown procedure to minimize time spent just spinning
- change initscripts dependency to /etc/init.d
* Tue Jul 4 2000 Florian La Roche <Florian.LaRoche@redhat.com>
- delete noreplace from initscript
* Wed Jun 28 2000 Nalin Dahyabhai <nalin@redhat.com>
- fix postun script
- add requires: initscripts
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
- remove unnecessary libamu.so symlink
* Mon Jun 26 2000 Nalin Dahyabhai <nalin@redhat.com>
- move init script to /etc/init.d
- add URL: tag
* Wed Jun 21 2000 Preston Brown <pbrown@redhat.com>
- noreplace config files
- gracefully stop/restart service
* Fri Jun 16 2000 Matt Wilson <msw@redhat.com>
- FHS paths
- 6.0.4 snapshot (as it builds against kernel 2.4 headers)
* Wed Feb 16 2000 Cristian Gafton <gafton@redhat.com>
- version 6.0.3
- enhance init script to be more wait4amd2die-like
- make default map type to be file (#9185)
- get rid of the kludges
* Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
- man pages are compressed
- version 6.0.2
- fix descriptions
* Mon Sep 13 1999 Cristian Gafton <gafton@redhat.com>
- version 6.0.1 final
* Tue Aug 24 1999 Cristian Gafton <gafton@redhat.com>
- remove the noldap patch
- add amd.net file as the default config map file
- change the config file to teh new config file format instead of a
simple map file name.
- try to avoid some damage with a new %pre script
- prereq grep now
- modify the init file so it calls amd -F /etc/amd.conf now
* Tue Aug 24 1999 Bill Nottingham <notting@redhat.com>
- update to 6.0.1s11
* Fri Jun 19 1999 Bill Nottingham <notting@redhat.com>
- don't run by default
* Mon May 31 1999 Kenneth Skaar <kenneths@regina.uio.no>
- Fixed amd -F core dump and related dumps by other programs
* Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
- kill -HUP on reload, restart does a real restart.
* Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
- twiddle an echo in initscript
* Tue Mar 23 1999 Cristian Gafton <gafton@redhat.com>
- version 6.0 proper
- Serial:1 because to enforce versioning
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 6)
* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
- rebuild for glibc 2.1
- strip all binaries
* Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
- add missing ':' to default 'opts:=nosuid,nodev'
- install info pages
* Mon Jul 13 1998 Cristian Gafton <gafton@redhat.com>
- added the NIS support that the broken configure script failed to detect
* Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
- disabled autofs support on alpha
- run ldconfig in postinstall
* Mon May 04 1998 Cristian Gafton <gafton@redhat.com>
- new package to replace the old and unmaintained amd

3
am-utils.sysconf Normal file
View File

@ -0,0 +1,3 @@
ADIR=/.automount
MOUNTPTS='/net /etc/amd.conf'
AMDOPTS=

View File

@ -0,0 +1 @@
a0db733ba2921ed28f74077b038c99bf am-utils-6.0.4s5.tar.gz