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