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