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