]> git.pld-linux.org Git - packages/autofs.git/blame - autofs.spec
- enable forced shutdown on USR1 signal, more backends and BRs.
[packages/autofs.git] / autofs.spec
CommitLineData
6d1c466b 1# TODO:
d225ae79 2# - change /net to something FHS-compliant ?
f09b02b8 3#
b4cd3ee9 4Summary: autofs daemon
46d8cf7b
ER
5Summary(de.UTF-8): autofs daemon
6Summary(es.UTF-8): Servidor autofs
7Summary(fr.UTF-8): démon autofs
8Summary(pl.UTF-8): Demon autofs
9Summary(pt_BR.UTF-8): Servidor autofs
10Summary(tr.UTF-8): autofs sunucu süreci
b4cd3ee9 11Name: autofs
89e06d66 12Version: 5.0.4
256c27a4 13Release: 0.1
315eeda0 14Epoch: 1
d225ae79 15License: GPL v2+
b4cd3ee9 16Group: Daemons
184af42e 17Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2
89e06d66 18# Source0-md5: 2646dde61edd08dd952255558c733c08
9ab321b6 19Source1: %{name}.init
20Source2: %{name}-auto.master
d225ae79
PG
21Source3: %{name}-auto.media
22Source4: %{name}-auto.net
23Source5: %{name}.sysconfig
242d8844 24Patch0: %{name}-open_max.patch
25Patch1: %{name}-hesiod-includes.patch
514c8eb4 26BuildRequires: autoconf
c8133e76 27BuildRequires: automake
603eddcc 28BuildRequires: bind-devel
05c95841 29BuildRequires: bison
bf9430f2 30BuildRequires: e2fsprogs
05c95841 31BuildRequires: flex
bf9430f2 32BuildRequires: hesiod-devel
184af42e 33BuildRequires: krb5-devel
05c95841 34BuildRequires: libxml2-devel
bf9430f2 35BuildRequires: mount
0fbee45e 36BuildRequires: openldap-devel >= 2.4.6
c8133e76 37BuildRequires: rpmbuild(macros) >= 1.268
657df5c3 38Requires(post,preun): /sbin/chkconfig
b4cd3ee9 39Requires: mktemp
c8133e76 40Requires: rc-scripts
0a4dccd8 41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b4cd3ee9 42
650117fe 43%define _sysconfdir /etc/autofs
05c95841 44%define filterout_ld -Wl,--as-needed
650117fe 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 103
b4cd3ee9 104%build
fdf7acdf
PS
105%{__autoconf}
106
ec0170d1
PG
107export initdir=/etc/rc.d/init.d
108%configure \
bf9430f2 109 --enable-force-shutdown=yes \
fdf7acdf
PS
110 --with-confdir=%{_sysconfdir} \
111 --with-mapdir=%{_sysconfdir}
6194200d 112
d225ae79
PG
113%{__make} \
114 initdir=/etc/rc.d/init.d \
115 CC="%{__cc}" \
05c95841 116 DAEMON_CFLAGS="-fPIE %{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
b4cd3ee9 132
d225ae79
PG
133touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp}
134
fdf7acdf
PS
135# replaced in PLD by auto.media
136rm $RPM_BUILD_ROOT%{_sysconfdir}/auto.misc
9f76dbd1 137
22d0409c
JB
138%clean
139rm -rf $RPM_BUILD_ROOT
140
650117fe 141%post
b80c013d 142/sbin/chkconfig --add autofs
c8133e76 143# triggerpostun would get called after %%post
9a4c6df9 144if [ -f /var/lock/subsys/automount ]; then
c8133e76 145 mv /var/lock/subsys/{automount,autofs}
b80c013d 146fi
c8133e76 147%service autofs restart "autofs daemon"
b80c013d 148
650117fe 149%preun
b80c013d 150if [ "$1" = "0" ]; then
c8133e76 151 %service autofs stop
b80c013d 152 /sbin/chkconfig --del autofs
b80c013d 153fi
b4cd3ee9 154
155%files
156%defattr(644,root,root,755)
d225ae79 157%doc CHANGELOG CREDITS README*
650117fe 158%dir %{_sysconfdir}
3672267d 159%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
fdf7acdf 160%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs
3672267d
SP
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
bf9430f2
PS
172%attr(755,root,root) %{_libdir}/autofs/lookup_file.so
173%attr(755,root,root) %{_libdir}/autofs/lookup_files.so
174%attr(755,root,root) %{_libdir}/autofs/lookup_hesiod.so
175%attr(755,root,root) %{_libdir}/autofs/lookup_hosts.so
176%attr(755,root,root) %{_libdir}/autofs/lookup_multi.so
177%attr(755,root,root) %{_libdir}/autofs/lookup_nis.so
178%attr(755,root,root) %{_libdir}/autofs/lookup_nisplus.so
179%attr(755,root,root) %{_libdir}/autofs/lookup_program.so
180%attr(755,root,root) %{_libdir}/autofs/lookup_userhome.so
181%attr(755,root,root) %{_libdir}/autofs/lookup_yp.so
182%attr(755,root,root) %{_libdir}/autofs/mount_afs.so
183%attr(755,root,root) %{_libdir}/autofs/mount_autofs.so
184%attr(755,root,root) %{_libdir}/autofs/mount_bind.so
185%attr(755,root,root) %{_libdir}/autofs/mount_changer.so
186%attr(755,root,root) %{_libdir}/autofs/mount_ext2.so
187%attr(755,root,root) %{_libdir}/autofs/mount_ext3.so
188%attr(755,root,root) %{_libdir}/autofs/mount_generic.so
189%attr(755,root,root) %{_libdir}/autofs/mount_nfs.so
190%attr(755,root,root) %{_libdir}/autofs/mount_nfs4.so
191%attr(755,root,root) %{_libdir}/autofs/parse_hesiod.so
192%attr(755,root,root) %{_libdir}/autofs/parse_sun.so
1fb67f63 193%{_mandir}/man[58]/*
28322e0b 194
195%files ldap
196%defattr(644,root,root,755)
fdf7acdf 197%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs_ldap_auth.conf
28322e0b 198%attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
ef3507a1 199%attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so
This page took 0.132406 seconds and 4 git commands to generate.