1 Summary: Automount utilities including an updated version of Amd.
8 Source: ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/%{name}-%{version}.tar.gz
10 Source2: am-utils.conf
11 Source3: am-utils.sysconf
12 Patch0: am-utils-6.0a16-linux.patch
13 Patch1: am-utils-6.0a16-alpha.patch
14 Patch2: am-utils-6.0a16-glibc21.patch
16 Prereq: /sbin/chkconfig
17 Prereq: /usr/sbin/fix-info-dir
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Am-utils includes an updated version of Amd, the popular BSD
23 automounter. An automounter is a program which maintains a cache of
24 mounted filesystems. Filesystems are mounted when they are first
25 referenced by the user and unmounted after a certain period of inactivity.
26 Amd supports a variety of filesystems, including NFS, UFS, CD-ROMS and
29 You should install am-utils if you need a program for automatically
30 mounting and unmounting filesystems.
34 %patch2 -p1 -b .glibc21
37 %patch1 -p1 -b .noauto
41 cd aux ; autoconf ; mv -f configure .. ; cd ..
42 CFLAGS="$RPM_OPT_FLAGS" ./configure \
49 touch `find -name Makefile.in`
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
56 make install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`/etc
57 install $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT/etc/amd.conf
58 install $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
59 install $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
61 strip $RPM_BUILD_ROOT%{_sbindir}/* $RPM_BUILD_ROOT%{_bindir}/*
63 gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog \
64 $RPM_BUILD_ROOT%{_mandir}/*
65 $RPM_BUILD_ROOT%{_infodir}/*
67 install -d $RPM_BUILD_ROOT/.automount
69 # get rid of some lame scripts
70 file $RPM_BUILD_ROOT/usr/sbin/* | \
71 grep -v ELF | grep -v am-eject | \
72 cut -f 1 -d':' | xargs rm -f
75 rm -rf $RPM_BUILD_ROOT
79 /sbin/chkconfig --add amd
80 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
83 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
86 /sbin/chkconfig --del amd
90 %defattr(644,root,root,755)
91 %doc doc/*.ps {AUTHORS,BUGS,ChangeLog,NEWS,README*,TODO}.gz
94 %config /etc/sysconfig/amd
95 %attr(754,root,root) /etc/rc.d/init.d/amd
96 %attr(755,root,root) %{_bindir}/pawd
97 %attr(755,root,root) %{_sbindir}/*
98 %attr(755,root,root) %{_libdir}/*