]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - FHS (at least /usr/coda, /var/coda - assuming that /coda is special) | |
3 | # - separate some programs to coda-common package | |
4 | # | |
5 | Summary: Coda distributed filesystem | |
6 | Summary(pl.UTF-8): Rozproszony system plików Coda | |
7 | Name: coda | |
8 | Version: 6.9.5 | |
9 | Release: 0.1 | |
10 | License: GPL | |
11 | Group: Networking/Daemons | |
12 | Source0: ftp://ftp.coda.cs.cmu.edu/pub/coda/src/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 23e3cbed0eea41aa9a9dea45df31938b | |
14 | Source1: %{name}.venus.init | |
15 | Source2: %{name}.auth2.init | |
16 | Source3: %{name}.codasrv.init | |
17 | Source4: %{name}.update.init | |
18 | Patch0: %{name}-ugly-common.patch | |
19 | Patch1: %{name}-FHS.patch | |
20 | Patch3: %{name}-gcc-334-2.patch | |
21 | URL: http://www.coda.cs.cmu.edu/ | |
22 | BuildRequires: autoconf | |
23 | BuildRequires: automake | |
24 | BuildRequires: bison | |
25 | BuildRequires: db-devel | |
26 | BuildRequires: e2fsprogs-devel >= 1.34 | |
27 | BuildRequires: flex | |
28 | BuildRequires: libstdc++-devel | |
29 | BuildRequires: lwp-devel >= 2.1 | |
30 | BuildRequires: ncurses-devel | |
31 | BuildRequires: readline-devel | |
32 | BuildRequires: rpc2-devel >= 2.0 | |
33 | BuildRequires: rpmbuild(macros) >= 1.268 | |
34 | BuildRequires: rvm-devel | |
35 | BuildRequires: rvm-tools | |
36 | Requires: bc | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | Source package for the Coda filesystem. Three packages are provided by | |
41 | this rpm: the client and server and the backup components. Separately | |
42 | you must install a kernel module, or have a Coda enabled kernel, and | |
43 | you should get the Coda documentation package. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Pakiet źródłowy systemu plików Coda. Rpm zawiera trzy pakiety: | |
47 | klienta, serwer oraz komponenty do backupu. Należy oddzielnie | |
48 | zainstalować moduł do jądra (lub mieć jądro z obsługą Cody), należy | |
49 | również zaopatrzyć się w pakiet z dokumentacją Cody. | |
50 | ||
51 | %package common | |
52 | Summary: Coda filesystem common programs | |
53 | Summary(pl.UTF-8): Wspólne programy dla klienta i serwera systemu plików Coda | |
54 | Group: Networking/Daemons | |
55 | ||
56 | %description common | |
57 | This package contains programs used by server and client. | |
58 | ||
59 | %description common -l pl.UTF-8 | |
60 | Ten pakiet zawiera programy używane przez klienta i serwer systemu | |
61 | plików Coda. | |
62 | ||
63 | %package client | |
64 | Summary: Coda client | |
65 | Summary(pl.UTF-8): Klient Cody | |
66 | Group: Networking/Daemons | |
67 | Requires(post,preun): /sbin/chkconfig | |
68 | Requires: %{name}-common = %{version}-%{release} | |
69 | Requires: rc-scripts | |
70 | ||
71 | %description client | |
72 | This package contains the main client program, the cachemanager Venus. | |
73 | Also included are the binaries for the cfs, utilities for logging, ACL | |
74 | manipulation etc, the hoarding tools for use with laptops and repair | |
75 | tools for fixing conflicts. Finally there is the cmon and codacon | |
76 | console utilities to monitor Coda's activities. You need a Coda | |
77 | kernel-module for your kernel version, or Coda in your kernel, to have | |
78 | a complete coda client. Make sure to select the correct C library | |
79 | version. | |
80 | ||
81 | %description client -l pl.UTF-8 | |
82 | Ten pakiet zawiera głównego klienta, zarządcę cache Venus. Dołączone | |
83 | są także binaria cfs, narzędzia do logowania, zarządzania ACL-ami | |
84 | itp., narzędzia do używania z laptopami i narzędzia do naprawiania | |
85 | konfliktów. Są także narzędzia cmon i codacon do monitorowania | |
86 | aktywności Cody. Pakiet wymaga Cody w kernelu lub module kernela. | |
87 | ||
88 | %package server | |
89 | Summary: Coda server | |
90 | Summary(pl.UTF-8): Serwer Cody | |
91 | Group: Networking/Daemons | |
92 | Requires(post,preun): /sbin/chkconfig | |
93 | Requires: %{name}-common = %{version}-%{release} | |
94 | Requires: rc-scripts | |
95 | Requires: rvm-tools | |
96 | ||
97 | %description server | |
98 | This package contains the fileserver codasrv for the coda filesystem, | |
99 | as well as the volume utilities. For highest performance you will need | |
100 | a modified kernel with inode system calls. | |
101 | ||
102 | %description server -l pl.UTF-8 | |
103 | Ten pakiet zawiera codasrv - serwer systemu plików Coda, oraz | |
104 | narzędzia do wolumenów. Aby osiągnąć lepszą wydajność, potrzebny jest | |
105 | zmodyfikowany kernel z wywołaniami dotyczącymi inodów. | |
106 | ||
107 | %package backup | |
108 | Summary: Coda backup coordinator | |
109 | Summary(pl.UTF-8): Program do zarządzania backupem Cody | |
110 | Group: Networking | |
111 | ||
112 | %description backup | |
113 | This package contains the backup software for the coda filesystem, as | |
114 | well as the volume utilities. | |
115 | ||
116 | %description backup -l pl.UTF-8 | |
117 | Ten pakiet zawiera oprogramowanie do backupu systemu plików Coda oraz | |
118 | narzędzia do wolumenów. | |
119 | ||
120 | %prep | |
121 | %setup -q | |
122 | %patch0 -p1 | |
123 | #%patch1 -p1 | |
124 | %patch3 -p1 | |
125 | ||
126 | %build | |
127 | touch ChangeLog | |
128 | #%{__autoheader} | |
129 | #%{__aclocal} | |
130 | cp -f /usr/share/automake/config.sub configs | |
131 | %{__autoconf} | |
132 | %configure \ | |
133 | --enable-crypto | |
134 | %{__make} \ | |
135 | OPTFLAGS="%{rpmcflags}" | |
136 | ||
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/venus.cache \ | |
140 | $RPM_BUILD_ROOT%{_prefix}/coda%{_sysconfdir} \ | |
141 | $RPM_BUILD_ROOT/coda $RPM_BUILD_ROOT/etc/rc.d/init.d \ | |
142 | $RPM_BUILD_ROOT/garbage | |
143 | ||
144 | %{__make} install \ | |
145 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
146 | exec_prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
147 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
148 | libexecdir=$RPM_BUILD_ROOT%{_libexecdir} \ | |
149 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
150 | sbindir=$RPM_BUILD_ROOT%{_sbindir} \ | |
151 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
152 | sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}/%{name} \ | |
153 | initsuffix=$RPM_BUILD_ROOT/garbage | |
154 | ||
155 | touch $RPM_BUILD_ROOT%{_localstatedir}/%{name}/venus.cache/INIT | |
156 | #mknod $RPM_BUILD_ROOT/dev/cfs0 c 67 0 | |
157 | touch $RPM_BUILD_ROOT/coda/NOT_REALLY_CODA | |
158 | ||
159 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/venus | |
160 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auth2 | |
161 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/codasrv | |
162 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/update | |
163 | ||
164 | %{__perl} -pi -e "s!usr/coda!var/lib/coda!" $RPM_BUILD_ROOT%{_sysconfdir}/coda/* | |
165 | ||
166 | install -d $RPM_BUILD_ROOT/var/lib/coda/vice/{auth2,db,misc,spool,srv,vol} | |
167 | ||
168 | %clean | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
171 | %pre client | |
172 | grep "^coda" /proc/mounts > /dev/null 2>&1 | |
173 | if [ $? = 0 ]; then | |
174 | echo "*** Coda is mounted: cannot install ***" | |
175 | exit 1 | |
176 | else | |
177 | exit 0 | |
178 | fi | |
179 | ||
180 | %post client | |
181 | if [ -e %{_sysconfdir}/coda/vstab ]; then | |
182 | touch /var/lib/coda/venus.cache/INIT | |
183 | else | |
184 | %{_sbindir}/venus-setup testserver.coda.cs.cmu.edu 40000 | |
185 | fi | |
186 | /sbin/chkconfig --add venus | |
187 | %service venus restart | |
188 | ||
189 | %preun client | |
190 | grep "^coda" /proc/mounts > /dev/null 2>&1 | |
191 | if [ $? = 0 ]; then | |
192 | echo "*** Coda is mounted: cannot uninstall ***" | |
193 | exit 1 | |
194 | else | |
195 | exit 0 | |
196 | fi | |
197 | if [ "$1" = "0" ]; then | |
198 | %service venus stop | |
199 | /sbin/chkconfig --del venus | |
200 | fi | |
201 | ||
202 | %post server | |
203 | /sbin/chkconfig --add auth2 | |
204 | %service auth2 restart | |
205 | ||
206 | /sbin/chkconfig --add update | |
207 | %service update restart | |
208 | ||
209 | /sbin/chkconfig --add codasrv | |
210 | %service codasrv restart | |
211 | ||
212 | %preun server | |
213 | if [ "$1" = "0" ]; then | |
214 | %service update stop | |
215 | /sbin/chkconfig --del update | |
216 | ||
217 | %service auth2 stop | |
218 | /sbin/chkconfig --del auth2 | |
219 | ||
220 | %service codasrv stop | |
221 | /sbin/chkconfig --del codasrv | |
222 | fi | |
223 | ||
224 | %files common | |
225 | %defattr(644,root,root,755) | |
226 | %dir %{_sysconfdir}/coda | |
227 | %attr(755,root,root) %{_sbindir}/codaconfedit | |
228 | #%attr(755,root,root) %{_sbindir}/coda-setup-ports | |
229 | %attr(755,root,root) %{_bindir}/rpc2ping | |
230 | ||
231 | %files client | |
232 | %defattr(644,root,root,755) | |
233 | %dir %{_prefix}/coda | |
234 | %dir %{_prefix}/coda%{_sysconfdir} | |
235 | %dir %{_localstatedir}/%{name}/venus.cache | |
236 | %verify() %{_localstatedir}/%{name}/venus.cache/INIT | |
237 | %attr(754,root,root) /etc/rc.d/init.d/venus | |
238 | %dir /coda | |
239 | %verify() /coda/NOT_REALLY_CODA | |
240 | %{_sysconfdir}/coda/venus.conf.ex | |
241 | #%{_sysconfdir}/coda/sidekick.intr.ex | |
242 | %config %{_sysconfdir}/coda/realms | |
243 | %attr(755,root,root) %{_sbindir}/codastart | |
244 | #%attr(755,root,root) %{_sbindir}/pwdtopdbtool.py | |
245 | %attr(755,root,root) %{_sbindir}/venus-setup | |
246 | %attr(755,root,root) %{_sbindir}/vutil | |
247 | %attr(755,root,root) %{_sbindir}/venus | |
248 | %attr(755,root,root) %{_bindir}/au | |
249 | %attr(755,root,root) %{_bindir}/clog | |
250 | %attr(755,root,root) %{_bindir}/coda_replay | |
251 | %attr(755,root,root) %{_bindir}/cpasswd | |
252 | %attr(755,root,root) %{_bindir}/ctokens | |
253 | %attr(755,root,root) %{_bindir}/cunlog | |
254 | %attr(755,root,root) %{_bindir}/repair | |
255 | %attr(755,root,root) %{_bindir}/cmon | |
256 | %attr(755,root,root) %{_bindir}/codacon | |
257 | %attr(755,root,root) %{_bindir}/cfs | |
258 | %attr(755,root,root) %{_bindir}/getvolinfo | |
259 | %attr(755,root,root) %{_bindir}/hoard | |
260 | %attr(755,root,root) %{_bindir}/mkcodabf | |
261 | #%attr(755,root,root) %{_bindir}/vcodacon | |
262 | %attr(755,root,root) %{_bindir}/spy | |
263 | %attr(755,root,root) %{_bindir}/parser | |
264 | %attr(755,root,root) %{_bindir}/rvmsizer | |
265 | %attr(755,root,root) %{_bindir}/smon2 | |
266 | %attr(755,root,root) %{_bindir}/filerepair | |
267 | %attr(755,root,root) %{_bindir}/removeinc | |
268 | %attr(755,root,root) %{_bindir}/xfrepair | |
269 | %attr(755,root,root) %{_bindir}/xaskuser | |
270 | %attr(755,root,root) %{_bindir}/gcodacon | |
271 | %{_mandir}/man1/au.1* | |
272 | %{_mandir}/man1/cfs.1* | |
273 | %{_mandir}/man1/clog.1* | |
274 | %{_mandir}/man1/coda_replay.1* | |
275 | %{_mandir}/man1/cmon.1* | |
276 | %{_mandir}/man1/cpasswd.1* | |
277 | %{_mandir}/man1/ctokens.1* | |
278 | %{_mandir}/man1/cunlog.1* | |
279 | %{_mandir}/man1/hoard.1* | |
280 | %{_mandir}/man1/mkcodabf.1* | |
281 | %{_mandir}/man1/spy.1* | |
282 | %{_mandir}/man1/repair.1* | |
283 | %attr(755,root,root) %{_sbindir}/volmunge | |
284 | %attr(755,root,root) %{_sbindir}/tokentool | |
285 | #%attr(755,root,root) %{_sbindir}/sidekick | |
286 | #%attr(755,root,root) %{_sbindir}/coda-client-logrotate | |
287 | %attr(755,root,root) %{_bindir}/mklka | |
288 | ||
289 | %files server | |
290 | %defattr(644,root,root,755) | |
291 | %{_sysconfdir}/coda/server.conf.ex | |
292 | %attr(755,root,root) %{_sbindir}/asrlauncher | |
293 | %attr(755,root,root) %{_sbindir}/codadump2tar | |
294 | %attr(755,root,root) %{_sbindir}/startserver | |
295 | %attr(755,root,root) %{_sbindir}/partial-reinit.sh | |
296 | %attr(755,root,root) %{_sbindir}/createvol_rep | |
297 | %attr(755,root,root) %{_sbindir}/pdbtool | |
298 | %attr(755,root,root) %{_sbindir}/purgevol_rep | |
299 | %attr(755,root,root) %{_sbindir}/bldvldb.sh | |
300 | %attr(755,root,root) %{_sbindir}/vice-setup | |
301 | %attr(755,root,root) %{_sbindir}/vice-setup-rvm | |
302 | %attr(755,root,root) %{_sbindir}/vice-setup-srvdir | |
303 | %attr(755,root,root) %{_sbindir}/vice-setup-user | |
304 | %attr(755,root,root) %{_sbindir}/vice-setup-scm | |
305 | %attr(755,root,root) %{_sbindir}/vice-killvolumes | |
306 | %attr(755,root,root) %{_sbindir}/auth2 | |
307 | %attr(755,root,root) %{_sbindir}/initpw | |
308 | %attr(755,root,root) %{_sbindir}/volutil | |
309 | #%attr(755,root,root) %{_sbindir}/rpc2portmap | |
310 | %attr(755,root,root) %{_sbindir}/inoder | |
311 | %attr(755,root,root) %{_sbindir}/parserecdump | |
312 | %attr(755,root,root) %{_sbindir}/codasrv | |
313 | %attr(755,root,root) %{_sbindir}/printvrdb | |
314 | %attr(755,root,root) %{_sbindir}/updatesrv | |
315 | %attr(755,root,root) %{_sbindir}/updateclnt | |
316 | %attr(755,root,root) %{_sbindir}/updatefetch | |
317 | %attr(755,root,root) %{_sbindir}/coda-server-logrotate | |
318 | %attr(755,root,root) %{_sbindir}/norton | |
319 | %attr(755,root,root) %{_sbindir}/norton-reinit | |
320 | %attr(755,root,root) %{_bindir}/reinit | |
321 | %{_mandir}/man5/backuplogs.5* | |
322 | %{_mandir}/man5/dumpfile.5* | |
323 | %{_mandir}/man5/dumplist.5* | |
324 | %{_mandir}/man5/maxgroupid.5* | |
325 | %{_mandir}/man5/passwd.coda.5* | |
326 | %{_mandir}/man5/servers.5* | |
327 | %{_mandir}/man5/vicetab.5* | |
328 | %{_mandir}/man5/volumelist.5* | |
329 | %{_mandir}/man5/vrdb.5* | |
330 | %{_mandir}/man8/auth2.8* | |
331 | %{_mandir}/man8/initpw.8* | |
332 | %{_mandir}/man8/backup.8* | |
333 | %{_mandir}/man8/bldvldb.sh.8* | |
334 | %{_mandir}/man8/codasrv.8* | |
335 | %{_mandir}/man8/createvol_rep.8* | |
336 | %{_mandir}/man8/merge.8* | |
337 | %{_mandir}/man8/norton.8* | |
338 | %{_mandir}/man8/pdbtool.8* | |
339 | %{_mandir}/man8/purgevol_rep.8* | |
340 | %{_mandir}/man8/readdump.8* | |
341 | %{_mandir}/man8/startserver.8* | |
342 | %{_mandir}/man8/updateclnt.8* | |
343 | %{_mandir}/man8/updatesrv.8* | |
344 | %{_mandir}/man8/venus-setup.8* | |
345 | %{_mandir}/man8/venus.8* | |
346 | %{_mandir}/man8/vice-setup.8* | |
347 | %{_mandir}/man8/volmunge.8* | |
348 | %{_mandir}/man8/volutil.8* | |
349 | %{_mandir}/man8/vutil.8* | |
350 | %attr(754,root,root) /etc/rc.d/init.d/codasrv | |
351 | %attr(754,root,root) /etc/rc.d/init.d/auth2 | |
352 | %attr(754,root,root) /etc/rc.d/init.d/update | |
353 | %dir /var/lib/coda/vice | |
354 | %dir /var/lib/coda/vice/auth2 | |
355 | %dir /var/lib/coda/vice/db | |
356 | %dir /var/lib/coda/vice/misc | |
357 | %dir /var/lib/coda/vice/spool | |
358 | %dir /var/lib/coda/vice/srv | |
359 | ||
360 | %files backup | |
361 | %defattr(644,root,root,755) | |
362 | %attr(755,root,root) %{_sbindir}/backup.sh | |
363 | %attr(755,root,root) %{_sbindir}/tape.pl | |
364 | %attr(755,root,root) %{_sbindir}/auth2 | |
365 | %attr(755,root,root) %{_sbindir}/volutil | |
366 | %attr(755,root,root) %{_sbindir}/backup | |
367 | %attr(755,root,root) %{_sbindir}/readdump | |
368 | %attr(755,root,root) %{_sbindir}/merge | |
369 | %attr(755,root,root) %{_sbindir}/updatesrv | |
370 | %attr(755,root,root) %{_sbindir}/updateclnt | |
371 | %attr(755,root,root) %{_sbindir}/updatefetch |