]>
Commit | Line | Data |
---|---|---|
0afe267e | 1 | Summary: Automount utilities including an updated version of Amd |
2f6c8091 ER |
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 | |
dd05e7a9 | 5 | Name: am-utils |
204fb9e4 SP |
6 | Version: 6.0.10 |
7 | Release: 1 | |
f1346ac0 | 8 | Epoch: 5 |
b78c3f32 | 9 | License: BSD |
dd05e7a9 | 10 | Group: Daemons |
204fb9e4 SP |
11 | Source0: ftp://ftp.am-utils.org/pub/am-utils/%{name}-%{version}.tar.gz |
12 | # Source0-md5: ec26df84e2ef9d55c9e6ea3c648788d4 | |
1271c510 | 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 | |
16e5b4a3 | 18 | URL: http://www.am-utils.org/ |
d487a5f8 | 19 | BuildRequires: autoconf |
e83e3605 ER |
20 | BuildRequires: rpmbuild(macros) >= 1.268 |
21 | Requires(post,postun): /sbin/ldconfig | |
dbc2fea3 | 22 | Requires(post,preun): /sbin/chkconfig |
d487a5f8 | 23 | Requires: portmap |
db74a6b8 | 24 | Requires: rc-scripts >= 0.4.1.5 |
2d3e236c | 25 | Obsoletes: amd |
e83e3605 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a8697a92 JR |
27 | |
28 | %description | |
29 | Am-utils includes an updated version of Amd, the popular BSD | |
b78c3f32 | 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. | |
a8697a92 JR |
35 | |
36 | You should install am-utils if you need a program for automatically | |
37 | mounting and unmounting filesystems. | |
38 | ||
671bc4e0 JR |
39 | %description -l es.UTF-8 |
40 | Am-utils es la "próxima generación" del popular automounter BSD Amd. | |
e380db0e | 41 | Incluye muchas adiciones: actualizaciones, portes, programas, |
671bc4e0 JR |
42 | características, correcciones de problemas, etc. AMD es el servidor |
43 | automount de Berkeley. Tiene la capacidad de automáticamente montar | |
e380db0e | 44 | sistemas de archivos de todos los tipos, incluyendo sistemas de |
45 | archivos NFS, CD-ROMs y accionadores locales y de desmontarlos cuando | |
671bc4e0 JR |
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 | |
e380db0e | 49 | |
671bc4e0 JR |
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. | |
d487a5f8 | 57 | |
671bc4e0 JR |
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. | |
e380db0e | 62 | |
671bc4e0 | 63 | O AMD é o servidor automount de Berkeley. Tem a capacidade de |
e380db0e | 64 | automaticamente montar sistemas de arquivos de todos os tipos, |
65 | incluindo sistemas de arquivos NFS, CD-ROMs e acionadores locais e de | |
671bc4e0 | 66 | desmontá-los quando não estiverem mais sendo usados. |
e380db0e | 67 | |
671bc4e0 JR |
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 | |
e380db0e | 70 | |
a8697a92 JR |
71 | %prep |
72 | %setup -q | |
d487a5f8 | 73 | %patch0 -p1 |
a8697a92 | 74 | %ifnarch i386 |
d487a5f8 | 75 | %patch1 -p1 |
a8697a92 JR |
76 | %endif |
77 | ||
78 | %build | |
e12194c4 | 79 | CFLAGS="%{rpmcflags}" |
16e5b4a3 | 80 | %configure2_13 \ |
dd05e7a9 | 81 | --prefix=%{_prefix} \ |
82 | --enable-shared \ | |
b78c3f32 | 83 | --sysconfdir=%{_sysconfdir} \ |
dd05e7a9 | 84 | --enable-libs=-lnsl |
e12194c4 | 85 | |
a8697a92 JR |
86 | # fun with autoconf |
87 | touch `find -name Makefile.in` | |
805752f0 | 88 | %{__make} |
a8697a92 JR |
89 | |
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
2bcde319 | 92 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ |
0a804041 | 93 | $RPM_BUILD_ROOT/.automount |
dd05e7a9 | 94 | |
2d3e236c PG |
95 | %{__make} install \ |
96 | DESTDIR=$RPM_BUILD_ROOT | |
dd05e7a9 | 97 | |
16e5b4a3 PG |
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 | |
dd05e7a9 | 101 | |
a8697a92 JR |
102 | %clean |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post | |
106 | /sbin/ldconfig | |
e6e59b4c | 107 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
0a804041 | 108 | /sbin/chkconfig --add amd |
e83e3605 | 109 | %service amd restart |
0a804041 | 110 | |
c20c7a98 | 111 | %preun |
0a804041 | 112 | if [ "$1" = "0" ]; then |
e83e3605 | 113 | %service amd stop |
0a804041 | 114 | /sbin/chkconfig --del amd |
115 | fi | |
a8697a92 | 116 | |
a8697a92 | 117 | %postun |
e6e59b4c | 118 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
a8697a92 | 119 | /sbin/ldconfig |
a8697a92 JR |
120 | |
121 | %files | |
dd05e7a9 | 122 | %defattr(644,root,root,755) |
0a804041 | 123 | %doc doc/*.ps AUTHORS BUGS NEWS README* ChangeLog ldap-id.txt |
a8697a92 | 124 | %dir /.automount |
2bcde319 | 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 | |
78cb0ad4 | 127 | %attr(754,root,root) /etc/rc.d/init.d/amd |
dd05e7a9 | 128 | %attr(755,root,root) %{_bindir}/pawd |
129 | %attr(755,root,root) %{_sbindir}/* | |
130 | %attr(755,root,root) %{_libdir}/* | |
131 | %{_mandir}/man[158]/* | |
7fa99e97 | 132 | %{_infodir}/am-utils.info* |