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