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