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