Linux: Updated RedHat spec file with new demand attach servers and docs
[openafs.git] / src / packaging / RedHat / openafs.spec.in
1 # Openafs Spec $Revision$
2
3 %define afsvers @VERSION@
4 %define pkgvers @LINUX_PKGVER@
5 # for beta/rc releases make pkgrel 0.X.<tag>
6 # for real releases make pkgrel 1 (or more for extra releases)
7 #%define pkgrel 0.1.rc1
8 %define pkgrel @LINUX_PKGREL@
9
10 %if %{?osvers:0}%{!?osvers:1}
11 %define osvers 1
12 %endif
13
14 %{!?fedorakmod: %define fedorakmod 1}
15 %{!?build_dkmspkg: %define build_dkmspkg 1}
16
17 # Determine presence of rpmbuild command line --define arguments used for
18 # option specification
19 %define kernvers_on_cmdline %{?kernvers:1}%{!?kernvers:0}
20 %define build_userspace_on_cmdline %{?build_userspace:1}%{!?build_userspace:0}
21 %define build_modules_on_cmdline %{?build_modules:1}%{!?build_modules:0}
22 %define build_authlibs_on_cmdline %{?build_authlibs:1}%{!?build_authlibs:0}
23
24 # Determine the version of the kernel to build against
25 # - automatically select running kernel if there are sources in /lib/modules
26 # - note that this can be overridden on the command line
27 #
28 %if !%{kernvers_on_cmdline}
29 %define kernvers %(%{_sourcedir}/openafs-kernel-version.sh)
30 %endif
31
32 # If we're building for a 2.4 series kernel, then fedora style kmods aren't
33 # appropriate - disable them.
34
35 %define kern24 %([ `echo "%{kernvers}" | sed -e 's/^\([0-9]*\.[0-9]*\)\..*/\1/'` = "2.4" ] && echo 1 || echo 0)
36
37 %if %{kern24}
38 %define fedorakmod 0
39 %endif
40
41 %if %{fedorakmod}
42 %define kmodtool bash %{_sourcedir}/openafs-kmodtool
43
44 %define kmod_name openafs
45 %define kverrel %(%{kmodtool} verrel %{?kernvers} 2>/dev/null)
46
47 %define upvar ""
48 %{!?kvariants: %define kvariants %{?upvar}}
49
50 %if %{?ksrcdir:1}%{!?ksrcdir:0}
51   if ( -d %{_usrsrc}/kernels/%{kverrel}-%{_target_cpu}) ; then
52     %define ksrcdir %{_usrsrc}/kernels/%{kverrel}-%{_target_cpu}}
53   else
54     %define ksrcdir %{_usrsrc}/kernels/%{kverrel}.%{_target_cpu}}
55   fi
56 %endif
57
58 %else # Legacy kernel build stuff 
59
60 %define kversis %{_sourcedir}/openafs-kvers-is.sh
61 %define kvers %(%{kversis} parsev %{kernvers})
62 %define kvers_is_24 %(%{kversis} %{kvers} "2.4")
63 %define kvers_is_26 %(%{kversis} %{kvers} "2.6")
64 %define ktype %(%{kversis} parset %{kernvers})
65 %define kversion %(%{kversis} kvers %{kernvers})
66
67 # This is where to look for kernel build include files.  Default
68 # is /lib/modules/<kvers>/build, but you can define kbase and
69 # kend on the commandline to change that.
70 #
71 %if %{?kbase:0}%{!?kbase:1}
72 %define kbase /lib/modules/
73 %endif
74 %if %{?kend:0}%{!?kend:1}
75 %define kend /build
76 %endif
77 # Let the buildscript define the ksrcdir directly -- needed for RHEL4
78 %if %{?ksrcdir:0}%{!?ksrcdir:1}
79 %define ksrcdir %{kbase}%{kernvers}%{kend}
80 %endif
81
82 %if %{?kmoddir:0}%{!?kmoddir:1}
83 %define kmoddir /lib/modules
84 %endif
85 %define kxmoddir %{kmoddir}/%{kernvers}
86
87 # End legacy kernel build stuff
88 %endif 
89
90 %define dkms_version %{osvers}.%{pkgrel}
91
92 # Set 'debugspec' to 1 if you want to debug the spec file.  This will
93 # not remove the installed tree as part of the %clean operation
94 %if %{?debugspec:0}%{!?debugspec:1}
95 %define debugspec 0
96 %endif
97
98 # Set 'krb5support' to 1 if you want to build the openafs-krb5 package
99 # to distribute aklog and asetkey
100 %define krb5support %{?_without_krb5:0}%{!?_without_krb5:1}
101
102 %if %{krb5support}
103 %if %{?krb5config:0}%{!?krb5config:1}
104 %define krb5config /usr/kerberos/bin/krb5-config
105 %endif
106 %endif
107
108 # Set 'bootkernelsupport' to 1 if you want to build the
109 # kernel module for Red Hat BOOT Kernels on x86.
110 %define bootkernelsupport %{?_with_bootkernel:1}%{!?_with_bootkernel:0}
111
112 # Define the location of your init.d directory
113 %define initdir /etc/init.d
114
115 #determine if the kernel provides an arch-specific Provides
116 %define kprovidesarch %(%{kversis} provideskernelarch %{ksrcdir} %{_target_cpu})
117
118 # Define the location of the PAM security module directory
119 %define pamdir /%{_lib}/security
120
121 %if !%{fedorakmod}
122
123 # Define the set of kernel module variations to be built:
124 # For 2.4 kernels we just build everything at once for a particular
125 # kernel.   So we build up, smp, and bigmem all at once.
126 # For 2.6 kernels we have to build against the specific kernel headers
127 # for a particular kernel variation.  AFS will handle the specific smp or
128 # non-smp determination.  So just always build as if it's "up" -- the kernel
129 # version will have the 'variation' type already in the version #.
130
131 %define up_package 0
132 %define smp_package 0
133 %define bigmem_package 0
134 %define hugemem_package 0
135 %define largesmp_package 0
136
137 #######################################################################
138 # 2.4
139 %if %{kvers_is_24}
140 %define kdepend kernel-source
141 %define up_package 1
142 %define smp_package 1
143 %define smp_ext smp
144
145 %define bigmem_package %(%{kversis} find %{ksrcdir} %{_target_cpu} bigmem) 
146 %if %{bigmem_package}
147 %define bigmem_ext bigmem
148 %endif
149
150 %define hugemem_package %(%{kversis} find %{ksrcdir} %{_target_cpu} hugemem) 
151 %if %{hugemem_package}
152 %define hugemem_ext hugemem
153 %endif
154
155 %define kvariations up smp %{?bigmem_ext:%{bigmem_ext}} %{?hugemem_ext:%{hugemem_ext}}
156
157 #######################################################################
158 # 2.6
159 %else
160 %if %{kvers_is_26}
161 %define kvariations up
162 %ifarch s390x
163 %define ktype "smp"
164 %define up_package 1
165 %else
166 %define up_package %(%{kversis} "%{ktype}" "")
167 %define smp_package %(%{kversis} "%{ktype}" "smp")
168 %define hugemem_package %(%{kversis} "%{ktype}" "hugemem")
169 %define largesmp_package %(%{kversis} "%{ktype}" "largesmp")
170 %endif
171
172 %if !%{up_package} && !%{smp_package} && !%{hugemem_package} && !%{largesmp_package}
173 %error "unknown kernel type: %{ktype}"
174 %endif
175
176 %if !%{kernvers_on_cmdline}
177 %define kdepend %{ksrcdir}/include/linux/version.h
178 %endif
179
180 #######################################################################
181 # other kernels?
182 %else
183 %error "unknown kernel version: ${kvers} (parsed from %{kernvers})"
184 %endif
185 %endif
186
187 # End of legacy kernel module build
188 %endif 
189
190 #######################################################################
191 # You probably don't need to change anything beyond this line
192 # NOTE: If you do, please email me!!!
193
194 # Determine which elements of OpenAFS to build.  For non-x86 arches
195 # (subject to the ExclusiveArch setting, below), we build both userspace
196 # and modules.  For most x86 arches, we build just the kernel modules.  For
197 # i386, we build just the userspace.  If you're running an i386 kernel,
198 # you'll need to tweak that last bit.
199 %if !%{build_userspace_on_cmdline} && !%{build_modules_on_cmdline}
200
201 %ifarch x86_64 ia64 s390 s390x
202 %define build_userspace 1
203 %define build_modules 1
204 %ifarch x86_64 ia64
205 %define build_authlibs 1
206 %else
207 %define build_authlibs 0
208 %endif
209 %endif
210
211 %ifarch %{ix86}
212 %define build_userspace 0
213 %define build_modules 1
214 %define build_authlibs 1
215 %endif
216
217 %ifarch i386
218 %define build_userspace 1
219 %define build_modules 0
220 %define build_authlibs 1
221 %endif
222
223 %endif
224
225 # deal with cmdline specification
226 %if %{build_userspace_on_cmdline} || %{build_modules_on_cmdline}
227 %if !%{build_userspace_on_cmdline}
228 %define build_userspace 0
229 %endif
230 %if !%{build_modules_on_cmdline}
231 %define build_modules 0
232 %endif
233 %endif
234
235 %if !%{build_authlibs_on_cmdline}
236 %if %{build_userspace_on_cmdline}
237 %define build_authlibs 1
238 %else
239 %define build_authlibs 0
240 %endif
241 %endif
242
243 # Make sure RPM doesn't complain about installed but non-packaged files.
244 #define __check_files  %{nil}
245
246 Summary: OpenAFS distributed filesystem
247 Name: openafs
248 Version: %{pkgvers}
249 Release: %{osvers}.%{pkgrel}
250 License: IBM Public License
251 URL: http://www.openafs.org
252 BuildRoot: %{_tmppath}/%{name}-%{version}-root
253 Packager: OpenAFS Gatekeepers <openafs-gatekeepers@openafs.org>
254 Group: Networking/Filesystems
255 BuildRequires: %{?kdepend:%{kdepend}, } pam-devel, ncurses-devel, flex, bison
256 %if %{krb5support}
257 BuildRequires: krb5-devel
258 %endif
259 ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
260
261 #    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
262 Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
263 Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
264 %define srcdir openafs-%{afsvers}
265
266 Source10: http://www.openafs.org/dl/openafs/%{afsvers}/RELNOTES-%{afsvers}
267 Source11: http://www.openafs.org/dl/openafs/%{afsvers}/ChangeLog
268
269 Source20: http://dl.central.org/dl/cellservdb/CellServDB.2010-02-28
270
271 Source30: openafs-kernel-version.sh
272 Source996: openafs-kvers-is.sh
273 Source997: openafs-buildfedora.pl
274 Source998: openafs-buildall.sh
275 Source999: openafs-kmodtool
276
277 %description
278 The AFS distributed filesystem.  AFS is a distributed filesystem
279 allowing cross-platform sharing of files among multiple computers.
280 Facilities are provided for access control, authentication, backup and
281 administrative management.
282
283 This package provides common files shared across all the various
284 OpenAFS packages but are not necessarily tied to a client or server.
285
286 The OpenAFS SRPM can be rebuilt with the following options to control
287 what gets built:
288
289  --define "kernvers 2.4.20-1.1376_FC3" Specify the specific kernel version 
290                                   to build modules against. The default is
291                                   to build against the currently-running
292                                   kernel.
293  --define "kbase /lib/modules/"   The base location to look for kernel headers
294  --define "kend /build"           The 'end' location to look for kernels
295                                   The build will define ksrvdir as
296                                   %%{kbase}<kernvers>%%{kend}
297
298  --without krb5                   Disable krb5 support (default: with krb5)
299  --with bitmap-later              Enable "bitmap later" support
300  --with bos-restricted            Enable "bos restricted" mode
301  --with largefiles                Enable "largefile fileserver" mode
302  --with supergroups               Enable "supergroups"
303
304  --target=i386                    The target architecture to build for.
305                                   When building for a non-default target
306                                   the build may choose whether to build
307                                   userspace or kernel modules automatically.
308                                   The defaults are probably what you want.
309
310  --define "build_userspace 1"     Request building of userspace tools
311  --define "build_modules 1"       Request building of kernel modules
312                                   You probably never need to specify these.
313
314  --define "kmoddir /lib/modules"  This is the base location where modules
315                                   will be installed.  You probably don't
316                                   need to change this ever.
317
318  --define "fedorakmod 0"          Disable the building of 'Fedora' style kernel 
319                                   modules, and use the old format.
320
321  --define "kvariants <variants>"  When building Fedora style kernel modules,
322                                   this defines the set of kernel variants
323                                   to build.
324                                   <variants> is a space seperated list which
325                                   may contain one or more of
326                                   '' (for the generic kernel), smp, PAE, xen
327                                   or kdump 
328
329 To a kernel module for your running kernel, just run:
330   rpmbuild --rebuild --target=`uname -m` openafs-%{pkgvers}-%{osvers}.%{pkgrel}.src.rpm
331
332 ##############################################################################
333 #
334 # build the userspace side of things if so requested
335 #
336 ##############################################################################
337 %if %{build_userspace}
338
339 %package client
340 Requires: binutils, openafs = %{version}
341
342 %if %{fedorakmod}
343 Requires: %{name}-kmod >= %{version}
344 Provides: %{name}-kmod-common = %{version}
345 %else
346 Requires: openafs-kernel
347 %endif
348
349 Summary: OpenAFS Filesystem Client
350 Group: Networking/Filesystem
351
352 %description client
353 The AFS distributed filesystem.  AFS is a distributed filesystem
354 allowing cross-platform sharing of files among multiple computers.
355 Facilities are provided for access control, authentication, backup and
356 administrative management.
357
358 This package provides basic client support to mount and manipulate
359 AFS.
360
361 %package server
362 Requires: openafs = %{version}
363 Summary: OpenAFS Filesystem Server
364 Group: Networking/Filesystems
365
366 %description server
367 The AFS distributed filesystem.  AFS is a distributed filesystem
368 allowing cross-platform sharing of files among multiple computers.
369 Facilities are provided for access control, authentication, backup and
370 administrative management.
371
372 This package provides basic server support to host files in an AFS
373 Cell.
374
375 %if %{build_dkmspkg}
376 %package -n dkms-%{name}
377 Summary:        DKMS-ready kernel source for AFS distributed filesystem
378 Group:          Development/Kernel
379 Provides:       openafs-kernel = %{version}
380 %if %{fedorakmod}
381 Provides: %{name}-kmod = %{version}
382 %endif
383 Requires(pre):  dkms
384 Requires(pre):  flex
385 Requires(post): dkms
386 Requires:       %{name}-kmod-common = %{version}
387
388 %description -n dkms-%{name}
389 The AFS distributed filesystem.  AFS is a distributed filesystem
390 allowing cross-platform sharing of files among multiple computers.
391 Facilities are provided for access control, authentication, backup and
392 administrative management.
393
394 This package provides the source code to allow DKMS to build an
395 AFS kernel module.
396 %endif
397
398 %if %{build_authlibs}
399 %package authlibs
400 Summary: OpenAFS authentication shared libraries
401 Group: Networking/Filesystems
402
403 %description authlibs
404 The AFS distributed filesystem.  AFS is a distributed filesystem
405 allowing cross-platform sharing of files among multiple computers.
406 Facilities are provided for access control, authentication, backup and
407 administrative management.
408
409 This package provides a shared version of libafsrpc and libafsauthent. 
410 None of the programs included with OpenAFS currently use these shared 
411 libraries; however, third-party software that wishes to perform AFS 
412 authentication may link against them.
413 %endif
414
415 %package authlibs-devel
416 %if %{build_authlibs}
417 Requires: openafs-authlibs = %{version}
418 %endif
419 Requires: openafs-devel = %{version}
420 Summary: OpenAFS shared library development
421 Group: Development/Filesystems
422
423 %description authlibs-devel
424 The AFS distributed filesystem.  AFS is a distributed filesystem
425 allowing cross-platform sharing of files among multiple computers.
426 Facilities are provided for access control, authentication, backup and
427 administrative management.
428
429 This package includes the static versions of libafsrpc and 
430 libafsauthent, and symlinks required for building against the dynamic 
431 libraries.
432
433 %package devel
434 Summary: OpenAFS Development Libraries and Headers
435 Group: Development/Filesystems
436
437 %description devel
438 The AFS distributed filesystem.  AFS is a distributed filesystem
439 allowing cross-platform sharing of files among multiple computers.
440 Facilities are provided for access control, authentication, backup and
441 administrative management.
442
443 This package provides static development libraries and headers needed
444 to compile AFS applications.  Note: AFS currently does not provide
445 shared libraries.
446
447 %package docs
448 Summary: OpenAFS user and administrator documentation
449 Requires: openafs = %{version}
450 Group: Networking/Filesystems
451
452 %description docs
453 The AFS distributed filesystem.  AFS is a distributed filesystem
454 allowing cross-platform sharing of files among multiple computers.
455 Facilities are provided for access control, authentication, backup and
456 administrative management.
457
458 This package provides HTML documentation for OpenAFS users and system
459 administrators.
460
461 %package kernel-source
462 Summary: OpenAFS Kernel Module source tree
463 Group: Networking/Filesystems
464 Provides: openafs-kernel = %{version}
465 %if %{fedorakmod}
466 Provides: %{name}-kmod = %{version}
467 %endif
468
469 %description kernel-source
470 The AFS distributed filesystem.  AFS is a distributed filesystem
471 allowing cross-platform sharing of files among multiple computers.
472 Facilities are provided for access control, authentication, backup and
473 administrative management.
474
475 This package provides the source code to build your own AFS kernel
476 module.
477
478 %package compat
479 Summary: OpenAFS client compatibility symlinks
480 Requires: openafs = %{version}, openafs-client = %{version}
481 Group: Networking/Filesystems
482 Obsoletes: openafs-client-compat
483
484 %description compat
485 The AFS distributed filesystem.  AFS is a distributed filesystem
486 allowing cross-platform sharing of files among multiple computers.
487 Facilities are provided for access control, authentication, backup and
488 administrative management.
489
490 This package provides compatibility symlinks in /usr/afsws.  It is
491 completely optional, and is only necessary to support legacy
492 applications and scripts that hard-code the location of AFS client
493 programs.
494
495 %package kpasswd
496 Summary: OpenAFS KA kpasswd support
497 Requires: openafs
498 Group: Networking/Filesystems
499
500 %description kpasswd
501 The AFS distributed filesystem.  AFS is a distributed filesystem
502 allowing cross-platform sharing of files among multiple computers.
503 Facilities are provided for access control, authentication, backup and
504 administrative management.
505
506 This package provides the compatibility symlink for kpasswd, in case
507 you are using KAserver instead of Krb5.
508
509 %if %{krb5support}
510 %package krb5
511 Summary: OpenAFS programs to use with krb5
512 Requires: openafs = %{version}
513 Group: Networking/Filesystems
514 BuildRequires: krb5-devel
515
516 %description krb5
517 The AFS distributed filesystem.  AFS is a distributed filesystem
518 allowing cross-platform sharing of files among multiple computers.
519 Facilities are provided for access control, authentication, backup and
520 administrative management.
521
522 This package provides compatibility programs so you can use krb5
523 to authenticate to AFS services, instead of using AFS's homegrown
524 krb4 lookalike services.
525 %endif
526
527 %endif
528
529 ##############################################################################
530 #
531 # build the kernel modules if so requested
532 #
533 ##############################################################################
534 %if %{build_modules}
535
536 %if %{fedorakmod}
537 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
538
539 %else
540
541 # Legacy kernel compilation code here ...
542 %define modkversion %(echo %{kernvers} | cut -d- -f1)
543 %define modkrelease %(echo %{kernvers} | cut -d- -f2)
544 %define modpkgrel %{modkversion}_%{modkrelease}_%{pkgrel}
545
546 %if %{up_package}
547 %package kernel
548 Summary: OpenAFS Kernel Module (compiled for UP)
549 Release: %{modpkgrel}
550 Group: Networking/Filesystems
551 Provides: openafs-kernel = %{version}
552 %if %{kprovidesarch}
553 Requires: kernel-%{_target_cpu} = %{kversion}
554 %else
555 Requires: /boot/config-%{kernvers}
556 %endif
557
558 %description kernel
559 The AFS distributed filesystem.  AFS is a distributed filesystem
560 allowing cross-platform sharing of files among multiple computers.
561 Facilities are provided for access control, authentication, backup and
562 administrative management.
563
564 This package provides a precompiled AFS kernel module for %{kernvers}.
565 %endif
566
567 %if %{smp_package}
568 %package kernel-smp
569 Summary: OpenAFS Kernel Module (compiled for SMP)
570 Release: %{modpkgrel}
571 Provides: openafs-kernel = %{version}
572 %if %{kprovidesarch}
573 Requires: kernel-smp-%{_target_cpu} = %{kversion}
574 %else
575 Requires: /boot/config-%{kernvers}%{?smp_ext:%{smp_ext}}
576 %endif
577 Group: Networking/Filesystems
578
579 %description kernel-smp
580 The AFS distributed filesystem.  AFS is a distributed filesystem
581 allowing cross-platform sharing of files among multiple computers.
582 Facilities are provided for access control, authentication, backup and
583 administrative management.
584
585 This package provides a precompiled AFS kernel module for %{kernvers}.
586 %endif
587
588 %if %{largesmp_package}
589 %package kernel-largesmp
590 Summary: OpenAFS Kernel Module (compiled for LARGESMP)
591 Release: %{modpkgrel}
592 Provides: openafs-kernel = %{version}
593 %if %{kprovidesarch}
594 Requires: kernel-largesmp-%{_target_cpu} = %{kversion}
595 %else
596 Requires: /boot/config-%{kernvers}%{?largesmp_ext:%{largesmp_ext}}
597 %endif
598 Group: Networking/Filesystems
599
600 %description kernel-largesmp
601 The AFS distributed filesystem.  AFS is a distributed filesystem
602 allowing cross-platform sharing of files among multiple computers.
603 Facilities are provided for access control, authentication, backup and
604 administrative management.
605
606 This package provides a precompiled AFS kernel module for %{kernvers}.
607 %endif
608  
609 %if %{bigmem_package}
610 %package kernel-bigmem
611 Summary: OpenAFS Kernel Module (compiled for SMP & big memory support)
612 Release: %{modpkgrel}
613 Provides: openafs-kernel = %{version}
614 %if %{kprovidesarch}
615 Requires: kernel-bigmem-%{_target_cpu} = %{kversion}
616 %else
617 Requires: /boot/config-%{kernvers}%{?bigmem_ext:%{bigmem_ext}}
618 %endif
619 Group: Networking/Filesystems
620
621 %description kernel-bigmem
622 The AFS distributed filesystem.  AFS is a distributed filesystem
623 allowing cross-platform sharing of files among multiple computers.
624 Facilities are provided for access control, authentication, backup and
625 administrative management.
626
627 This package provides a precompiled AFS kernel module for %{kernvers}.
628 %endif
629
630 %if %{hugemem_package}
631 %package kernel-hugemem
632 Summary: OpenAFS Kernel Module (compiled for SMP & huge memory support)
633 Release: %{modpkgrel}
634 Provides: openafs-kernel = %{version}
635 %if %{kprovidesarch}
636 Requires: kernel-hugemem-%{_target_cpu} = %{kversion}
637 %else
638 Requires: /boot/config-%{kernvers}%{?hugemem_ext:%{hugemem_ext}}
639 %endif
640 Group: Networking/Filesystems
641
642 %description kernel-hugemem
643 The AFS distributed filesystem.  AFS is a distributed filesystem
644 allowing cross-platform sharing of files among multiple computers.
645 Facilities are provided for access control, authentication, backup and
646 administrative management.
647
648 This package provides a precompiled AFS kernel module for %{kernvers}.
649 %endif
650
651 %endif
652 # End legacy kernel compilation code ...
653 %endif
654
655 ##############################################################################
656 #
657 # PREP
658 #
659 ##############################################################################
660
661 %prep
662
663 : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
664 : @@@
665 : @@@ kernel version:     %{kernvers}
666 %if %{fedorakmod}
667 : @@@ kernel variations:  %{kvariants}
668 %else
669 : @@@ base kernel version:%{kversion}
670 : @@@ kernel modules dir: %{kxmoddir}
671 : @@@ kernel source dir:  %{ksrcdir}
672 %if %{kvers_is_24}
673 : @@@ kernel variations:  %{kvariations}
674 %else
675 %if %{up_package}
676 : @@@ kernel type:        up
677 %else
678 : @@@ kernel type:        %{ktype}
679 %endif
680 %endif
681 %endif
682 : @@@ PAM modules dir:    %{pamdir}
683 : @@@ build userspace:    %{build_userspace}
684 : @@@ build modules:      %{build_modules}
685 : @@@ arch:               %{_arch}
686 : @@@ target cpu:         %{_target_cpu}
687 : @@@
688 : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
689
690 # Install OpenAFS src and doc
691 #%setup -q -n %{srcdir}
692 %setup -q -b 1 -n %{srcdir}
693
694 ##############################################################################
695 #
696 # building
697 #
698 ##############################################################################
699 %build
700
701 case %{kernvers} in
702    2.4.*)
703        kv='24'
704        ;;
705    2.6.*)
706        kv='26'
707        ;;
708    *)
709        echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`"
710        exit 1
711        ;;
712 esac
713
714 case %{_arch} in
715        x86_64)                         sysname=amd64_linux${kv}        ;;
716        alpha*)                         sysname=alpha_linux_${kv}       ;;
717        i386|i486|i586|i686|athlon)     sysname=i386_linux${kv}         ;;
718        *)                              sysname=%{_arch}_linux${kv}     ;;
719 esac
720
721 %ifarch %{ix86}
722 archlist="i386 i586 i686 athlon"
723 %if %{bootkernelsupport}
724   archlist="${archlist} BOOT"
725 %endif
726 %else
727 archlist=%{_arch}
728 %endif
729
730 #
731 # PrintDefine var value statements file
732 #
733 PrintDefine() {
734     case $3 in
735     *ifn*)
736         echo "#ifndef $1" >> $4
737         ;;
738     esac
739     case $3 in
740     *und*)
741         echo "#undef $1" >> $4
742         ;;
743     esac
744     case $3 in
745     *def*)
746         echo "#define $1 $2" >> $4
747         ;;
748     esac
749     case $3 in
750     *end*)
751         echo "#endif" >> $4
752         ;;
753     esac
754     case $3 in
755     *inc*)
756         echo "#include $1" >> $4
757         ;;
758     esac
759     case $3 in
760     *nl*)
761         echo "" >> $4
762         ;;
763     esac
764 }
765
766 # PrintRedhatKernelFix arch mp file
767 PrintRedhatKernelFix() {
768     arch="$1"
769     up=0
770     smp=0
771     largesmp=0
772     ent=0
773     bigmem=0
774     hugemem=0
775     boot=0
776     bootsmp=0
777
778     case "$2" in
779        up)     up=1;;
780        smp)    smp=1;;
781        largesmp) largesmp=1;;
782        bigmem) bigmem=1;;
783        hugemem) hugemem=1;;
784        *)
785                echo "$2 not supported"
786                exit 2;;
787     esac
788
789     file="$3"
790
791     rm -f $file
792     touch $file
793
794     PrintDefine "REDHAT_FIX_H" "" ifn,def,nl $file
795
796     PrintDefine __BOOT_KERNEL_ENTERPRISE $ent     und,def,nl $file
797     PrintDefine __BOOT_KERNEL_BIGMEM     $bigmem  und,def,nl $file
798     PrintDefine __BOOT_KERNEL_HUGEMEM    $hugemem und,def,nl $file
799     PrintDefine __BOOT_KERNEL_SMP        $smp     und,def,nl $file
800     PrintDefine __BOOT_KERNEL_LARGESMP   $largesmp und,def,nl $file
801     PrintDefine __BOOT_KERNEL_UP         $up      und,def,nl $file
802     PrintDefine __BOOT_KERNEL_BOOT       $boot    und,def,nl $file
803     PrintDefine __BOOT_KERNEL_BOOTSMP    $bootsmp und,def,nl $file
804
805     PrintDefine '"/boot/kernel.h"' "" inc,nl $file      # include file
806
807     for ar in $archlist ; do
808         if [ "$ar" = "$arch" ]; then
809             PrintDefine "__MODULE_KERNEL_$ar" "1" ifn,def,end $file
810         else
811             PrintDefine "__MODULE_KERNEL_$ar" "" und $file      # undef
812         fi
813     done
814     echo "" >> $file
815
816     PrintDefine "" "" end $file
817
818     if [ %{debugspec} = 1 ] ; then
819         echo "Kernel Configuration File for Red Hat kernels:"
820         cat $file
821     fi
822 }
823
824 config_opts="--enable-redhat-buildsys \
825         %{?_with_bitmap_later:--enable-bitmap-later} \
826         %{?_with_bos_restricted:--enable-bos-restricted-mode} \
827         %{?_with_largefiles:--enable-largefile-fileserver} \
828         %{?_with_supergroups:--enable-supergroups} \
829         --enable-transarc-paths"
830
831 # Configure AFS
832
833 # If we're using Fedora kmods, work out which is the best kernel module to 
834 # use for the userland configuration step. If no variants have been specified,
835 # then use the standard kernel. If variants are specified, use the standard kernel
836 # if it's listed, otherwise pick the first listed kernel.
837 ksrc=""
838 %if %{fedorakmod} 
839   for kvariant in %{kvariants} ; do
840     if [ -z "${kvariant}" -o -z "$ksrc" ] ; then
841       if [ -d %{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu} ] ; then
842         ksrc=%{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu}
843       else
844         ksrc=%{_usrsrc}/kernels/%{kverrel}.%{_target_cpu}${kvariant:+.$kvariant}
845       fi
846     fi
847   done
848 %endif
849 if [ -z "$ksrc" ] ; then
850 ksrc=%{ksrcdir}
851 fi
852
853 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
854
855 ./configure --with-afs-sysname=${sysname} \
856        --prefix=%{_prefix} \
857        --libdir=%{_libdir} \
858        --bindir=%{_bindir} \
859        --sbindir=%{_sbindir} \
860        --disable-strip-binaries \
861        --with-linux-kernel-packaging \
862        --enable-disconnected \
863 %if %{build_modules}
864        --with-linux-kernel-headers=${ksrc} \
865 %endif
866 %if %{krb5support}
867         --with-krb5-conf=%{krb5config} \
868 %endif
869        $config_opts \
870        || exit 1
871
872 # Build the libafs tree
873 make only_libafs_tree || exit 1
874
875 # Configure each of our kernel modules
876
877 %if %{fedorakmod} && %{build_modules}
878 for kvariant in %{kvariants} ; do
879   if [ -n "${kvariant}" ] ; then
880     if [ -d %{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu} ] ; then
881       ksrc=%{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu}
882     else
883       ksrc=%{_usrsrc}/kernels/%{kverrel}.%{_target_cpu}${kvariant:+.$kvariant}
884     fi
885
886     cp -R libafs_tree _kmod_build_${kvariant}
887     pushd _kmod_build_${kvariant}
888     ./configure --with-afs-sysname=${sysname} \
889         --prefix=%{_prefix} \
890         --libdir=%{_libdir} \
891         --bindir=%{_bindir} \
892         --sbindir=%{_sbindir} \
893         --with-linux-kernel-packaging \
894         --with-linux-kernel-headers=${ksrc} \
895         --enable-disconnected \
896 %if %{krb5support}
897         --with-krb5-conf=/usr/kerberos/bin/krb5-config \
898 %endif
899         $config_opts \
900         || exit 1
901     popd
902   fi
903 done
904 %endif
905
906 %if %{build_userspace}
907 # Build the user-space AFS stuff
908 make dest_nolibafs || exit 1
909 %endif
910
911 %if %{build_modules}
912 %if %{fedorakmod}
913 for kvariant in %{kvariants}
914 do
915   if [ -n "${kvariant}" ] ; then
916     pushd _kmod_build_$kvariant;
917     make all
918     popd
919   else
920     make dest_only_libafs
921   fi
922 done
923
924 %else
925 # Begin legacy kernel module building code
926
927 %if %{kvers_is_24}
928 # Build all the kernel modules for linux 2.4.x
929 for variation in %{kvariations}
930 do
931     if [ ${variation} = up ]
932     then
933        local_smp_def=-DREDHAT_FIX
934        suffix=
935     else
936        local_smp_def="-DAFS_SMP -DREDHAT_FIX"
937        suffix=${variation}
938     fi
939
940     PrintRedhatKernelFix %{_target_cpu} $variation src/config/redhat-fix.h
941     make dest_only_libafs LOCAL_SMP_DEF="${local_smp_def}" \
942         LINUX_MODULE_NAME="${suffix}" MPS=SP
943
944 done
945 rm -f src/config/redhat-fix.h
946
947 %elseif %{kvers_is_26}
948 # Build the kernel module for this version of linux 2.6.x
949 # Notice how much easier this is than 2.4.  On the other hand,
950 # we require much more external support to build multiple modules.
951
952   # the MPS=SP just means that we don't add a '.mp' to the name.
953   make dest_only_libafs MPS=SP
954
955 %endif
956 # End legacy kernel module building code
957 %endif
958 %endif
959
960
961 ##############################################################################
962 #
963 # installation
964 #
965 ##############################################################################
966 %install
967
968 export DONT_GPRINTIFY=1
969
970 [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
971
972 case %{kernvers} in
973    2.4.*)
974        kv='24'
975        kmodend=.o
976        ;;
977    2.6.*)
978        kv='26'
979        kmodend=.ko
980        ;;
981    *)
982        echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`"
983        exit 1
984        ;;
985 esac
986
987 case %{_arch} in
988        x86_64)                         sysname=amd64_linux${kv}        ;;
989        alpha*)                         sysname=alpha_linux_${kv}       ;;
990        i386|i486|i586|i686|athlon)     sysname=i386_linux${kv}         ;;
991        *)                              sysname=%{_arch}_linux${kv}     ;;
992 esac
993
994 # Build install tree
995 %if %{build_userspace}
996 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
997 mkdir -p $RPM_BUILD_ROOT%{_libdir}
998 mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
999 mkdir -p $RPM_BUILD_ROOT%{initdir}
1000 mkdir -p $RPM_BUILD_ROOT/etc/openafs
1001 mkdir -p $RPM_BUILD_ROOT%{pamdir}
1002 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/etc
1003 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/logs
1004 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/etc
1005 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/cache
1006 chmod 700 $RPM_BUILD_ROOT%{_prefix}/vice/cache
1007 mkdir -p $RPM_BUILD_ROOT%{_mandir}
1008
1009 # Copy files from dest to the appropriate places in BuildRoot
1010 tar cf - -C ${sysname}/dest bin include | tar xf - -C $RPM_BUILD_ROOT%{_prefix}
1011 tar cf - -C ${sysname}/dest/lib . | tar xf - -C $RPM_BUILD_ROOT%{_libdir}
1012 tar cf - -C ${sysname}/dest/etc . | tar xf - -C $RPM_BUILD_ROOT%{_sbindir}
1013 tar cf - -C ${sysname}/dest/root.server%{_prefix}/afs bin | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/afs
1014 tar cf - -C ${sysname}/dest/root.client%{_prefix}/vice/etc afsd C | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/vice/etc
1015
1016 # Fix the location of restorevol, since it should be available for
1017 # any user in /usr/bin
1018 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/restorevol $RPM_BUILD_ROOT%{_bindir}/restorevol
1019
1020 # Link kpasswd to kapasswd
1021 ln -f $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd
1022
1023 # Copy root.client config files
1024 install -m 755 src/packaging/RedHat/openafs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openafs
1025 install -m 755 src/packaging/RedHat/openafs-client.init $RPM_BUILD_ROOT%{initdir}/openafs-client
1026 install -m 755 src/packaging/RedHat/openafs-server.init $RPM_BUILD_ROOT%{initdir}/openafs-server
1027
1028 # Copy PAM modules
1029 install -m 755 ${sysname}/dest/lib/pam* $RPM_BUILD_ROOT%{pamdir}
1030
1031 # PAM symlinks
1032 ln -sf pam_afs.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.so
1033 ln -sf pam_afs.krb.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.krb.so
1034
1035 # Populate /usr/vice/etc
1036 uve=$RPM_BUILD_ROOT%{_prefix}/vice/etc
1037 install -p -m 644 src/packaging/RedHat/openafs-ThisCell $uve/ThisCell
1038 install -p -m 644 %{SOURCE20} $uve/CellServDB.dist
1039 install -p -m 644 src/packaging/RedHat/openafs-cacheinfo $uve/cacheinfo
1040
1041 #
1042 # install dkms source
1043 #
1044 install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/src
1045 cp -a libafs_tree $RPM_BUILD_ROOT%{_prefix}/src/%{name}-%{dkms_version}
1046
1047 cat > $RPM_BUILD_ROOT%{_prefix}/src/%{name}-%{dkms_version}/dkms.conf <<EOF
1048
1049 PACKAGE_VERSION="%{dkms_version}"
1050
1051 # Items below here should not have to change with each driver version
1052 PACKAGE_NAME="%{name}"
1053 MAKE[0]="KMODNAME=openafs.ko; DSTKMOD=\\".\\"; [ \\"\\\`echo \\"\${kernelver_array[0]}\\" | sed -e 's/^\\([0-9]*\\.[0-9]*\\)\\..*/\\1/'\\\`\\" = \\"2.4\\" ] && KMODNAME=\\"libafs-*\\" && DSTKMOD=openafs.o; ./configure --enable-disconnected --with-linux-kernel-headers=\${kernel_source_dir} --with-linux-kernel-packaging; make; mv src/libafs/MODLOAD-*/\\\$KMODNAME \\\$DSTKMOD"
1054 CLEAN="make -C src/libafs clean"
1055
1056 BUILT_MODULE_NAME[0]="\$PACKAGE_NAME"
1057 DEST_MODULE_LOCATION[0]="/kernel/3rdparty/\$PACKAGE_NAME/"
1058 STRIP[0]=no
1059 AUTOINSTALL=yes
1060
1061 EOF
1062
1063 #
1064 # install kernel-source
1065 #
1066
1067 # Install the kernel module source tree
1068 mkdir -p $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
1069 tar cf - -C libafs_tree . | \
1070         tar xf - -C $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
1071
1072 # Next, copy the LICENSE Files, README
1073 install -m 644 src/LICENSE $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1074 install -m 644 src/packaging/RedHat/openafs-LICENSE.Sun $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1075 install -m 644 src/packaging/RedHat/openafs-README $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/README
1076
1077 #
1078 # Install DOCUMENTATION
1079 #
1080
1081 # Build the DOC directory
1082 mkdir -p $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1083 tar cf - -C doc LICENSE html pdf | \
1084     tar xf - -C $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1085 install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1086 install -m 644 %{SOURCE11} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1087
1088 #
1089 # man pages
1090 #
1091 tar cf - -C doc/man-pages man1 man5 man8 | \
1092     tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1093
1094 # Copy the uninstalled krb5 files (or delete the unused krb5 files)
1095 %if %{krb5support}
1096 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/asetkey $RPM_BUILD_ROOT%{_sbindir}/asetkey
1097 %else
1098 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/asetkey.*
1099 %endif
1100
1101 # remove unused man pages
1102 for x in afs_ftpd afs_inetd afs_login afs_rcp afs_rlogind afs_rsh \
1103     dkload knfs package runntp symlink symlink_list symlink_make \
1104     symlink_remove; do
1105         rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${x}.1
1106 done
1107
1108 # rename kpasswd to kapasswd
1109 mv $RPM_BUILD_ROOT%{_mandir}/man1/kpasswd.1 $RPM_BUILD_ROOT%{_mandir}/man1/kapasswd.1
1110
1111 # gzip man pages
1112 gzip -9 $RPM_BUILD_ROOT%{_mandir}/man*/*
1113
1114 # create list of man pages that go in the 'openafs' package
1115 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man1 \
1116         |egrep '^afs|^fs|^kas|^klog|kapasswd|pagsh|^pts|^restorevol|^rxdebug|scout|^sys|tokens|translate|udebug|unlog|^uss|^vos' \
1117         >openafs-man1files
1118
1119 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man5 \
1120         |egrep 'CellServDB|ThisCell|afsmonitor|^butc|^uss' \
1121         >openafs-man5files
1122
1123 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man8 \
1124         |egrep '^backup|^bos|^butc|^fms|^fssync-debug|^fstrace|^kas|^read_tape|^uss' \
1125         >openafs-man8files
1126
1127 #
1128 # create filelist
1129 #
1130 grep -v "^#" >openafs-file-list <<EOF-openafs-file-list
1131 %{_bindir}/afsmonitor
1132 %{_bindir}/bos
1133 %{_bindir}/fs
1134 %{_bindir}/kapasswd
1135 %{_bindir}/klog
1136 %{_bindir}/klog.krb
1137 %{_bindir}/pagsh
1138 %{_bindir}/pagsh.krb
1139 %{_bindir}/pts
1140 %{_bindir}/restorevol
1141 %{_bindir}/scout
1142 %{_bindir}/sys
1143 %{_bindir}/tokens
1144 %{_bindir}/tokens.krb
1145 %{_bindir}/translate_et
1146 %{_bindir}/udebug
1147 %{_bindir}/unlog
1148 %{_sbindir}/backup
1149 %{_sbindir}/butc
1150 %{_sbindir}/fms
1151 %{_sbindir}/fstrace
1152 %{_sbindir}/kas
1153 %{_sbindir}/read_tape
1154 %{_sbindir}/rxdebug
1155 %{_sbindir}/uss
1156 %{_sbindir}/vos
1157 %{_sbindir}/vsys
1158 EOF-openafs-file-list
1159
1160 # add man pages to the list
1161 cat openafs-man1files \
1162         | ( while read x; do echo "%{_mandir}/man1/$x"; done ) \
1163         >>openafs-file-list
1164 cat openafs-man5files \
1165         | ( while read x; do echo "%{_mandir}/man5/$x"; done ) \
1166         >>openafs-file-list
1167 cat openafs-man8files \
1168         | ( while read x; do echo "%{_mandir}/man8/$x"; done ) \
1169         >>openafs-file-list
1170
1171 #
1172 # Install compatiblity links
1173 #
1174 for d in bin:bin etc:sbin; do
1175   olddir=`echo $d | sed 's/:.*$//'`
1176   newdir=`echo $d | sed 's/^.*://'`
1177   mkdir -p $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir
1178   for f in `cat openafs-file-list`; do
1179     if echo $f | grep -q /$newdir/; then
1180       fb=`basename $f`
1181       ln -sf %{_prefix}/$newdir/$fb $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir/$fb
1182     fi
1183   done
1184 done
1185
1186 #
1187 # Remove files we're not installing
1188 #
1189
1190 # remove duplicated files from /usr/afs/bin
1191 for f in bos fs kas klog klog.krb kpwvalid pts tokens tokens.krb udebug vos ; do
1192   rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/$f
1193 done
1194
1195 # the rest are not needed.
1196 for f in dlog dpass install knfs livesys xstat_cm_test xstat_fs_test ; do
1197   rm -f $RPM_BUILD_ROOT%{_bindir}/$f
1198 done
1199
1200 # not supported on Linux or duplicated
1201 for f in kdb rmtsysd kpwvalid ; do
1202   rm -f $RPM_BUILD_ROOT%{_sbindir}/$f
1203 done
1204 # sometimes install sucks and puts down a directory. kill it all.
1205 rm -rf $RPM_BUILD_ROOT%{_sbindir}/kdump*
1206
1207 # remove man pages from programs deleted above
1208 for f in 1/dlog 1/dpass 1/livesys 1/xstat_cm_test 1/xstat_fs_test 8/kdb 8/kpwvalid 8/xfs_size_check 1/package_test 5/package 8/package ; do
1209   rm -f $RPM_BUILD_ROOT%{_mandir}/man$f.*
1210 done
1211
1212 # PAM modules are doubly-installed  Remove the version we don't need
1213 for f in pam_afs.krb.so.1 pam_afs.so.1 ; do
1214   rm -f $RPM_BUILD_ROOT%{_libdir}/$f
1215 done
1216
1217 %if !%{build_authlibs}
1218 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
1219 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
1220 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
1221 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
1222 %endif
1223
1224 %endif
1225
1226 %if %{build_modules}
1227 %if %{fedorakmod}
1228 for kvariant in %{kvariants}
1229 do
1230   if [ -n "$kvariant" ] ; then
1231     if [ -d _kmod_build_$kvariant/src/libafs/MODLOAD-%{kverrel}${kvariant}-SP ] ; then
1232       srcdir=_kmod_build_$kvariant/src/libafs/MODLOAD-%{kverrel}${kvariant}-SP
1233       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}${kvariant}/extra/openafs
1234     else
1235       srcdir=_kmod_build_$kvariant/src/libafs/MODLOAD-%{kverrel}.%{_target_cpu}.${kvariant}-SP
1236       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}.%{_target_cpu}.${kvariant}/extra/openafs
1237     fi
1238   else
1239     if [ -d ${sysname}/dest/root.client/lib/modules/%{kverrel}/extra/openafs ] ; then
1240       srcdir=${sysname}/dest/root.client/lib/modules/%{kverrel}/extra/openafs
1241       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}/extra/openafs
1242     else
1243       srcdir=${sysname}/dest/root.client/lib/modules/%{kverrel}.%{_target_cpu}/extra/openafs
1244       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}.%{_target_cpu}/extra/openafs
1245     fi
1246   fi
1247
1248   mkdir -p ${dstdir}
1249   install -m 755 ${srcdir}/openafs.ko ${dstdir}/openafs.ko
1250 done
1251 %else
1252 # Install the kernel modules
1253 for variation in %{kvariations}
1254 do
1255     if [ ${variation} = up ]
1256     then
1257        kvar=%{kxmoddir}
1258        modname=openafs${kmodend}
1259     else
1260        kvar=%{kxmoddir}${variation}
1261        modname=openafs${kmodend}
1262     fi
1263
1264     srcdir=${sysname}/dest/root.client/lib/modules/%{kverrel}${kvariant}/extra/openafs
1265     dstdir=$RPM_BUILD_ROOT${kvar}/fs/openafs
1266
1267     mkdir -p ${dstdir}
1268
1269     install -m 755 ${srcdir}/${modname} ${dstdir}/openafs${kmodend}
1270 done
1271 %endif
1272 %endif
1273
1274 ##############################################################################
1275 ###
1276 ### clean
1277 ###
1278 ##############################################################################
1279 %clean
1280 rm -f openafs-file-list
1281 [ "$RPM_BUILD_ROOT" != "/" -a "x%{debugspec}" != "x1" ] && \
1282         rm -fr $RPM_BUILD_ROOT
1283
1284
1285 ##############################################################################
1286 ###
1287 ### scripts
1288 ###
1289 ##############################################################################
1290 %if %{build_userspace}
1291
1292 %pre compat
1293 if [ -e %{_prefix}/afsws ]; then
1294         /bin/rm -fr %{_prefix}/afsws
1295 fi
1296
1297 %post client
1298 chkconfig --add openafs-client
1299 if [ ! -d /afs ]; then
1300         mkdir /afs
1301         chown root.root /afs
1302         chmod 0755 /afs
1303 fi
1304
1305 # Create the CellServDB
1306 [ -f /usr/vice/etc/CellServDB.local ] || touch /usr/vice/etc/CellServDB.local
1307
1308 ( cd /usr/vice/etc ; \
1309   cat CellServDB.local CellServDB.dist > CellServDB ; \
1310   chmod 644 CellServDB )
1311
1312 echo
1313 echo The AFS cache is configured for 100 MB. Edit the
1314 echo /usr/vice/etc/cacheinfo file to change this before
1315 echo running AFS for the first time. You should also
1316 echo set your home cell in /usr/vice/etc/ThisCell.
1317 echo
1318 echo Also, you may want to edit /etc/pam.d/login and
1319 echo possibly others there to get an AFS token on login.
1320 echo Put the line:
1321 echo 
1322 echo    auth       sufficient   %{pamdir}/pam_afs.so try_first_pass ignore_root
1323 echo
1324 echo before the one for pwdb.
1325 echo
1326
1327 %post server
1328 chkconfig --add openafs-server
1329 %{initdir}/openafs-server condrestart
1330
1331 %if %{build_authlibs}
1332 %post authlibs
1333 /sbin/ldconfig
1334
1335 %postun authlibs
1336 /sbin/ldconfig
1337 %endif
1338
1339 %preun
1340 if [ $1 = 0 ] ; then
1341         [ -d /afs ] && rmdir /afs
1342 fi
1343
1344 %preun client
1345 if [ $1 = 0 ] ; then
1346         %{initdir}/openafs-client stop
1347         chkconfig --del openafs-client
1348 fi
1349
1350 %preun server
1351 if [ $1 = 0 ] ; then
1352         %{initdir}/openafs-server stop
1353         chkconfig --del openafs-server
1354 fi
1355
1356 %if %{build_dkmspkg}
1357 %post -n dkms-%{name}
1358 dkms add -m %{name} -v %{dkms_version} --rpm_safe_upgrade
1359 dkms build -m %{name} -v %{dkms_version} --rpm_safe_upgrade
1360 dkms install -m %{name} -v %{dkms_version} --rpm_safe_upgrade
1361
1362 %preun -n dkms-%{name}
1363 dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
1364 %endif
1365 %endif
1366
1367 %if %{build_modules}
1368 %if !%{fedorakmod}
1369 %if %{up_package}
1370 %post kernel
1371 /sbin/depmod -ae %{kernvers}
1372
1373 %postun kernel
1374 /sbin/depmod -ae %{kernvers}
1375
1376 %endif
1377
1378 %if %{smp_package}
1379 %post kernel-smp
1380 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1381
1382 %postun kernel-smp
1383 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1384 %endif
1385
1386 %if %{largesmp_package}
1387 %post kernel-largesmp
1388 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1389
1390 %postun kernel-largesmp
1391 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1392 %endif
1393  
1394 %if %{bigmem_package}
1395 %post kernel-bigmem
1396 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1397
1398 %postun kernel-bigmem
1399 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1400 %endif
1401
1402 %if %{hugemem_package}
1403 %post kernel-hugemem
1404 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1405
1406 %postun kernel-hugemem
1407 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1408 %endif
1409 %endif
1410 %endif
1411
1412 ##############################################################################
1413 ###
1414 ### file lists
1415 ###
1416 ##############################################################################
1417 %if %{build_userspace}
1418
1419 %files -f openafs-file-list
1420 %defattr(-,root,root)
1421 %config /etc/sysconfig/openafs
1422 %doc %{_docdir}/openafs-%{afsvers}/LICENSE
1423
1424 %files docs
1425 %defattr(-,root,root)
1426 %doc %{_docdir}/openafs-%{afsvers}
1427
1428 %files client
1429 %defattr(-,root,root)
1430 %dir %{_prefix}/vice
1431 %dir %{_prefix}/vice/cache
1432 %dir %{_prefix}/vice/etc
1433 %dir %{_prefix}/vice/etc/C
1434 %{_prefix}/vice/etc/CellServDB.dist
1435 %config %{_prefix}/vice/etc/ThisCell
1436 %config %{_prefix}/vice/etc/cacheinfo
1437 %{_bindir}/cmdebug
1438 %{_bindir}/up
1439 %{_prefix}/vice/etc/afsd
1440 %{_prefix}/vice/etc/C/afszcm.cat
1441 %{pamdir}/pam_afs.krb.so.1
1442 %{pamdir}/pam_afs.krb.so
1443 %{pamdir}/pam_afs.so.1
1444 %{pamdir}/pam_afs.so
1445 %{initdir}/openafs-client
1446 %{_mandir}/man1/cmdebug.*
1447 %{_mandir}/man1/copyauth.*
1448 %{_mandir}/man1/up.*
1449 %{_mandir}/man5/afs*
1450 %{_mandir}/man5/cacheinfo.*
1451 %{_mandir}/man8/afsd.*
1452 %{_mandir}/man8/rmtsysd.*
1453 %{_mandir}/man8/vsys.*
1454 %{_mandir}/man5/CellAlias.*
1455
1456 %files server
1457 %defattr(-,root,root)
1458 %dir %{_prefix}/afs
1459 %dir %{_prefix}/afs/bin
1460 %dir %{_prefix}/afs/etc
1461 %dir %{_prefix}/afs/logs
1462 %{_prefix}/afs/bin/bosserver
1463 %{_prefix}/afs/bin/bos_util
1464 %{_prefix}/afs/bin/buserver
1465 %{_prefix}/afs/bin/dafileserver
1466 %{_prefix}/afs/bin/dafssync-debug
1467 %{_prefix}/afs/bin/dasalvager
1468 %{_prefix}/afs/bin/davolserver
1469 %{_prefix}/afs/bin/fileserver
1470 %{_prefix}/afs/bin/fssync-debug
1471 # Should we support KAServer?
1472 %{_prefix}/afs/bin/kaserver
1473 %{_prefix}/afs/bin/ka-forwarder
1474 %{_prefix}/afs/bin/pt_util
1475 %{_prefix}/afs/bin/ptserver
1476 %{_prefix}/afs/bin/salvager
1477 %{_prefix}/afs/bin/salvageserver
1478 %{_prefix}/afs/bin/salvsync-debug
1479 %{_prefix}/afs/bin/state_analyzer
1480 %{_prefix}/afs/bin/upclient
1481 %{_prefix}/afs/bin/upserver
1482 %{_prefix}/afs/bin/vlserver
1483 %{_prefix}/afs/bin/volinfo
1484 %{_prefix}/afs/bin/volserver
1485 %{_sbindir}/kadb_check
1486 %{_sbindir}/prdb_check
1487 %{_sbindir}/vldb_check
1488 %{_sbindir}/vldb_convert
1489 %{_sbindir}/voldump
1490 %{initdir}/openafs-server
1491 %{_mandir}/man5/AuthLog.*
1492 %{_mandir}/man5/BackupLog.*
1493 %{_mandir}/man5/BosConfig.*
1494 %{_mandir}/man5/BosLog.*
1495 %{_mandir}/man5/FORCESALVAGE.*
1496 %{_mandir}/man5/FileLog.*
1497 %{_mandir}/man5/KeyFile.*
1498 %{_mandir}/man5/NetInfo.*
1499 %{_mandir}/man5/NetRestrict.*
1500 %{_mandir}/man5/NoAuth.*
1501 %{_mandir}/man5/SALVAGE.fs.*
1502 %{_mandir}/man5/SalvageLog.*
1503 %{_mandir}/man5/sysid.*
1504 %{_mandir}/man5/UserList.*
1505 %{_mandir}/man5/VLLog.*
1506 %{_mandir}/man5/VolserLog.*
1507 %{_mandir}/man5/bdb.DB0.*
1508 %{_mandir}/man5/fms.log.*
1509 %{_mandir}/man5/kaserver.DB0.*
1510 %{_mandir}/man5/kaserverauxdb.*
1511 %{_mandir}/man5/krb.conf.*
1512 %{_mandir}/man5/krb.excl.*
1513 %{_mandir}/man5/prdb.DB0.*
1514 %{_mandir}/man5/salvage.lock.*
1515 %{_mandir}/man5/tapeconfig.*
1516 %{_mandir}/man5/vldb.DB0.*
1517 %{_mandir}/man8/buserver.*
1518 %{_mandir}/man8/fileserver.*
1519 %{_mandir}/man8/dafileserver.*
1520 %{_mandir}/man8/dasalvager.*
1521 %{_mandir}/man8/davolserver.*
1522 %{_mandir}/man8/kadb_check.*
1523 %{_mandir}/man8/ka-forwarder.*
1524 %{_mandir}/man8/prdb_check.*
1525 %{_mandir}/man8/ptserver.*
1526 %{_mandir}/man8/pt_util.*
1527 %{_mandir}/man8/salvager.*
1528 %{_mandir}/man8/salvageserver.*
1529 %{_mandir}/man8/state_analyzer.*
1530 %{_mandir}/man8/upclient.*
1531 %{_mandir}/man8/upserver.*
1532 %{_mandir}/man8/vldb_check.*
1533 %{_mandir}/man8/vldb_convert.*
1534 %{_mandir}/man8/vlserver.*
1535 %{_mandir}/man8/voldump.*
1536 %{_mandir}/man8/volinfo.*
1537 %{_mandir}/man8/volserver.*
1538
1539 %if %{build_authlibs}
1540 %files authlibs
1541 %defattr(-,root,root)
1542 %{_libdir}/libafsauthent.so.*
1543 %{_libdir}/libafsrpc.so.*
1544 %{_libdir}/libkopenafs.so.*
1545 %endif
1546
1547 %files authlibs-devel
1548 %defattr(-,root,root)
1549 %{_includedir}/kopenafs.h
1550 %{_libdir}/libafsauthent.a
1551 %{_libdir}/libafsrpc.a
1552 %{_libdir}/libafsauthent_pic.a
1553 %{_libdir}/libafsrpc_pic.a
1554 %{_libdir}/libkopenafs.a
1555 %if %{build_authlibs}
1556 %{_libdir}/libafsauthent.so
1557 %{_libdir}/libafsrpc.so
1558 %{_libdir}/libkopenafs.so
1559 %endif
1560
1561 %files devel
1562 %defattr(-,root,root)
1563 %{_bindir}/afs_compile_et
1564 %{_bindir}/rxgen
1565 %{_includedir}/afs
1566 %{_includedir}/des.h
1567 %{_includedir}/des_conf.h
1568 %{_includedir}/des_odd.h
1569 %{_includedir}/des_prototypes.h
1570 %{_includedir}/lock.h
1571 %{_includedir}/lwp.h
1572 %{_includedir}/mit-cpyright.h
1573 %{_includedir}/potpourri.h
1574 %{_includedir}/preempt.h
1575 %{_includedir}/rx
1576 %{_includedir}/timer.h
1577 %{_includedir}/ubik.h
1578 %{_includedir}/ubik_int.h
1579 %{_libdir}/afs
1580 %{_libdir}/libdes.a
1581 %{_libdir}/liblwp.a
1582 %{_libdir}/librx.a
1583 %{_libdir}/librxkad.a
1584 %{_libdir}/librxstat.a
1585 %{_libdir}/libubik.a
1586 %{_mandir}/man1/rxgen.*
1587 %{_mandir}/man1/afs_compile_et.*
1588
1589 %if %{build_dkmspkg}
1590 %files -n dkms-%{name}
1591 %defattr(-,root,root)
1592 %{_prefix}/src/%{name}-%{dkms_version}
1593 %endif
1594
1595 %files kernel-source
1596 %defattr(-,root,root)
1597 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1598 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1599 %{_prefix}/src/openafs-kernel-%{afsvers}/README
1600 %{_prefix}/src/openafs-kernel-%{afsvers}/src
1601
1602 %files compat
1603 %defattr(-,root,root)
1604 %{_prefix}/afsws
1605
1606 %files kpasswd
1607 %defattr(-,root,root)
1608 %{_bindir}/kpasswd
1609 %{_bindir}/kpwvalid
1610
1611 %if %{krb5support}
1612 %files krb5
1613 %defattr(-,root,root)
1614 %{_bindir}/aklog
1615 %{_bindir}/klog.krb5
1616 %{_sbindir}/asetkey
1617 %{_mandir}/man1/aklog.*
1618 %{_mandir}/man8/asetkey.*
1619 %endif
1620
1621 %endif
1622
1623 %if %{build_modules}
1624
1625 %if !%{fedorakmod}
1626 %if %{up_package}
1627 %files kernel
1628 %defattr(-,root,root)
1629 %{kxmoddir}/fs/openafs/openafs.*
1630 %endif
1631
1632 %if %{smp_package}
1633 %files kernel-smp
1634 %defattr(-,root,root)
1635 %{kxmoddir}%{?smp_ext:%{smp_ext}}/fs/openafs/openafs.*
1636 %endif
1637
1638 %if %{largesmp_package}
1639 %files kernel-largesmp
1640 %defattr(-,root,root)
1641 %{kxmoddir}%{?largesmp_ext:%{largesmp_ext}}/fs/openafs/openafs.*
1642 %endif
1643  
1644 %if %{bigmem_package}
1645 %files kernel-bigmem
1646 %defattr(-,root,root)
1647 %{kxmoddir}%{?bigmem_ext:%{bigmem_ext}}/fs/openafs/openafs.*
1648 %endif
1649
1650 %if %{hugemem_package}
1651 %files kernel-hugemem
1652 %defattr(-,root,root)
1653 %{kxmoddir}%{?hugemem_ext:%{hugemem_ext}}/fs/openafs/openafs.*
1654 %endif
1655 %endif
1656
1657 %endif
1658
1659 ##############################################################################
1660 ###
1661 ### openafs.spec change log
1662 ###
1663 ##############################################################################
1664 %changelog
1665 * Wed Dec 12 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.5
1666 - Make the RPM mockable
1667
1668 * Tue Oct 29 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.5
1669 - Update to match the shipped 1.4.5 RPMS
1670 - Fix the kvariant stuff to only configure the 'standard' case once
1671 - Add openafs-kvers.sh back in
1672
1673 * Wed Oct 10 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.5pre1-1
1674 - Use Fedora style kmods, which allows us to install multiple kernel types
1675
1676 * Thu Jun 07 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.4-3
1677 - Use distributed files, rather than those in packager's SOURCE directory
1678 - Remove SuidCells stuff, which was unused
1679
1680 * Fri Dec 01 2006  Derrick Brashear <shadow@dementia.org> 1.4.2-2
1681 - integrate s390x changes
1682 - allow for building libafs*.a and not libafs*.so into packages, for platforms
1683   that won't build the .so files.
1684
1685 * Wed Aug 23 2006  Derrick Brashear <shadow@dementia.org> 1.4.2-1
1686 - update to 1.4.2
1687 - use installed aklog manpage.
1688 - moduleparam patch obsoleted.
1689
1690 * Tue Aug 22 2006  Derek Atkins <warlord@MIT.EDU> 1.4.2-0.1.rc1
1691 - update to 1.4.2-rc1
1692 - hand-apply lee damon's changes to support largesmp kernels from RHEL4
1693   (but only add support for 2.6 kernels.  No need for the 2.4 kernels).
1694 - don't need the posixlock patch anymore.
1695
1696 * Wed Jul 12 2006  Derek Atkins <warlord@MIT.EDU> 1.4.2-0.beta2
1697 - update to 1.4.2-beta2
1698 - add linux2.4 posixlock API patch
1699
1700 * Mon Jun 26 2006  Derek Atkins <warlord@MIT.EDU>
1701 - moduleparam and krb524 patches no longer required in OA-CVS
1702
1703 * Wed May 17 2006  Derek Atkins <warlord@MIT.EDU>
1704 - change non-target-cpu kernel dep to a file dep
1705 - make sure we use the proper kernel version for the dependency.
1706
1707 * Tue May 16 2006  Derek Atkins <warlord@MIT.EDU>
1708 - allow users to specify local CellServDB and SuidCells entries
1709   don't overwrite user's changes.  Provide a .dist an let users
1710   make entries in a ".local"
1711 - build the CellServDB and SuidCells at client startup and at
1712   client install-time
1713 - add provideskernelarch functionality to openafs-kvers-is.sh
1714 - use that functionality to Require kernel{,-<type>}-targetcpu
1715   to get better package safety due to RPM bugs where the kernel
1716   release isn't used so you can install the kernel module against
1717   any kernel of the same major version.
1718
1719 * Mon May 15 2006  Derek Atkins <warlord@MIT.EDU>
1720 - update the README in openafs-kernel-source
1721 - fix openafs-kvers-is.sh from Alexander Bergolth's patch.
1722 - move kernel module from .../kernel/fs/openafs to .../fs/openafs/
1723
1724 * Fri Apr 21 2006  Derek Atkins <warlord@MIT.EDU>
1725 - build requires autoconf and automake for krb5support
1726   and autoconf for standard package
1727 - dont setup the krb5 migration kit (or patches) if we don't care.
1728 - require ncurses-devel to build
1729
1730 * Wed Apr 19 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1-3
1731 - look for krb524 functions in libkrb524 if we can't find them
1732   in the standard locations.
1733
1734 * Tue Apr 18 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1-2
1735 - fix the module_param_array macro for Linux 2.6.9.
1736
1737 * Sat Apr 15 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1-1
1738 - update to 1.4.1 release.
1739 - distribute asetkey from openafs instead of krb5-migration kit
1740 - don't need to apply the FC5 patches because they are part of the distro.
1741 - install asetkey into the "proper" place
1742 - dont list a manpage twice.
1743 - package asetkey man page.  delete it when not needed.
1744
1745 * Thu Apr  6 2006  Derek Atkins <warlord@MIT.EDU>
1746 - turn authlibs back on, because RT #18767 was applied to CVS.
1747
1748 * Wed Mar 29 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1rc10-1
1749 - update to 1.4.1rc10, build on FC5
1750 - fix the man pages (distribute into various packages)
1751 - include patches for FC5, RT #29112 and #29122
1752
1753 * Mon Dec 19 2005  Derek Atkins <warlord@MIT.EDU>
1754 - openafs-server shouldn't depend on the kernel module.
1755
1756 * Thu Nov 17 2005  Derek Atkins <warlord@MIT.EDU>
1757 - patch from Mike Polek <mike at pictage.com> to run depmod for
1758   the target kernel and not the running kernel.
1759
1760 * Tue Nov  8 2005  Derek Atkins <warlord@MIT.EDU>
1761 - build aklog from the openafs sources, not from the krb5 migration kit.
1762
1763 * Fri Nov  4 2005  Derek Atkins <warlord@MIT.EDU>
1764 - set openafs-kernel-source to Provide openafs-kernel
1765
1766 * Thu Oct 20 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0-1
1767 - update afs-krb5 res_search patch: look for res_search and __res_search
1768 - update to 1.4.0 final
1769
1770 * Mon Oct 10 2005  Derek Atkins <warlord@MIT.EDU>
1771 - remove all kdump builds.
1772
1773 * Thu Oct  6 2005  Derek Atkins <warlord@MIT.EDU>
1774 - fix openafs-kernel-version.sh so it will build an RPM for the
1775   currently-running kernel even if it's smp on 2.6.
1776
1777 * Tue Sep 27 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc5-1
1778 - upgrade to 1.4.0rc5
1779 - turn off authlibs packages
1780
1781 * Fri Sep 23 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-2
1782 - add kmodule26 patch: fix the kernel module name on 2.6 kernels so
1783   it's called "openafs" and not "libafs".  This fixes the shutdown
1784   problem.
1785
1786 * Thu Sep 22 2005  Derek Atkins <warlord@MIT.EDU>
1787 - update kversis script, add 'kvers' operation
1788 - fix bug that 2.6 smp/hugemem kernels don't provide
1789   kernel-foo = %{kernvers} with 'smp', 'hugemem', etc.
1790 - add patch to remove res_search from the afs-krb5 configure
1791
1792 * Thu Sep 15 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-1
1793 - Update to 1.4.0rc4
1794 - Update the afs-krb5 krb524 patch so it actually works on
1795   some older systems like RHEL3 that still need -lkrb524.
1796 - Update the buildall script so choose better architecture support,
1797   e.g. don't build i586 on RHEL.
1798 - Update the rebuild information in the SPEC file.
1799 - Add support for finding .EL kernels in openafs-kvers-is.sh
1800 - Add additional error messages when kernel version/type parsing fails.
1801 - Update the buildall script to use the kernel srcdir directly.
1802
1803 * Wed Sep 14 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-2
1804 - Add "hugemem" to 2.4 configs
1805 - Add checks to support scripts to determine whether to build
1806   the bigmem and/or hugemem kernels for 2.4.
1807
1808 * Mon Sep 12 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-1
1809 - Added some afs-krb5 patches to get the migration kit to build
1810   on modern AFS and modern Kerberos.
1811 - Added authlibs and authlibs-devel packages as per UMich changes.
1812
1813 * Sun Sep 11 2005  Derek Atkins <warlord@MIT.EDU>
1814 - Merged in some of the 2.6 changes from wingc@engin.umich.edu
1815
1816 * Sat Sep 10 2005  Derek Atkins <warlord@MIT.EDU>
1817 - Merged in lots of changes from David Howells and Nalin Dahyabhai
1818   from Red Hat.   Initial attempt at a release of 1.4.  Still need
1819   to work in a 2.6 build system.