]> git.pld-linux.org Git - packages/nfs-utils.git/blob - nfs-utils.spec
- added lock checking in nfslock and rquotad init scripts
[packages/nfs-utils.git] / nfs-utils.spec
1 Summary:        Kernel NFS server
2 Summary(pl):    Dzia³aj±cy na poziomie j±dra serwer NFS
3 Summary(pt_BR): Os utilitários para o cliente e servidor NFS do Linux
4 Name:           nfs-utils
5 Version:        0.3.3
6 Release:        3
7 License:        GPL
8 Group:          Networking/Daemons
9 Group(de):      Netzwerkwesen/Server
10 Group(pl):      Sieciowe/Serwery
11 Source0:        http://download.sourceforge.net/nfs/%{name}-%{version}.tar.gz
12 Source1:        ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs.doc.tar.gz
13 Source2:        nfs.init
14 Source3:        nfslock.init
15 Source4:        rquotad.init
16 Source5:        nfs.sysconfig
17 Source6:        nfslock.sysconfig
18 Source7:        rquotad.sysconfig
19 Source8:        nfsfs.init
20 Patch0:         %{name}-paths.patch
21 Patch1:         %{name}-time.patch
22 Patch2:         %{name}-eepro-support.patch
23 Requires:       portmap >= 4.0
24 Obsoletes:      nfsdaemon nfs-server knfsd
25 Provides:       nfsdaemon
26 Prereq:         rc-scripts
27 Prereq:         /sbin/chkconfig
28 BuildRequires:  autoconf
29 ExcludeArch:    armv4l
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Conflicts:      kernel < 2.2.5
32
33 %description
34 This is the *new* kernel NFS server and related tools. It provides a
35 much higher level of performance than the traditional Linux user-land
36 NFS server.
37
38 %description -l pl
39 To jest *nowy* dzia³aj±cy na poziomie j±dra serwer NFS oraz zwi±zane z
40 nim narzêdzia. Serwer ten dostarcza znacznie wiêksz± wydajno¶æ ni¿
41 tradycyjny, dzia³aj±cy na poziomie uzytkownika serwer NFS.
42
43 %description -l pt_BR
44 O pacote nfs-utils provê os utilitários para o cliente e servidor
45 NFS do Linux.
46
47 %package clients
48 Summary:        Clients for connecting to a remote NFS server
49 Summary(pl):    Klienci do ³±czenia siê ze zdalnym serwerem NFS
50 Group:          Networking
51 Group(de):      Netzwerkwesen
52 Group(es):      Red
53 Group(pl):      Sieciowe
54 Group(pt_BR):   Rede
55 Requires:       psmisc
56 Prereq:         rc-scripts
57 Prereq:         /sbin/chkconfig
58 Provides:       nfsclient
59 Provides:       nfs-server-clients
60 Obsoletes:      nfsclient
61 Obsoletes:      nfs-server-clients
62 Obsoletes:      knfsd-clients
63
64 %description clients
65 The nfs-server-clients package contains the showmount program.
66 Showmount queries the mount daemon on a remote host for information
67 about the NFS (Network File System) server on the remote host. For
68 example, showmount can display the clients which are mounted on that
69 host. This package is not needed to mount NFS volumes.
70
71 %description clients -l pl
72 Pakiet zawiera program showmount s³u¿±cy do odpytywania serwera NFS.
73 Showmount pyta demona na zdalnej maszynie o informacje NFS na zdalnym
74 ho¶cie. Na przyk³ad, showmount potrafi pokazaæ klientów, którzy s±
75 zamountowani na tym serverze. Ten pakiet nie jest konieczny do
76 zamountowania zasobów NFS.
77
78 %package lock
79 Summary:        Programs for NFS file locking
80 Summary(pl):    Programy do obs³ugi blokowania plików poprzez NFS (lock)
81 Group:          Networking
82 Group(de):      Netzwerkwesen
83 Group(es):      Red
84 Group(pl):      Sieciowe
85 Group(pt_BR):   Rede
86 #Requires:      kernel >= 2.2.5
87 Requires:       portmap >= 4.0
88 Prereq:         rc-scripts
89 Prereq:         /sbin/chkconfig
90 Obsoletes:      nfslockd knfsd-lock
91 Provides:       nfslockd
92
93 %description lock
94 The nfs-lock pacage contains programs which support the NFS file lock.
95 Install nfs-lock if you want to use file lock over NFS.
96
97 %description lock -l pl
98 Ten pakiet zawiera programy umo¿liwiaj±ce wykonywanie blokowania
99 plików (file locking) poprzez NFS.
100
101 %package rquotad
102 Summary:        Remote quota server
103 Summary(pl):    Zdalny serwer quota
104 Group:          Networking/Daemons
105 Group(de):      Netzwerkwesen/Server
106 Group(pl):      Sieciowe/Serwery
107 Prereq:         rc-scripts
108 Prereq:         /sbin/chkconfig
109 Obsoletes:      quota-rquotad
110
111 %description rquotad
112 rquotad is an rpc(3N) server which returns quotas for a user of a
113 local file system which is mounted by a remote machine over the NFS.
114 The results are used by quota(1) to display user quotas for remote
115 file systems.
116
117 %description rquotad -l pl
118 rquotad jest serverem rpc(3N), który zwraca quoty u¿ytkownika
119 lokalnego systemu plików, który jest zamountowany przez zdaln± maszynê
120 poprzez NFS. Rezultaty s± u¿ywane przez quota(1), aby wy¶wietliæ quote
121 dla zdalnego systemu plików.
122
123 %prep
124 %setup  -q -a1
125 %patch0 -p1
126 %patch1 -p1
127 %patch2 -p1
128
129 %build
130 autoconf
131 %configure \
132         --with-statedir=/var/lib/nfs \
133         --enable-nfsv3 \
134         --enable-secure-statd
135 %{__make} all
136
137 %install
138 rm -rf $RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \
140         $RPM_BUILD_ROOT{%{_sysconfdir}/{rc.d/init.d,sysconfig},%{_var}/lib/nfs}
141
142 %{__make} install install_prefix="$RPM_BUILD_ROOT"
143
144 install tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
145 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
146 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
147 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad
148 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfsfs
149 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/nfsd
150 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nfslock
151 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rquotad
152
153 > $RPM_BUILD_ROOT%{_var}/lib/nfs/rmtab
154 > $RPM_BUILD_ROOT%{_sysconfdir}/exports
155
156 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpc.{mountd,nfsd,rquotad,statd,lockd}.8
157 echo ".so lockd.8"   >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.lockd.8
158 echo ".so mountd.8"  >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.mountd.8
159 echo ".so nfsd.8"    >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.nfsd.8
160 echo ".so rquotad.8" >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.rquotad.8
161 echo ".so statd.8"   >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.statd.8
162
163 touch $RPM_BUILD_ROOT/var/lib/nfs/xtab
164
165 gzip -9nf ChangeLog README nfs/*.ps
166
167 mv -f nfs/*.ps.gz ./
168 mv -f nfs html
169
170 %clean
171 rm -rf $RPM_BUILD_ROOT
172
173 %post
174 /sbin/chkconfig --add nfs
175 if [ -r /var/lock/subsys/nfs ]; then
176         /etc/rc.d/init.d/nfs restart >&2
177 else
178         echo "Run \"/etc/rc.d/init.d/nfs start\" to start nfs daemon."
179 fi
180 sed -e 's/NFSDTYPE=.*/NFSDTYPE=K/' /etc/sysconfig/nfsd > /etc/sysconfig/nfsd.new
181 mv -f /etc/sysconfig/nfsd.new /etc/sysconfig/nfsd
182
183 %preun
184 if [ "$1" = "0" ]; then
185         if [ -r /var/lock/subsys/nfs ]; then
186                 /etc/rc.d/init.d/nfs stop >&2
187         fi
188         /sbin/chkconfig --del nfs
189 fi
190
191 %post clients
192 /sbin/chkconfig --add nfsfs
193 if [ -r /var/lock/subsys/nfsfs ]; then
194         /etc/rc.d/init.d/nfsfs restart >&2
195 else
196         echo "Run \"/etc/rc.d/init.d/nfsfs start\" to mount all NFS volumens."
197 fi
198
199 %preun clients
200 if [ "$1" = "0" ]; then
201         if [ -r /var/lock/subsys/nfsfs ]; then
202                 /etc/rc.d/init.d/nfsfs stop >&2
203         fi
204         /sbin/chkconfig --del nfsfs
205 fi
206
207 %post lock
208 /sbin/chkconfig --add nfslock
209 if [ -r /var/lock/subsys/nfslock ]; then
210         /etc/rc.d/init.d/nfslock restart >&2
211 else
212         echo "Run \"/etc/rc.d/init.d/nfslock start\" to start nfslock daemon."
213 fi
214
215 %preun lock
216 if [ "$1" = "0" ]; then
217         if [ -r /var/lock/subsys/nfslock ]; then
218                 /etc/rc.d/init.d/nfslock stop >&2
219         fi
220         /sbin/chkconfig --del nfslock
221 fi
222
223 %post rquotad
224 /sbin/chkconfig --add rquotad
225 if [ -r /var/lock/subsys/rquotad ]; then
226         /etc/rc.d/init.d/rquotad restart >&2
227 else
228         echo "Run \"/etc/rc.d/init.d/rquotad start\" to start NFS quota daemon."
229 fi
230
231 %preun rquotad
232 if [ "$1" = "0" ]; then
233         if [ -r /var/lock/subsys/rquotad ]; then
234                 /etc/rc.d/init.d/rquotad stop >&2
235         fi
236         /sbin/chkconfig --del rquotad
237 fi
238
239 %files
240 %defattr(644,root,root,755)
241 %doc {ChangeLog,README,*.ps}.gz html
242 %attr(755,root,root) /sbin/rpcdebug
243 %attr(755,root,root) %{_sbindir}/exportfs
244 %attr(755,root,root) %{_sbindir}/rpc.mountd
245 %attr(755,root,root) %{_sbindir}/rpc.nfsd
246 %attr(755,root,root) %{_sbindir}/nfsstat
247 %attr(755,root,root) %{_sbindir}/nhfsstone
248
249 %attr(754,root,root) /etc/rc.d/init.d/nfs
250
251 %attr(755,root,root) %dir %{_var}/lib/nfs
252
253 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/exports
254 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/nfsd
255 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/nfs/xtab
256 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/nfs/etab
257 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/nfs/rmtab
258
259 %{_mandir}/man8/exportfs.8*
260 %{_mandir}/man8/mountd.8*
261 %{_mandir}/man8/nfsd.8*
262 %{_mandir}/man8/nfsstat.8*
263 %{_mandir}/man8/rpc.mountd.8*
264 %{_mandir}/man8/rpc.nfsd.8*
265 %{_mandir}/man5/exports.5*
266
267 %files lock
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_sbindir}/rpc.lockd
270 %attr(755,root,root) %{_sbindir}/rpc.statd
271 %attr(754,root,root) /etc/rc.d/init.d/nfslock
272 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/nfslock
273 %attr(755,root,root) %dir %{_var}/lib/nfs
274 %{_mandir}/man8/rpc.lockd.8*
275 %{_mandir}/man8/lockd.8*
276 %{_mandir}/man8/rpc.statd.8*
277 %{_mandir}/man8/statd.8*
278
279 %files clients
280 %defattr(644,root,root,755)
281 %attr(754,root,root) /etc/rc.d/init.d/nfsfs
282 %attr(755,root,root) %{_sbindir}/showmount
283 %{_mandir}/man8/showmount.8*
284
285 %files rquotad
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_sbindir}/rpc.rquotad
288 %attr(754,root,root) /etc/rc.d/init.d/rquotad
289 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rquotad
290 %{_mandir}/man8/rpc.rquotad.8*
This page took 0.063059 seconds and 4 git commands to generate.