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