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