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
17 BuildRequires: autoconf
18 Prereq: /sbin/chkconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Am-utils includes an updated version of Amd, the popular BSD
25 automounter. An automounter is a program which maintains a cache of
26 mounted filesystems. Filesystems are mounted when they are first
27 referenced by the user and unmounted after a certain period of
28 inactivity. Amd supports a variety of filesystems, including NFS, UFS,
29 CD-ROMS and local drives.
31 You should install am-utils if you need a program for automatically
32 mounting and unmounting filesystems.
35 Pakiet am-utils zawiera uaktualnion± wersjê amd, popularnego
36 automountera z BSD. Automounter to program zarz±dzaj±cy montowaniem
37 systemów plików. Systemy plików s± montowane przy pierwszym u¿yciu
38 przez u¿ytkownika, a odmontowywane po pewnym czasie nieu¿ywania. amd
39 obs³uguje wiele systemów plików, w tym NFS, UFS, CD-ROM oraz lokalne
55 CFLAGS="%{rpmcflags}" ./configure \
58 --sysconfdir=%{_sysconfdir} \
62 touch `find -name Makefile.in`
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
69 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`%{_sysconfdir}
70 install $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT%{_sysconfdir}/amd.conf
71 install $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
72 install $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
74 gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog
76 install -d $RPM_BUILD_ROOT/.automount
78 # get rid of some lame scripts
79 file $RPM_BUILD_ROOT%{_sbindir}/* | \
80 grep -v ELF | grep -v am-eject | \
81 cut -f 1 -d':' | xargs rm -f
84 rm -rf $RPM_BUILD_ROOT
88 /sbin/chkconfig --add amd
89 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
92 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
94 if [ "$1" = "0" ]; then
95 /sbin/chkconfig --del amd
99 %defattr(644,root,root,755)
100 %doc doc/*.ps {AUTHORS,BUGS,ChangeLog,NEWS,README*,TODO}.gz
102 %config %{_sysconfdir}/amd.conf
103 %config /etc/sysconfig/amd
104 %attr(754,root,root) /etc/rc.d/init.d/amd
105 %attr(755,root,root) %{_bindir}/pawd
106 %attr(755,root,root) %{_sbindir}/*
107 %attr(755,root,root) %{_libdir}/*
108 %{_mandir}/man[158]/*