]> git.pld-linux.org Git - packages/nfs-utils.git/blob - nfs-utils.spec
- added %dir %{_var}/state/nfs to lock package
[packages/nfs-utils.git] / nfs-utils.spec
1 Name:           nfs-utils
2 Version:        0.1.3
3 Release:        3
4 Summary:        Kernel NFS server.
5 Summary(pl):    Dzia³aj±cy na poziomie j±dra serwer NFS.
6 Source0:        ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/%{name}-%{version}.tar.gz
7 Source1:        ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs.doc.tar.gz
8 Source2:        nfs.init
9 Source3:        nfslock.init
10 Source4:        rquotad.init
11 Source5:        nfs.sysconfig
12 Source6:        nfslock.sysconfig
13 Source7:        rquotad.sysconfig
14 Patch0:         nfs-utils-paths.patch
15 Patch1:         nfs-utils-rquotad.patch
16 #Requires:      kernel >= 2.2.5
17 Requires:       portmap >= 4.0
18 Group:          Networking/Daemons
19 Group(pl):      Sieciowe/Serwery
20 Obsoletes:      nfsdaemon nfs-server knfsd
21 Provides:       nfsdaemon
22 Requires:       rc-scripts
23 Copyright:      GPL
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 %patch1 -p1
94
95 %build
96 %configure \
97         --with-statedir=/var/state/nfs \
98         --enable-nfsv3 \
99         --enable-secure-statd
100 make all
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}}
106 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_var}/state/nfs}
107
108 make install install_prefix="$RPM_BUILD_ROOT"
109
110 install -s tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
111 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
112 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
113 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad
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 lock
157 /sbin/chkconfig --add nfslock
158 if [ -r /var/lock/subsys/nfslock ]; then
159         /etc/rc.d/init.d/nfslock restart >&2
160 else
161         echo "Run \"/etc/rc.d/init.d/nfslock start\" to start nfslock daemon."
162 fi
163
164 %preun lock
165 if [ "$1" = "0" ]; then
166         /sbin/chkconfig --del nfslock
167         /etc/rc.d/init.d/nfslock stop >&2
168 fi
169
170 %post rquotad
171 /sbin/chkconfig --add rquotad
172 if [ -r /var/lock/subsys/rquotad ]; then
173         /etc/rc.d/init.d/rquotad restart >&2
174 else
175         echo "Run \"/etc/rc.d/init.d/rquotad start\" to start quota daemon."
176 fi
177
178 %preun rquotad
179 if [ "$1" = "0" ]; then
180         /sbin/chkconfig --del rquotad
181         /etc/rc.d/init.d/rquotad stop >&2
182 fi
183
184 %files
185 %defattr(644,root,root,755)
186 %doc {ChangeLog,README,*.ps}.gz html
187 %attr(755,root,root) /sbin/rpcdebug
188 %attr(755,root,root) %{_sbindir}/exportfs
189 %attr(755,root,root) %{_sbindir}/rpc.mountd
190 %attr(755,root,root) %{_sbindir}/rpc.nfsd
191 %attr(755,root,root) %{_sbindir}/nfsstat
192 %attr(755,root,root) %{_sbindir}/nhfsstone
193
194 %attr(754,root,root) /etc/rc.d/init.d/nfs
195
196 %attr(755,root,root) %dir %{_var}/state/nfs
197
198 %config(noreplace) %verify(not size mtime md5) /etc/exports
199 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/nfsd
200 %config(noreplace) %verify(not size mtime md5) %{_var}/state/nfs/xtab
201 %config(noreplace) %verify(not size mtime md5) %{_var}/state/nfs/etab
202 %config(noreplace) %verify(not size mtime md5) %{_var}/state/nfs/rmtab
203
204 %{_mandir}/man8/exportfs.8*
205 %{_mandir}/man8/mountd.8*
206 %{_mandir}/man8/nfsd.8*
207 %{_mandir}/man8/nfsstat.8*
208 %{_mandir}/man8/rpc.mountd.8*
209 %{_mandir}/man8/rpc.nfsd.8*
210 %{_mandir}/man5/exports.5*
211
212 %files lock
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_sbindir}/rpc.lockd
215 %attr(755,root,root) %{_sbindir}/rpc.statd
216 %attr(754,root,root) /etc/rc.d/init.d/nfslock
217 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/nfslock
218 %attr(755,root,root) %dir %{_var}/state/nfs
219
220 %{_mandir}/man8/rpc.statd.8*
221 %{_mandir}/man8/statd.8*
222
223 %files clients
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_sbindir}/showmount
226 %{_mandir}/man8/showmount.8*
227
228 %files rquotad
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_sbindir}/rpc.rquotad
231 %{_mandir}/man8/rpc.rquotad.8*
232 %attr(754,root,root) /etc/rc.d/init.d/rquotad
233 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rquotad
This page took 0.065617 seconds and 4 git commands to generate.