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