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