]> git.pld-linux.org Git - packages/autofs.git/blame - autofs.spec
- converted to UTF-8
[packages/autofs.git] / autofs.spec
CommitLineData
6d1c466b 1# TODO:
d225ae79
PG
2# - change /net to something FHS-compliant ?
3# - upgrade to autofs5 - maybe separate package?
4# - build of ldap-related things has some errors
b4cd3ee9 5Summary: autofs daemon
e8296acd
JR
6Summary(de.UTF-8): autofs daemon
7Summary(es.UTF-8): Servidor autofs
8Summary(fr.UTF-8): démon autofs
9Summary(pl.UTF-8): Demon autofs
10Summary(pt_BR.UTF-8): Servidor autofs
11Summary(tr.UTF-8): autofs sunucu süreci
b4cd3ee9 12Name: autofs
6d1c466b 13Version: 4.1.4
3ebd5d71 14Release: 4
315eeda0 15Epoch: 1
d225ae79 16License: GPL v2+
b4cd3ee9 17Group: Daemons
242d8844 18Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/%{name}-%{version}.tar.bz2
6d1c466b 19# Source0-md5: 7e3949114c00665b4636f0c318179657
9ab321b6 20Source1: %{name}.init
21Source2: %{name}-auto.master
d225ae79
PG
22Source3: %{name}-auto.media
23Source4: %{name}-auto.net
24Source5: %{name}.sysconfig
242d8844 25Patch0: %{name}-open_max.patch
26Patch1: %{name}-hesiod-includes.patch
886e101e 27Patch2: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-misc-fixes.patch
c8133e76 28Patch3: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-multi-parse-fix.patch
886e101e 29Patch4: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-no-unlink-upstream.patch
c8133e76 30Patch5: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-non-replicated-ping.patch
26863896 31Patch6: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-auto.smb-cifs.patch
514c8eb4 32BuildRequires: autoconf
c8133e76 33BuildRequires: automake
603eddcc 34BuildRequires: bind-devel
d8e74694 35BuildRequires: openldap-devel >= 2.3.0
c8133e76 36BuildRequires: rpmbuild(macros) >= 1.268
657df5c3 37Requires(post,preun): /sbin/chkconfig
b4cd3ee9 38Requires: mktemp
c8133e76 39Requires: rc-scripts
0a4dccd8 40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b4cd3ee9 41
650117fe 42%define _sysconfdir /etc/autofs
43
b4cd3ee9 44%description
45autofs is a daemon which automatically mounts filesystems when you use
0ef7a180 46them, and unmounts them later when you are not using them. This can
b4cd3ee9 47include network filesystems, CD-ROMs, floppies, and so forth.
48
e8296acd
JR
49%description -l de.UTF-8
50autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie
51benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.
52Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches
53einschließen.
b4cd3ee9 54
e8296acd
JR
55%description -l es.UTF-8
56Autofs es un servidor que monta automáticamente sistemas de archivos
57cuando los usa, y los desmonta, más tarde, al terminar de usarlos.
0a4dccd8 58Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc.
59
e8296acd
JR
60%description -l fr.UTF-8
61autofs est un démon qui monte automatiquement les systèmes de fichiers
62lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus.
63Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les
0ef7a180 64disquettes, etc.
b4cd3ee9 65
e8296acd
JR
66%description -l pl.UTF-8
67Autofs jest demonem, który montuje automatycznie systemy plików jeżeli
68je używasz i odmontowuje później, jeżeli ich nie używasz. Może
69montować sieciowy system plików, CD-romy, stacje dyskietek i inne.
650117fe 70
e8296acd
JR
71%description -l pt_BR.UTF-8
72O autofs é um servidor que monta automaticamente sistemas de arquivos
73quando estes forem usados, desmontando-os mais tarde quando não
0a4dccd8 74estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS,
75disquetes, etc.
76
e8296acd
JR
77%description -l tr.UTF-8
78autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden
79bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem,
80ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir.
b4cd3ee9 81
28322e0b 82%package ldap
83Summary: LDAP lookup module for autofs
e8296acd
JR
84Summary(pl.UTF-8): Moduł LDAP dla autofs
85Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs
28322e0b 86Group: Daemons
603eddcc 87Requires: %{name} = %{epoch}:%{version}-%{release}
28322e0b 88
89%description ldap
90This package contains the autofs module necessary to use automount
91maps stored on an LDAP server.
92
e8296acd
JR
93%description ldap -l pl.UTF-8
94Ten pakiet zawiera moduł autofs potrzebny do używania map automounta
22d0409c
JB
95trzymanych na serwerze LDAP.
96
b4cd3ee9 97%prep
98%setup -q
9ab321b6 99%patch0 -p1
100%patch1 -p1
101%patch2 -p1
242d8844 102%patch3 -p1
9ab321b6 103%patch4 -p1
242d8844 104%patch5 -p1
26863896 105%patch6 -p1
b4cd3ee9 106
107%build
514c8eb4 108chmod a+w configure
a0b844c3 109%{__aclocal}
256885fa 110%{__autoconf}
514c8eb4 111%configure
6194200d 112
d225ae79
PG
113%{__make} \
114 initdir=/etc/rc.d/init.d \
115 CC="%{__cc}" \
116 DAEMON_CFLAGS="%{rpmcflags}"
b4cd3ee9 117
118%install
119rm -rf $RPM_BUILD_ROOT
603eddcc 120install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
d2ed1b07 121 $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig}
b4cd3ee9 122
0ca9e4df 123%{__make} install \
9f76dbd1 124 INSTALLROOT=$RPM_BUILD_ROOT
b4cd3ee9 125
9f76dbd1 126install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
b4cd3ee9 127
1704e84b 128install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master
d225ae79
PG
129install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media
130install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
131install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs
6d1c466b 132mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir}
b4cd3ee9 133
d225ae79
PG
134touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp}
135
136# Do some cleanups:
137rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net}
9f76dbd1 138
22d0409c
JB
139%clean
140rm -rf $RPM_BUILD_ROOT
141
650117fe 142%post
b80c013d 143/sbin/chkconfig --add autofs
c8133e76 144# triggerpostun would get called after %%post
9a4c6df9 145if [ -f /var/lock/subsys/automount ]; then
c8133e76 146 mv /var/lock/subsys/{automount,autofs}
b80c013d 147fi
c8133e76 148%service autofs restart "autofs daemon"
b80c013d 149
650117fe 150%preun
b80c013d 151if [ "$1" = "0" ]; then
c8133e76 152 %service autofs stop
b80c013d 153 /sbin/chkconfig --del autofs
b80c013d 154fi
b4cd3ee9 155
156%files
157%defattr(644,root,root,755)
d225ae79 158%doc CHANGELOG CREDITS README*
650117fe 159%dir %{_sysconfdir}
3672267d
SP
160%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
161%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home
162%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master
d225ae79 163%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media
3672267d 164%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net
6d1c466b 165%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb
3672267d
SP
166%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp
167%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var
3ebd5d71 168%attr(754,root,root) %config /etc/rc.d/init.d/autofs
8596e52e 169%attr(755,root,root) %{_sbindir}/automount
9f76dbd1 170%dir /net
650117fe 171%dir %{_libdir}/autofs
28322e0b 172%attr(755,root,root) %{_libdir}/autofs/mount_*
173%attr(755,root,root) %{_libdir}/autofs/parse_*
657df5c3 174%attr(755,root,root) %{_libdir}/autofs/lookup_[!l]*
1fb67f63 175%{_mandir}/man[58]/*
28322e0b 176
177%files ldap
178%defattr(644,root,root,755)
179%attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
This page took 0.091633 seconds and 4 git commands to generate.