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