]>
Commit | Line | Data |
---|---|---|
dd05e7a9 | 1 | Summary: Automount utilities including an updated version of Amd. |
2 | Name: am-utils | |
3 | Version: 6.0 | |
ac2d71c1 | 4 | Release: 6 |
dd05e7a9 | 5 | Copyright: BSD |
6 | Group: Daemons | |
7 | Group(pl): Serwery | |
8 | Source: ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/%{name}-%{version}.tar.gz | |
9 | Source1: am-utils.init | |
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 | |
15 | Requires: portmap | |
16 | Prereq: /sbin/chkconfig | |
dd05e7a9 | 17 | Obsoletes: amd |
7a0e5646 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a8697a92 JR |
19 | |
20 | %description | |
21 | Am-utils includes an updated version of Amd, the popular BSD | |
22 | automounter. An automounter is a program which maintains a cache of | |
23 | mounted filesystems. Filesystems are mounted when they are first | |
24 | referenced by the user and unmounted after a certain period of inactivity. | |
25 | Amd supports a variety of filesystems, including NFS, UFS, CD-ROMS and | |
26 | local drives. | |
27 | ||
28 | You should install am-utils if you need a program for automatically | |
29 | mounting and unmounting filesystems. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | %patch2 -p1 -b .glibc21 | |
34 | %patch0 -p1 -b .lnx | |
35 | %ifnarch i386 | |
36 | %patch1 -p1 -b .noauto | |
37 | %endif | |
38 | ||
39 | %build | |
40 | cd aux ; autoconf ; mv -f configure .. ; cd .. | |
dd05e7a9 | 41 | CFLAGS="$RPM_OPT_FLAGS" ./configure \ |
42 | --prefix=%{_prefix} \ | |
43 | --enable-shared \ | |
44 | --sysconfdir=/etc \ | |
45 | --enable-libs=-lnsl | |
46 | ||
a8697a92 JR |
47 | # fun with autoconf |
48 | touch `find -name Makefile.in` | |
49 | make | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
dd05e7a9 | 53 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} |
54 | ||
55 | make install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`/etc | |
56 | install $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT/etc/amd.conf | |
57 | install $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd | |
58 | install $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd | |
59 | ||
60 | strip $RPM_BUILD_ROOT%{_sbindir}/* $RPM_BUILD_ROOT%{_bindir}/* | |
61 | ||
62 | gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog \ | |
63 | $RPM_BUILD_ROOT%{_mandir}/* | |
64 | $RPM_BUILD_ROOT%{_infodir}/* | |
65 | ||
66 | install -d $RPM_BUILD_ROOT/.automount | |
67 | ||
a8697a92 JR |
68 | # get rid of some lame scripts |
69 | file $RPM_BUILD_ROOT/usr/sbin/* | \ | |
70 | grep -v ELF | grep -v am-eject | \ | |
71 | cut -f 1 -d':' | xargs rm -f | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post | |
77 | /sbin/ldconfig | |
78 | /sbin/chkconfig --add amd | |
dc77a50c | 79 | [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a8697a92 | 80 | |
a8697a92 | 81 | %postun |
dc77a50c | 82 | [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a8697a92 JR |
83 | /sbin/ldconfig |
84 | if [ $1 = 0 ]; then | |
85 | /sbin/chkconfig --del amd | |
86 | fi | |
87 | ||
88 | %files | |
dd05e7a9 | 89 | %defattr(644,root,root,755) |
90 | %doc doc/*.ps {AUTHORS,BUGS,ChangeLog,NEWS,README*,TODO}.gz | |
a8697a92 | 91 | %dir /.automount |
a8697a92 JR |
92 | %config /etc/amd.conf |
93 | %config /etc/sysconfig/amd | |
78cb0ad4 | 94 | %attr(754,root,root) /etc/rc.d/init.d/amd |
dd05e7a9 | 95 | %attr(755,root,root) %{_bindir}/pawd |
96 | %attr(755,root,root) %{_sbindir}/* | |
97 | %attr(755,root,root) %{_libdir}/* | |
98 | %{_mandir}/man[158]/* | |
99 | %{_infodir}/* |