]>
Commit | Line | Data |
---|---|---|
1 | Summary: Automount utilities including an updated version of Amd | |
2 | Summary(es.UTF-8): Utilitarios del automount - incluye el servidor automount NFS | |
3 | Summary(pl.UTF-8): Narzędzia do automatycznego montowania systemów plików | |
4 | Summary(pt_BR.UTF-8): Utilitários do automount - inclui o servidor automount NFS | |
5 | Name: am-utils | |
6 | Version: 6.0.10 | |
7 | Release: 1 | |
8 | Epoch: 5 | |
9 | License: BSD | |
10 | Group: Daemons | |
11 | Source0: ftp://ftp.am-utils.org/pub/am-utils/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: ec26df84e2ef9d55c9e6ea3c648788d4 | |
13 | Source1: %{name}.init | |
14 | Source2: %{name}.conf | |
15 | Source3: %{name}.sysconf | |
16 | Patch0: %{name}-6.0a16-linux.patch | |
17 | Patch1: %{name}-6.0a16-alpha.patch | |
18 | URL: http://www.am-utils.org/ | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: rpmbuild(macros) >= 1.268 | |
21 | Requires(post,postun): /sbin/ldconfig | |
22 | Requires(post,preun): /sbin/chkconfig | |
23 | Requires: portmap | |
24 | Requires: rc-scripts >= 0.4.1.5 | |
25 | Obsoletes: amd | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Am-utils includes an updated version of Amd, the popular BSD | |
30 | automounter. An automounter is a program which maintains a cache of | |
31 | mounted filesystems. Filesystems are mounted when they are first | |
32 | referenced by the user and unmounted after a certain period of | |
33 | inactivity. Amd supports a variety of filesystems, including NFS, UFS, | |
34 | CD-ROMS and local drives. | |
35 | ||
36 | You should install am-utils if you need a program for automatically | |
37 | mounting and unmounting filesystems. | |
38 | ||
39 | %description -l es.UTF-8 | |
40 | Am-utils es la "próxima generación" del popular automounter BSD Amd. | |
41 | Incluye muchas adiciones: actualizaciones, portes, programas, | |
42 | características, correcciones de problemas, etc. AMD es el servidor | |
43 | automount de Berkeley. Tiene la capacidad de automáticamente montar | |
44 | sistemas de archivos de todos los tipos, incluyendo sistemas de | |
45 | archivos NFS, CD-ROMs y accionadores locales y de desmontarlos cuando | |
46 | no estén en uso. La configuración por defecto permite que se haga un | |
47 | 'cd /net/[máquina]' para obtener una lista de los directorios | |
48 | exportados por aquella máquina | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Pakiet am-utils zawiera uaktualnioną wersję amd, popularnego | |
52 | automountera z BSD. Automounter to program zarządzający montowaniem | |
53 | systemów plików. Systemy plików są montowane przy pierwszym użyciu | |
54 | przez użytkownika, a odmontowywane po pewnym czasie nieużywania. amd | |
55 | obsługuje wiele systemów plików, w tym NFS, UFS, CD-ROM oraz lokalne | |
56 | urządzenia. | |
57 | ||
58 | %description -l pt_BR.UTF-8 | |
59 | O am-utils é a "próxima geração" do popular automounter BSD amd. | |
60 | Inclui muitas adições: atualizações, portes, programas, | |
61 | características, correções de problemas, etc. | |
62 | ||
63 | O AMD é o servidor automount de Berkeley. Tem a capacidade de | |
64 | automaticamente montar sistemas de arquivos de todos os tipos, | |
65 | incluindo sistemas de arquivos NFS, CD-ROMs e acionadores locais e de | |
66 | desmontá-los quando não estiverem mais sendo usados. | |
67 | ||
68 | A configuração default permite que seja feito um 'cd /net/[máquina]' | |
69 | para obter uma lista dos diretórios exportados por aquela máquina | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | %patch0 -p1 | |
74 | %ifnarch i386 | |
75 | %patch1 -p1 | |
76 | %endif | |
77 | ||
78 | %build | |
79 | CFLAGS="%{rpmcflags}" | |
80 | %configure2_13 \ | |
81 | --prefix=%{_prefix} \ | |
82 | --enable-shared \ | |
83 | --sysconfdir=%{_sysconfdir} \ | |
84 | --enable-libs=-lnsl | |
85 | ||
86 | # fun with autoconf | |
87 | touch `find -name Makefile.in` | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ | |
93 | $RPM_BUILD_ROOT/.automount | |
94 | ||
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
98 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/amd | |
99 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/amd.conf | |
100 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/amd | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post | |
106 | /sbin/ldconfig | |
107 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
108 | /sbin/chkconfig --add amd | |
109 | %service amd restart | |
110 | ||
111 | %preun | |
112 | if [ "$1" = "0" ]; then | |
113 | %service amd stop | |
114 | /sbin/chkconfig --del amd | |
115 | fi | |
116 | ||
117 | %postun | |
118 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
119 | /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
123 | %doc doc/*.ps AUTHORS BUGS NEWS README* ChangeLog ldap-id.txt | |
124 | %dir /.automount | |
125 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/amd.conf | |
126 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/amd | |
127 | %attr(754,root,root) /etc/rc.d/init.d/amd | |
128 | %attr(755,root,root) %{_bindir}/pawd | |
129 | %attr(755,root,root) %{_sbindir}/* | |
130 | %attr(755,root,root) %{_libdir}/* | |
131 | %{_mandir}/man[158]/* | |
132 | %{_infodir}/am-utils.info* |