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