]> git.pld-linux.org Git - packages/nfs-utils.git/blob - nfs-utils.spec
- 0.3.3
[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(pl):      Sieciowe
48 Requires:       psmisc
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
121 %build
122 autoconf
123 %configure \
124         --with-statedir=/var/lib/nfs \
125         --enable-nfsv3 \
126         --enable-secure-statd
127 %{__make} all
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \
132         $RPM_BUILD_ROOT{%{_sysconfdir}/{rc.d/init.d,sysconfig},%{_var}/lib/nfs}
133
134 %{__make} install install_prefix="$RPM_BUILD_ROOT"
135
136 install tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
137 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
138 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
139 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad
140 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfsfs
141 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/nfsd
142 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nfslock
143 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rquotad
144 touch $RPM_BUILD_ROOT/%{_var}/lib/nfs/rmtab
145
146 touch $RPM_BUILD_ROOT%{_sysconfdir}/exports
147
148 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpc.{mountd,nfsd,rquotad,statd,lockd}.8
149 echo ".so lockd.8"   >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.lockd.8
150 echo ".so mountd.8"  >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.mountd.8
151 echo ".so nfsd.8"    >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.nfsd.8
152 echo ".so rquotad.8" >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.rquotad.8
153 echo ".so statd.8"   >  $RPM_BUILD_ROOT%{_mandir}/man8/rpc.statd.8
154
155 touch $RPM_BUILD_ROOT/var/lib/nfs/xtab
156
157 gzip -9nf ChangeLog README nfs/*.ps
158
159 mv -f nfs/*.ps.gz ./
160 mv -f nfs html
161
162 %clean
163 rm -rf $RPM_BUILD_ROOT
164
165 %post
166 /sbin/chkconfig --add nfs
167 if [ -r /var/lock/subsys/nfs ]; then
168         /etc/rc.d/init.d/nfs restart >&2
169 else
170         echo "Run \"/etc/rc.d/init.d/nfs start\" to start nfs daemon."
171 fi
172 sed -e 's/NFSDTYPE=.*/NFSDTYPE=K/' /etc/sysconfig/nfsd > /etc/sysconfig/nfsd.new
173 mv -f /etc/sysconfig/nfsd.new /etc/sysconfig/nfsd
174
175 %preun
176 if [ "$1" = "0" ]; then
177         if [ -r /var/lock/subsys/nfs ]; then
178                 /etc/rc.d/init.d/nfs stop >&2
179         fi
180         /sbin/chkconfig --del nfs
181 fi
182
183 %post clients
184 /sbin/chkconfig --add nfsfs
185 if [ -r /var/lock/subsys/nfsfs ]; then
186         /etc/rc.d/init.d/nfsfs restart >&2
187 else
188         echo "Run \"/etc/rc.d/init.d/nfsfs start\" to mount all NFS volumens."
189 fi
190
191 %preun clients
192 if [ "$1" = "0" ]; then
193         if [ -r /var/lock/subsys/nfsfs ]; then
194                 /etc/rc.d/init.d/nfsfs stop >&2
195         fi
196         /sbin/chkconfig --del nfsfs
197 fi
198
199 %post lock
200 /sbin/chkconfig --add nfslock
201 if [ -r /var/lock/subsys/nfslock ]; then
202         /etc/rc.d/init.d/nfslock restart >&2
203 else
204         echo "Run \"/etc/rc.d/init.d/nfslock start\" to start nfslock daemon."
205 fi
206
207 %preun lock
208 if [ "$1" = "0" ]; then
209         if [ -r /var/lock/subsys/nfslock ]; then
210                 /etc/rc.d/init.d/nfslock stop >&2
211         fi
212         /sbin/chkconfig --del nfslock
213 fi
214
215 %post rquotad
216 /sbin/chkconfig --add rquotad
217 if [ -r /var/lock/subsys/rquotad ]; then
218         /etc/rc.d/init.d/rquotad restart >&2
219 else
220         echo "Run \"/etc/rc.d/init.d/rquotad start\" to start NFS quota daemon."
221 fi
222
223 %preun rquotad
224 if [ "$1" = "0" ]; then
225         if [ -r /var/lock/subsys/rquotad ]; then
226                 /etc/rc.d/init.d/rquotad stop >&2
227         fi
228         /sbin/chkconfig --del rquotad
229 fi
230
231 %files
232 %defattr(644,root,root,755)
233 %doc {ChangeLog,README,*.ps}.gz html
234 %attr(755,root,root) /sbin/rpcdebug
235 %attr(755,root,root) %{_sbindir}/exportfs
236 %attr(755,root,root) %{_sbindir}/rpc.mountd
237 %attr(755,root,root) %{_sbindir}/rpc.nfsd
238 %attr(755,root,root) %{_sbindir}/nfsstat
239 %attr(755,root,root) %{_sbindir}/nhfsstone
240
241 %attr(754,root,root) /etc/rc.d/init.d/nfs
242
243 %attr(755,root,root) %dir %{_var}/lib/nfs
244
245 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/exports
246 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/nfsd
247 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/nfs/xtab
248 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/nfs/etab
249 %config(noreplace) %verify(not size mtime md5) %{_var}/lib/nfs/rmtab
250
251 %{_mandir}/man8/exportfs.8*
252 %{_mandir}/man8/mountd.8*
253 %{_mandir}/man8/nfsd.8*
254 %{_mandir}/man8/nfsstat.8*
255 %{_mandir}/man8/rpc.mountd.8*
256 %{_mandir}/man8/rpc.nfsd.8*
257 %{_mandir}/man5/exports.5*
258
259 %files lock
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_sbindir}/rpc.lockd
262 %attr(755,root,root) %{_sbindir}/rpc.statd
263 %attr(754,root,root) /etc/rc.d/init.d/nfslock
264 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/nfslock
265 %attr(755,root,root) %dir %{_var}/lib/nfs
266 %{_mandir}/man8/rpc.lockd.8*
267 %{_mandir}/man8/lockd.8*
268 %{_mandir}/man8/rpc.statd.8*
269 %{_mandir}/man8/statd.8*
270
271 %files clients
272 %defattr(644,root,root,755)
273 %attr(754,root,root) /etc/rc.d/init.d/nfsfs
274 %attr(755,root,root) %{_sbindir}/showmount
275 %{_mandir}/man8/showmount.8*
276
277 %files rquotad
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_sbindir}/rpc.rquotad
280 %attr(754,root,root) /etc/rc.d/init.d/rquotad
281 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rquotad
282 %{_mandir}/man8/rpc.rquotad.8*
This page took 0.043408 seconds and 4 git commands to generate.