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