1 Summary: Automount utilities including an updated version of Amd
2 Summary(pl): Narzêdzia do automatycznego montowania systemów plików
10 Source0: ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/%{name}-%{version}.tar.gz
13 Source3: %{name}.sysconf
14 Patch0: %{name}-6.0a16-linux.patch
15 Patch1: %{name}-6.0a16-alpha.patch
16 Patch2: %{name}-6.0a16-glibc21.patch
18 Prereq: /sbin/chkconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Am-utils includes an updated version of Amd, the popular BSD
24 automounter. An automounter is a program which maintains a cache of
25 mounted filesystems. Filesystems are mounted when they are first
26 referenced by the user and unmounted after a certain period of
27 inactivity. Amd supports a variety of filesystems, including NFS, UFS,
28 CD-ROMS and local drives.
30 You should install am-utils if you need a program for automatically
31 mounting and unmounting filesystems.
35 %patch2 -p1 -b .glibc21
38 %patch1 -p1 -b .noauto
42 cd aux ; autoconf ; mv -f configure .. ; cd ..
43 CFLAGS="%{rpmcflags}" ./configure \
46 --sysconfdir=%{_sysconfdir} \
50 touch `find -name Makefile.in`
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
57 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`%{_sysconfdir}
58 install $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT%{_sysconfdir}/amd.conf
59 install $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
60 install $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
62 gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog
64 install -d $RPM_BUILD_ROOT/.automount
66 # get rid of some lame scripts
67 file $RPM_BUILD_ROOT%{_sbindir}/* | \
68 grep -v ELF | grep -v am-eject | \
69 cut -f 1 -d':' | xargs rm -f
72 rm -rf $RPM_BUILD_ROOT
76 /sbin/chkconfig --add amd
77 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
80 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
83 /sbin/chkconfig --del amd
87 %defattr(644,root,root,755)
88 %doc doc/*.ps {AUTHORS,BUGS,ChangeLog,NEWS,README*,TODO}.gz
90 %config %{_sysconfdir}/amd.conf
91 %config /etc/sysconfig/amd
92 %attr(754,root,root) /etc/rc.d/init.d/amd
93 %attr(755,root,root) %{_bindir}/pawd
94 %attr(755,root,root) %{_sbindir}/*
95 %attr(755,root,root) %{_libdir}/*