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