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