]> git.pld-linux.org Git - packages/autofs.git/blame - autofs.spec
- build fixed, release 1.
[packages/autofs.git] / autofs.spec
CommitLineData
6d1c466b 1# TODO:
d225ae79 2# - change /net to something FHS-compliant ?
f09b02b8 3#
841e1924 4# Conditional build:
1bc45ec7 5%bcond_with ldap # build LDAP extension module (need port to heimdal)
841e1924 6#
b4cd3ee9 7Summary: autofs daemon
46d8cf7b
ER
8Summary(de.UTF-8): autofs daemon
9Summary(es.UTF-8): Servidor autofs
10Summary(fr.UTF-8): démon autofs
11Summary(pl.UTF-8): Demon autofs
12Summary(pt_BR.UTF-8): Servidor autofs
13Summary(tr.UTF-8): autofs sunucu süreci
b4cd3ee9 14Name: autofs
7ad3f853 15Version: 5.0.5
20646a9f 16Release: 1
315eeda0 17Epoch: 1
d225ae79 18License: GPL v2+
b4cd3ee9 19Group: Daemons
184af42e 20Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2
7ad3f853 21# Source0-md5: a1d262cb6ebef0c2dd0fe22232fb3d5a
9ab321b6 22Source1: %{name}.init
23Source2: %{name}-auto.master
d225ae79
PG
24Source3: %{name}-auto.media
25Source4: %{name}-auto.net
26Source5: %{name}.sysconfig
242d8844 27Patch0: %{name}-open_max.patch
20646a9f 28Patch1: %{name}-makefile.patch
514c8eb4 29BuildRequires: autoconf
c8133e76 30BuildRequires: automake
603eddcc 31BuildRequires: bind-devel
05c95841 32BuildRequires: bison
bf9430f2 33BuildRequires: e2fsprogs
05c95841 34BuildRequires: flex
9943e90e 35BuildRequires: heimdal-devel
5d362306 36BuildRequires: hesiod-devel
05c95841 37BuildRequires: libxml2-devel
bf9430f2 38BuildRequires: mount
841e1924 39%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
c8133e76 40BuildRequires: rpmbuild(macros) >= 1.268
657df5c3 41Requires(post,preun): /sbin/chkconfig
b4cd3ee9 42Requires: mktemp
c8133e76 43Requires: rc-scripts
0a4dccd8 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b4cd3ee9 45
650117fe 46%define _sysconfdir /etc/autofs
05c95841 47%define filterout_ld -Wl,--as-needed
650117fe 48
b4cd3ee9 49%description
50autofs is a daemon which automatically mounts filesystems when you use
0ef7a180 51them, and unmounts them later when you are not using them. This can
b4cd3ee9 52include network filesystems, CD-ROMs, floppies, and so forth.
53
e8296acd
JR
54%description -l de.UTF-8
55autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie
56benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.
57Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches
58einschließen.
b4cd3ee9 59
e8296acd
JR
60%description -l es.UTF-8
61Autofs es un servidor que monta automáticamente sistemas de archivos
62cuando los usa, y los desmonta, más tarde, al terminar de usarlos.
0a4dccd8 63Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc.
64
e8296acd
JR
65%description -l fr.UTF-8
66autofs est un démon qui monte automatiquement les systèmes de fichiers
67lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus.
68Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les
0ef7a180 69disquettes, etc.
b4cd3ee9 70
e8296acd
JR
71%description -l pl.UTF-8
72Autofs jest demonem, który montuje automatycznie systemy plików jeżeli
73je używasz i odmontowuje później, jeżeli ich nie używasz. Może
74montować sieciowy system plików, CD-romy, stacje dyskietek i inne.
650117fe 75
e8296acd
JR
76%description -l pt_BR.UTF-8
77O autofs é um servidor que monta automaticamente sistemas de arquivos
78quando estes forem usados, desmontando-os mais tarde quando não
0a4dccd8 79estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS,
80disquetes, etc.
81
e8296acd
JR
82%description -l tr.UTF-8
83autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden
84bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem,
85ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir.
b4cd3ee9 86
28322e0b 87%package ldap
88Summary: LDAP lookup module for autofs
46d8cf7b
ER
89Summary(pl.UTF-8): Moduł LDAP dla autofs
90Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs
28322e0b 91Group: Daemons
603eddcc 92Requires: %{name} = %{epoch}:%{version}-%{release}
28322e0b 93
94%description ldap
95This package contains the autofs module necessary to use automount
96maps stored on an LDAP server.
97
e8296acd
JR
98%description ldap -l pl.UTF-8
99Ten pakiet zawiera moduł autofs potrzebny do używania map automounta
22d0409c
JB
100trzymanych na serwerze LDAP.
101
b4cd3ee9 102%prep
103%setup -q
9ab321b6 104%patch0 -p1
20646a9f 105%patch1 -p1
184af42e 106
b4cd3ee9 107%build
fdf7acdf
PS
108%{__autoconf}
109
ec0170d1
PG
110export initdir=/etc/rc.d/init.d
111%configure \
841e1924 112 --with-openldap=%{?with_ldap:yes}%{!?with_ldap:no} \
bf9430f2 113 --enable-force-shutdown=yes \
fdf7acdf
PS
114 --with-confdir=%{_sysconfdir} \
115 --with-mapdir=%{_sysconfdir}
6194200d 116
599e931a 117%{__make} -j1 \
d225ae79
PG
118 initdir=/etc/rc.d/init.d \
119 CC="%{__cc}" \
05c95841 120 DAEMON_CFLAGS="-fPIE %{rpmcflags}"
b4cd3ee9 121
122%install
123rm -rf $RPM_BUILD_ROOT
603eddcc 124install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
d2ed1b07 125 $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig}
b4cd3ee9 126
0ca9e4df 127%{__make} install \
9f76dbd1 128 INSTALLROOT=$RPM_BUILD_ROOT
b4cd3ee9 129
9f76dbd1 130install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
b4cd3ee9 131
1704e84b 132install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master
d225ae79
PG
133install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media
134install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
135install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs
b4cd3ee9 136
d225ae79
PG
137touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp}
138
fdf7acdf
PS
139# replaced in PLD by auto.media
140rm $RPM_BUILD_ROOT%{_sysconfdir}/auto.misc
9f76dbd1 141
22d0409c
JB
142%clean
143rm -rf $RPM_BUILD_ROOT
144
650117fe 145%post
b80c013d 146/sbin/chkconfig --add autofs
c8133e76 147# triggerpostun would get called after %%post
9a4c6df9 148if [ -f /var/lock/subsys/automount ]; then
c8133e76 149 mv /var/lock/subsys/{automount,autofs}
b80c013d 150fi
c8133e76 151%service autofs restart "autofs daemon"
b80c013d 152
650117fe 153%preun
b80c013d 154if [ "$1" = "0" ]; then
c8133e76 155 %service autofs stop
b80c013d 156 /sbin/chkconfig --del autofs
b80c013d 157fi
b4cd3ee9 158
159%files
160%defattr(644,root,root,755)
d225ae79 161%doc CHANGELOG CREDITS README*
650117fe 162%dir %{_sysconfdir}
3672267d 163%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
fdf7acdf 164%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs
3672267d
SP
165%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home
166%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master
d225ae79 167%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media
3672267d 168%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net
6d1c466b 169%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb
3672267d
SP
170%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp
171%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var
b8f00e5b 172%attr(754,root,root) /etc/rc.d/init.d/autofs
8596e52e 173%attr(755,root,root) %{_sbindir}/automount
9f76dbd1 174%dir /net
650117fe 175%dir %{_libdir}/autofs
bf9430f2
PS
176%attr(755,root,root) %{_libdir}/autofs/lookup_file.so
177%attr(755,root,root) %{_libdir}/autofs/lookup_files.so
178%attr(755,root,root) %{_libdir}/autofs/lookup_hesiod.so
179%attr(755,root,root) %{_libdir}/autofs/lookup_hosts.so
180%attr(755,root,root) %{_libdir}/autofs/lookup_multi.so
181%attr(755,root,root) %{_libdir}/autofs/lookup_nis.so
182%attr(755,root,root) %{_libdir}/autofs/lookup_nisplus.so
183%attr(755,root,root) %{_libdir}/autofs/lookup_program.so
184%attr(755,root,root) %{_libdir}/autofs/lookup_userhome.so
185%attr(755,root,root) %{_libdir}/autofs/lookup_yp.so
186%attr(755,root,root) %{_libdir}/autofs/mount_afs.so
187%attr(755,root,root) %{_libdir}/autofs/mount_autofs.so
188%attr(755,root,root) %{_libdir}/autofs/mount_bind.so
189%attr(755,root,root) %{_libdir}/autofs/mount_changer.so
190%attr(755,root,root) %{_libdir}/autofs/mount_ext2.so
191%attr(755,root,root) %{_libdir}/autofs/mount_ext3.so
192%attr(755,root,root) %{_libdir}/autofs/mount_generic.so
193%attr(755,root,root) %{_libdir}/autofs/mount_nfs.so
194%attr(755,root,root) %{_libdir}/autofs/mount_nfs4.so
195%attr(755,root,root) %{_libdir}/autofs/parse_hesiod.so
196%attr(755,root,root) %{_libdir}/autofs/parse_sun.so
1fb67f63 197%{_mandir}/man[58]/*
28322e0b 198
841e1924 199%if %{with ldap}
28322e0b 200%files ldap
201%defattr(644,root,root,755)
fdf7acdf 202%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs_ldap_auth.conf
28322e0b 203%attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
ef3507a1 204%attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so
841e1924 205%endif
This page took 0.102236 seconds and 4 git commands to generate.