]> git.pld-linux.org Git - packages/nfs-utils.git/blob - nfs-utils.spec
- add v4recovery (nfs state recovery directory)
[packages/nfs-utils.git] / nfs-utils.spec
1 #
2 # Conditional build:
3 %bcond_without  nfs4            # without NFSv4 support
4 #
5 Summary:        Kernel NFS server
6 Summary(pl):    Dzia³aj±cy na poziomie j±dra serwer NFS
7 Summary(pt_BR): Os utilitários para o cliente e servidor NFS do Linux
8 Summary(ru):    õÔÉÌÉÔÙ ÄÌÑ NFS É ÄÅÍÏÎÙ ÐÏÄÄÅÒÖËÉ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ ÑÄÒÁ
9 Summary(uk):    õÔÉ̦ÔÉ ÄÌÑ NFS ÔÁ ÄÅÍÏÎɠЦÄÔÒÉÍËÉ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ ÑÄÒÁ
10 Name:           nfs-utils
11 Version:        1.0.7
12 Release:        4
13 License:        GPL
14 Group:          Networking/Daemons
15 Source0:        http://dl.sourceforge.net/nfs/%{name}-%{version}.tar.gz
16 # Source0-md5:  8f863120261cd572ad320a9152581e11
17 Source1:        ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs.doc.tar.gz
18 # Source1-md5:  ae7db9c61c5ad04f83bb99e5caed73da
19 Source2:        nfs.init
20 Source3:        nfslock.init
21 Source4:        rquotad.init
22 Source5:        nfs.sysconfig
23 Source6:        nfslock.sysconfig
24 Source7:        rquotad.sysconfig
25 Source8:        nfsfs.init
26 Patch0:         %{name}-paths.patch
27 Patch1:         %{name}-time.patch
28 Patch2:         %{name}-eepro-support.patch
29 Patch3:         %{name}-install.patch
30 Patch4:         %{name}-nolibs.patch
31 Patch5:         %{name}-usn36.patch
32 Patch6:         http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.0.7-2/nfs-utils-1.0.7-CITI_NFS4_ALL-2.dif
33 Patch7:         %{name}-heimdal-internals.patch
34 Patch8:         %{name}-rquotad-curblocks.patch
35 URL:            http://nfs.sourceforge.net/
36 BuildRequires:  autoconf
37 %if %{with nfs4}
38 BuildRequires:  heimdal-devel >= 0.7
39 BuildRequires:  libevent-devel
40 BuildRequires:  librpcsecgss-devel
41 BuildRequires:  nfsidmap-devel
42 %endif
43 BuildRequires:  libwrap-devel
44 PreReq:         rc-scripts >= 0.4.0
45 PreReq:         setup >= 2.4.6-7
46 Requires:       %{name}-common = %{version}-%{release}
47 Requires(post,preun):   /sbin/chkconfig
48 Requires(post): fileutils
49 Requires(post): sed
50 Requires:       portmap >= 4.0
51 Provides:       nfsdaemon
52 Obsoletes:      nfsdaemon
53 Obsoletes:      knfsd
54 Obsoletes:      nfs-server
55 Conflicts:      kernel < 2.2.5
56 ExcludeArch:    armv4l
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %description
60 This is the *new* kernel NFS server and related tools. It provides a
61 much higher level of performance than the traditional Linux user-land
62 NFS server.
63
64 %description -l pl
65 To jest *nowy* dzia³aj±cy na poziomie j±dra serwer NFS oraz zwi±zane z
66 nim narzêdzia. Serwer ten dostarcza znacznie wiêksz± wydajno¶æ ni¿
67 tradycyjny, dzia³aj±cy na poziomie u¿ytkownika serwer NFS.
68
69 %description -l pt_BR
70 O pacote nfs-utils provê os utilitários para o cliente e servidor NFS
71 do Linux.
72
73 %description -l ru
74 ðÁËÅÔ nfs-utils ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÄÅÍÏÎÁ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ, ×ËÌÀÞÅÎÎÏÇÏ ×
75 ÑÄÒÏ, É ÓÏÐÕÔÓÔ×ÕÀÝÉÅ ÕÔÉÌÉÔÙ, ËÏÔÏÒÙÅ ÏÂÅÓÐÅÞÉ×ÁÀÔ ÎÁÍÎÏÇÏ ÂÏÌØÛÕÀ
76 ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ, ÞÅÍ ÔÒÁÄÉÃÉÏÎÎÙÅ Linux NFS-ÓÅÒ×ÅÒÁ, ÉÓÐÏÌØÚÕÅÍÙÅ
77 ÂÏÌØÛÉÎÓÔ×ÏÍ ÐÏÌØÚÏ×ÁÔÅÌÅÊ.
78
79 %description -l uk
80 ðÁËÅÔ nfs-utils ÎÁÄÁ¤ ÄÅÍÏÎÁ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ, ×ÂÕÄÏ×ÁÎÏÇÏ × ÑÄÒÏ, ÔÁ
81 ÓÕÐÕÔΦ ÕÔÉ̦ÔÉ, Ñ˦ ÚÁÂÅÚÐÅÞÕÀÔØ ÎÁÂÁÇÁÔϠ¦ÌØÛÕ ÐÒÏÄÕËÔÉ×ΦÓÔØ, Î¦Ö
82 ÔÒÁÄÉæÊΦ Linux NFS-ÓÅÒ×ÅÒÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×Õ¤ Â¦ÌØÛ¦ÓÔØ ËÏÒÉÓÔÕ×ÁÞ¦×.
83
84 %package clients
85 Summary:        Clients for connecting to a remote NFS server
86 Summary(pl):    Klienci do ³±czenia siê ze zdalnym serwerem NFS
87 Group:          Networking
88 PreReq:         rc-scripts
89 Requires(post,preun):   /sbin/chkconfig
90 Requires:       psmisc
91 Requires:       %{name}-common = %{version}-%{release}
92 Provides:       nfsclient
93 Provides:       nfs-server-clients
94 Obsoletes:      nfsclient
95 Obsoletes:      nfs-server-clients
96 Obsoletes:      knfsd-clients
97
98 %description clients
99 The nfs-server-clients package contains the showmount program.
100 Showmount queries the mount daemon on a remote host for information
101 about the NFS (Network File System) server on the remote host. For
102 example, showmount can display the clients which are mounted on that
103 host. This package is not needed to mount NFS volumes.
104
105 %description clients -l pl
106 Pakiet zawiera program showmount s³u¿±cy do odpytywania serwera NFS.
107 Showmount pyta demona na zdalnej maszynie o informacje NFS na zdalnym
108 ho¶cie. Na przyk³ad, showmount potrafi pokazaæ klientów, którzy s±
109 zamountowani na tym serwerze. Ten pakiet nie jest konieczny do
110 zamountowania zasobów NFS.
111
112 %package lock
113 Summary:        Programs for NFS file locking
114 Summary(pl):    Programy do obs³ugi blokowania plików poprzez NFS (lock)
115 Group:          Networking
116 PreReq:         rc-scripts
117 Requires(post,preun):   /sbin/chkconfig
118 #Requires:      kernel >= 2.2.5
119 Requires:       portmap >= 4.0
120 Provides:       nfslockd
121 Obsoletes:      nfslockd
122 Obsoletes:      knfsd-lock
123
124 %description lock
125 The nfs-lock pacage contains programs which support the NFS file lock.
126 Install nfs-lock if you want to use file lock over NFS.
127
128 %description lock -l pl
129 Ten pakiet zawiera programy umo¿liwiaj±ce wykonywanie blokowania
130 plików (file locking) poprzez NFS.
131
132 %package rquotad
133 Summary:        Remote quota server
134 Summary(pl):    Zdalny serwer quota
135 Group:          Networking/Daemons
136 PreReq:         rc-scripts
137 Requires(post,preun):   /sbin/chkconfig
138 Obsoletes:      quota-rquotad
139
140 %description rquotad
141 rquotad is an rpc(3N) server which returns quotas for a user of a
142 local file system which is mounted by a remote machine over the NFS.
143 The results are used by quota(1) to display user quotas for remote
144 file systems.
145
146 %description rquotad -l pl
147 rquotad jest serverem rpc(3N), który zwraca quoty u¿ytkownika
148 lokalnego systemu plików, który jest zamountowany przez zdaln± maszynê
149 poprzez NFS. Rezultaty s± u¿ywane przez quota(1), aby wy¶wietliæ quotê
150 dla zdalnego systemu plików.
151
152 %package common
153 Summary:        Common programs for NFS
154 Summary(pl):    Wspólne programy do obs³ugi NFS
155 Group:          Networking
156
157 %description common
158 Common programs for NFS.
159
160 %description common -l pl
161 Wspólne programy do obs³ugi NFS.
162
163 %prep
164 %setup -q -a1
165 %patch0 -p1
166 %patch1 -p1
167 %patch2 -p1
168 %patch3 -p1
169 %patch4 -p1
170 %patch5 -p1
171 %patch6 -p1
172 %patch7 -p1
173 %patch8 -p1
174
175 chmod u+w configure
176
177 %build
178 %if "%{_lib}" == "lib64"
179 sed -i -e 's#/lib/#/%{_lib}/#g' configure.in
180 %endif
181 sed -i -e 's#libroken.a#libroken.so#g' configure.in
182 %{__autoconf}
183 %configure \
184 %if %{with nfs4}
185         --enable-nfsv4 \
186         --enable-gss \
187         --with-krb5=%{_prefix} \
188 %else
189         --disable-gss \
190         --disable-nfsv4 \
191 %endif
192         --enable-nfsv3 \
193         --enable-secure-statd \
194         --with-statedir=/var/lib/nfs
195 %{__make} all
196
197 %install
198 rm -rf $RPM_BUILD_ROOT
199 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \
200         $RPM_BUILD_ROOT{%{_sysconfdir}/{rc.d/init.d,sysconfig},%{_var}/lib/nfs/{rpc_pipefs,v4recovery}}
201
202 %{__make} install \
203         install_prefix=$RPM_BUILD_ROOT
204
205 install utils/idmapd/idmapd.conf        $RPM_BUILD_ROOT/etc
206 install tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
207 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
208 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
209 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad
210 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfsfs
211 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/nfsd
212 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nfslock
213 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rquotad
214
215 > $RPM_BUILD_ROOT%{_var}/lib/nfs/rmtab
216 > $RPM_BUILD_ROOT%{_sysconfdir}/exports
217
218 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpc.{mountd,nfsd,rquotad,statd,lockd,gssd,idmapd,svcgssd}.8
219 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/rpc.idmapd.conf.5
220 echo ".so lockd.8"   >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.lockd.8
221 echo ".so mountd.8"  >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.mountd.8
222 echo ".so nfsd.8"    >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.nfsd.8
223 echo ".so rquotad.8" >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.rquotad.8
224 echo ".so statd.8"   >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.statd.8
225 %if %{with nfs4}
226 echo ".so gssd.8"    >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.gssd.8
227 echo ".so idmapd.8"  >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.idmapd.8
228 echo ".so svcgssd.8" >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.svcgssd.8
229 echo ".so idmapd.conf.5" > $RPM_BUILD_ROOT%{_mandir}/man5/rpc.idmapd.conf.5
230 %endif
231
232 touch $RPM_BUILD_ROOT/var/lib/nfs/xtab
233
234 ln -sf /bin/true $RPM_BUILD_ROOT/sbin/fsck.nfs
235
236 cp -a nfs nfs-copy
237 mv -f nfs-copy/*.ps ./
238 mv -f nfs-copy html
239
240 %clean
241 rm -rf $RPM_BUILD_ROOT
242
243 %post
244 /sbin/chkconfig --add nfs
245 if [ -r /var/lock/subsys/nfs ]; then
246         /etc/rc.d/init.d/nfs restart >&2
247 else
248         echo "Run \"/etc/rc.d/init.d/nfs start\" to start NFS daemon."
249 fi
250 umask 022
251 sed -e 's/NFSDTYPE=.*/NFSDTYPE=K/' /etc/sysconfig/nfsd > /etc/sysconfig/nfsd.new
252 mv -f /etc/sysconfig/nfsd.new /etc/sysconfig/nfsd
253
254 %preun
255 if [ "$1" = "0" ]; then
256         if [ -r /var/lock/subsys/nfs ]; then
257                 /etc/rc.d/init.d/nfs stop >&2
258         fi
259         /sbin/chkconfig --del nfs
260 fi
261
262 %post clients
263 /sbin/chkconfig --add nfsfs
264 if [ -r /var/lock/subsys/nfsfs ]; then
265         /etc/rc.d/init.d/nfsfs restart >&2
266 else
267         echo "Run \"/etc/rc.d/init.d/nfsfs start\" to mount all NFS volumes."
268 fi
269
270 %preun clients
271 if [ "$1" = "0" ]; then
272         if [ -r /var/lock/subsys/nfsfs ]; then
273                 /etc/rc.d/init.d/nfsfs stop >&2
274         fi
275         /sbin/chkconfig --del nfsfs
276 fi
277
278 %post lock
279 /sbin/chkconfig --add nfslock
280 if [ -r /var/lock/subsys/nfslock ]; then
281         /etc/rc.d/init.d/nfslock restart >&2
282 else
283         echo "Run \"/etc/rc.d/init.d/nfslock start\" to start nfslock daemon."
284 fi
285
286 %preun lock
287 if [ "$1" = "0" ]; then
288         if [ -r /var/lock/subsys/nfslock ]; then
289                 /etc/rc.d/init.d/nfslock stop >&2
290         fi
291         /sbin/chkconfig --del nfslock
292 fi
293
294 %post rquotad
295 /sbin/chkconfig --add rquotad
296 if [ -r /var/lock/subsys/rquotad ]; then
297         /etc/rc.d/init.d/rquotad restart >&2
298 else
299         echo "Run \"/etc/rc.d/init.d/rquotad start\" to start NFS quota daemon."
300 fi
301
302 %preun rquotad
303 if [ "$1" = "0" ]; then
304         if [ -r /var/lock/subsys/rquotad ]; then
305                 /etc/rc.d/init.d/rquotad stop >&2
306         fi
307         /sbin/chkconfig --del rquotad
308 fi
309
310 %files
311 %defattr(644,root,root,755)
312 %doc ChangeLog README *.ps html
313 %attr(755,root,root) /sbin/rpcdebug
314 %attr(755,root,root) /sbin/fsck.nfs
315 %attr(755,root,root) %{_sbindir}/exportfs
316 %attr(755,root,root) %{_sbindir}/rpc.mountd
317 %attr(755,root,root) %{_sbindir}/rpc.nfsd
318 %attr(755,root,root) %{_sbindir}/nfsstat
319 %attr(755,root,root) %{_sbindir}/nhfsgraph
320 %attr(755,root,root) %{_sbindir}/nhfsnums
321 %attr(755,root,root) %{_sbindir}/nhfsrun
322 %attr(755,root,root) %{_sbindir}/nhfsstone
323
324 %attr(754,root,root) /etc/rc.d/init.d/nfs
325
326 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exports
327 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfsd
328 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/xtab
329 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/etab
330 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/rmtab
331
332 %{_mandir}/man5/exports.5*
333 %{_mandir}/man7/nfsd.7*
334 %{_mandir}/man8/exportfs.8*
335 %{_mandir}/man8/mountd.8*
336 %{_mandir}/man8/nhfsgraph.8*
337 %{_mandir}/man8/nhfsnums.8*
338 %{_mandir}/man8/nhfsrun.8*
339 %{_mandir}/man8/nhfsstone.8*
340 %{_mandir}/man8/nfsd.8*
341 %{_mandir}/man8/nfsstat.8*
342 %{_mandir}/man8/rpc.mountd.8*
343 %{_mandir}/man8/rpc.nfsd.8*
344
345 %if %{with nfs4}
346 %attr(755,root,root) %{_sbindir}/rpc.svcgssd
347 %{_mandir}/man8/*svcgss*
348 %endif
349
350 %files lock
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_sbindir}/rpc.lockd
353 %attr(755,root,root) %{_sbindir}/rpc.statd
354 %attr(754,root,root) /etc/rc.d/init.d/nfslock
355 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfslock
356 %{_mandir}/man8/rpc.lockd.8*
357 %{_mandir}/man8/lockd.8*
358 %{_mandir}/man8/rpc.statd.8*
359 %{_mandir}/man8/statd.8*
360 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/state
361
362 %files clients
363 %defattr(644,root,root,755)
364 %attr(754,root,root) /etc/rc.d/init.d/nfsfs
365 %attr(755,root,root) %{_sbindir}/showmount
366 %{_mandir}/man8/showmount.8*
367
368 %if %{with nfs4}
369 %attr(755,root,root) %{_sbindir}/rpc.gssd
370 %{_mandir}/man8/rpc.gssd*
371 %{_mandir}/man8/gssd*
372 %endif
373
374
375 #%files rquotad
376 #%defattr(644,root,root,755)
377 #%attr(755,root,root) %{_sbindir}/rpc.rquotad
378 #%attr(754,root,root) /etc/rc.d/init.d/rquotad
379 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rquotad
380 #%%{_mandir}/man8/rpc.rquotad.8*
381
382 %files common
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %dir %{_var}/lib/nfs
385 %attr(755,root,root) %dir %{_var}/lib/nfs/rpc_pipefs
386 %attr(755,root,root) %dir %{_var}/lib/nfs/v4recovery
387 %if %{with nfs4}
388 %attr(755,root,root) %{_sbindir}/rpc.idmapd
389 %attr(660,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf
390 %{_mandir}/man[58]/*idmap*
391 %endif
This page took 0.051381 seconds and 4 git commands to generate.