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