RedHat: Add xstat_*_test commands to RPMs
[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        --with-linux-kernel-packaging \
843 %if %{build_modules}
844        --with-linux-kernel-headers=${ksrc} \
845 %endif
846 %if %{krb5support}
847         --with-krb5 \
848 %endif
849        $config_opts \
850        || exit 1
851
852 # Build the libafs tree
853 make only_libafs_tree || exit 1
854
855 # Configure each of our kernel modules
856
857 %if %{fedorakmod} && %{build_modules}
858 for kvariant in %{kvariants} ; do
859   if [ -n "${kvariant}" ] ; then
860     if [ -d %{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu} ] ; then
861       ksrc=%{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu}
862     else
863       ksrc=%{_usrsrc}/kernels/%{kverrel}.%{_target_cpu}${kvariant:+.$kvariant}
864     fi
865
866     cp -R libafs_tree _kmod_build_${kvariant}
867     pushd _kmod_build_${kvariant}
868     ./configure --with-afs-sysname=${sysname} \
869         --prefix=%{_prefix} \
870         --libdir=%{_libdir} \
871         --bindir=%{_bindir} \
872         --sbindir=%{_sbindir} \
873         --with-linux-kernel-packaging \
874         --with-linux-kernel-headers=${ksrc} \
875         --enable-disconnected \
876 %if %{krb5support}
877         --with-krb5-conf=/usr/kerberos/bin/krb5-config \
878 %endif
879         $config_opts \
880         || exit 1
881     popd
882   fi
883 done
884 %endif
885
886 %if %{build_userspace}
887 # Build the user-space AFS stuff
888 make dest_nolibafs || exit 1
889 %endif
890
891 %if %{build_modules}
892 %if %{fedorakmod}
893 for kvariant in %{kvariants}
894 do
895   if [ -n "${kvariant}" ] ; then
896     pushd _kmod_build_$kvariant;
897     make all
898     popd
899   else
900     make dest_only_libafs
901   fi
902 done
903
904 %else
905 # Begin legacy kernel module building code
906
907 %if %{kvers_is_24}
908 # Build all the kernel modules for linux 2.4.x
909 for variation in %{kvariations}
910 do
911     if [ ${variation} = up ]
912     then
913        local_smp_def=-DREDHAT_FIX
914        suffix=
915     else
916        local_smp_def="-DAFS_SMP -DREDHAT_FIX"
917        suffix=${variation}
918     fi
919
920     PrintRedhatKernelFix %{_target_cpu} $variation src/config/redhat-fix.h
921     make dest_only_libafs LOCAL_SMP_DEF="${local_smp_def}" \
922         LINUX_MODULE_NAME="${suffix}" MPS=SP
923
924 done
925 rm -f src/config/redhat-fix.h
926
927 %elseif %{kvers_is_26}
928 # Build the kernel module for this version of linux 2.6.x
929 # Notice how much easier this is than 2.4.  On the other hand,
930 # we require much more external support to build multiple modules.
931
932   # the MPS=SP just means that we don't add a '.mp' to the name.
933   make dest_only_libafs MPS=SP
934
935 %endif
936 # End legacy kernel module building code
937 %endif
938 %endif
939
940
941 ##############################################################################
942 #
943 # installation
944 #
945 ##############################################################################
946 %install
947
948 export DONT_GPRINTIFY=1
949
950 [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
951
952 case %{kernvers} in
953    2.4.*)
954        kv='24'
955        kmodend=.o
956        ;;
957    2.6.*)
958        kv='26'
959        kmodend=.ko
960        ;;
961    *)
962        echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`"
963        exit 1
964        ;;
965 esac
966
967 case %{_arch} in
968        x86_64)                         sysname=amd64_linux${kv}        ;;
969        alpha*)                         sysname=alpha_linux_${kv}       ;;
970        i386|i486|i586|i686|athlon)     sysname=i386_linux${kv}         ;;
971        *)                              sysname=%{_arch}_linux${kv}     ;;
972 esac
973
974 # Build install tree
975 %if %{build_userspace}
976 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
977 mkdir -p $RPM_BUILD_ROOT%{_libdir}
978 mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
979 mkdir -p $RPM_BUILD_ROOT%{initdir}
980 mkdir -p $RPM_BUILD_ROOT/etc/openafs
981 mkdir -p $RPM_BUILD_ROOT%{pamdir}
982 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/etc
983 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/logs
984 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/etc
985 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/cache
986 chmod 700 $RPM_BUILD_ROOT%{_prefix}/vice/cache
987 mkdir -p $RPM_BUILD_ROOT%{_mandir}
988
989 # Copy files from dest to the appropriate places in BuildRoot
990 tar cf - -C ${sysname}/dest bin include | tar xf - -C $RPM_BUILD_ROOT%{_prefix}
991 tar cf - -C ${sysname}/dest/lib . | tar xf - -C $RPM_BUILD_ROOT%{_libdir}
992 tar cf - -C ${sysname}/dest/etc . | tar xf - -C $RPM_BUILD_ROOT%{_sbindir}
993 tar cf - -C ${sysname}/dest/root.server%{_prefix}/afs bin | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/afs
994 tar cf - -C ${sysname}/dest/root.client%{_prefix}/vice/etc afsd C | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/vice/etc
995
996 # Set the executable bit on libraries in libdir, so rpmbuild knows to 
997 # create "Provides" entries in the package metadata for the libraries
998 chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so*
999
1000 # Fix the location of restorevol, since it should be available for
1001 # any user in /usr/bin
1002 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/restorevol $RPM_BUILD_ROOT%{_bindir}/restorevol
1003
1004 # Link kpasswd to kapasswd
1005 ln -f $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd
1006
1007 # Copy root.client config files
1008 install -m 755 src/packaging/RedHat/openafs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openafs
1009 install -m 755 src/packaging/RedHat/openafs-client.init $RPM_BUILD_ROOT%{initdir}/openafs-client
1010 install -m 755 src/packaging/RedHat/openafs-server.init $RPM_BUILD_ROOT%{initdir}/openafs-server
1011
1012 # Copy PAM modules
1013 install -m 755 ${sysname}/dest/lib/pam* $RPM_BUILD_ROOT%{pamdir}
1014
1015 # PAM symlinks
1016 ln -sf pam_afs.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.so
1017 ln -sf pam_afs.krb.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.krb.so
1018
1019 # Populate /usr/vice/etc
1020 uve=$RPM_BUILD_ROOT%{_prefix}/vice/etc
1021 install -p -m 644 src/packaging/RedHat/openafs-ThisCell $uve/ThisCell
1022 install -p -m 644 %{SOURCE20} $uve/CellServDB.dist
1023 install -p -m 644 src/packaging/RedHat/openafs-cacheinfo $uve/cacheinfo
1024
1025 #
1026 # install dkms source
1027 #
1028 install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/src
1029 cp -a libafs_tree $RPM_BUILD_ROOT%{_prefix}/src/%{name}-%{dkms_version}
1030
1031 cat > $RPM_BUILD_ROOT%{_prefix}/src/%{name}-%{dkms_version}/dkms.conf <<EOF
1032
1033 PACKAGE_VERSION="%{dkms_version}"
1034
1035 # Items below here should not have to change with each driver version
1036 PACKAGE_NAME="%{name}"
1037 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"
1038 CLEAN="make -C src/libafs clean"
1039
1040 BUILT_MODULE_NAME[0]="\$PACKAGE_NAME"
1041 DEST_MODULE_LOCATION[0]="/kernel/3rdparty/\$PACKAGE_NAME/"
1042 STRIP[0]=no
1043 AUTOINSTALL=yes
1044
1045 EOF
1046
1047 #
1048 # install kernel-source
1049 #
1050
1051 # Install the kernel module source tree
1052 mkdir -p $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
1053 tar cf - -C libafs_tree . | \
1054         tar xf - -C $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
1055
1056 # Next, copy the LICENSE Files, README
1057 install -m 644 src/LICENSE $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1058 install -m 644 src/packaging/RedHat/openafs-LICENSE.Sun $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1059 install -m 644 src/packaging/RedHat/openafs-README $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/README
1060
1061 #
1062 # Install DOCUMENTATION
1063 #
1064
1065 # Build the DOC directory
1066 mkdir -p $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1067 tar cf - -C doc LICENSE html pdf | \
1068     tar xf - -C $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1069 install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1070 install -m 644 %{SOURCE11} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1071
1072 #
1073 # man pages
1074 #
1075 tar cf - -C doc/man-pages man1 man5 man8 | \
1076     tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1077
1078 # Copy the uninstalled krb5 files (or delete the unused krb5 files)
1079 %if %{krb5support}
1080 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/asetkey $RPM_BUILD_ROOT%{_sbindir}/asetkey
1081 %else
1082 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/asetkey.*
1083 %endif
1084
1085 # remove unused man pages
1086 for x in afs_ftpd afs_inetd afs_login afs_rcp afs_rlogind afs_rsh \
1087     dkload knfs package runntp symlink symlink_list symlink_make \
1088     symlink_remove; do
1089         rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${x}.1
1090 done
1091
1092 # rename kpasswd to kapasswd
1093 mv $RPM_BUILD_ROOT%{_mandir}/man1/kpasswd.1 $RPM_BUILD_ROOT%{_mandir}/man1/kapasswd.1
1094
1095 # gzip man pages
1096 gzip -9 $RPM_BUILD_ROOT%{_mandir}/man*/*
1097
1098 # create list of man pages that go in the 'openafs' package
1099 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man1 \
1100         |egrep '^afs|^fs|^kas|^klog|kapasswd|pagsh|^pts|^restorevol|^rxdebug|scout|^sys|tokens|translate|^xstat|udebug|unlog|^uss|^vos' \
1101         |egrep -v '^afs_compile_et' \
1102         >openafs-man1files
1103
1104 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man5 \
1105         |egrep 'CellServDB|ThisCell|afsmonitor|^butc|^uss' \
1106         >openafs-man5files
1107
1108 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man8 \
1109         |egrep '^aklog_dynamic_auth|^backup|^bos|^butc|^fms|^fssync-debug|^fstrace|^kas|^read_tape|^uss' \
1110         >openafs-man8files
1111
1112 #
1113 # create filelist
1114 #
1115 grep -v "^#" >openafs-file-list <<EOF-openafs-file-list
1116 %{_bindir}/afsmonitor
1117 %{_bindir}/bos
1118 %{_bindir}/fs
1119 %{_bindir}/kapasswd
1120 %{_bindir}/klog
1121 %{_bindir}/klog.krb
1122 %{_bindir}/pagsh
1123 %{_bindir}/pagsh.krb
1124 %{_bindir}/pts
1125 %{_bindir}/restorevol
1126 %{_bindir}/scout
1127 %{_bindir}/sys
1128 %{_bindir}/tokens
1129 %{_bindir}/tokens.krb
1130 %{_bindir}/translate_et
1131 %{_bindir}/xstat_cm_test
1132 %{_bindir}/xstat_fs_test
1133 %{_bindir}/udebug
1134 %{_bindir}/unlog
1135 %{_sbindir}/backup
1136 %{_sbindir}/butc
1137 %{_sbindir}/fms
1138 %{_sbindir}/fstrace
1139 %{_sbindir}/kas
1140 %{_sbindir}/read_tape
1141 %{_sbindir}/rxdebug
1142 %{_sbindir}/uss
1143 %{_sbindir}/vos
1144 %{_sbindir}/vsys
1145 EOF-openafs-file-list
1146
1147 # add man pages to the list
1148 cat openafs-man1files \
1149         | ( while read x; do echo "%{_mandir}/man1/$x"; done ) \
1150         >>openafs-file-list
1151 cat openafs-man5files \
1152         | ( while read x; do echo "%{_mandir}/man5/$x"; done ) \
1153         >>openafs-file-list
1154 cat openafs-man8files \
1155         | ( while read x; do echo "%{_mandir}/man8/$x"; done ) \
1156         >>openafs-file-list
1157
1158 #
1159 # Install compatiblity links
1160 #
1161 for d in bin:bin etc:sbin; do
1162   olddir=`echo $d | sed 's/:.*$//'`
1163   newdir=`echo $d | sed 's/^.*://'`
1164   mkdir -p $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir
1165   for f in `cat openafs-file-list`; do
1166     if echo $f | grep -q /$newdir/; then
1167       fb=`basename $f`
1168       ln -sf %{_prefix}/$newdir/$fb $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir/$fb
1169     fi
1170   done
1171 done
1172
1173 #
1174 # Remove files we're not installing
1175 #
1176
1177 # remove duplicated files from /usr/afs/bin
1178 for f in bos fs kas klog klog.krb kpwvalid pts tokens tokens.krb udebug vos ; do
1179   rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/$f
1180 done
1181
1182 # the rest are not needed.
1183 for f in dlog dpass install knfs livesys ; do
1184   rm -f $RPM_BUILD_ROOT%{_bindir}/$f
1185 done
1186
1187 # not supported on Linux or duplicated
1188 for f in kdb rmtsysd kpwvalid ; do
1189   rm -f $RPM_BUILD_ROOT%{_sbindir}/$f
1190 done
1191 # sometimes install sucks and puts down a directory. kill it all.
1192 rm -rf $RPM_BUILD_ROOT%{_sbindir}/kdump*
1193
1194 # remove man pages from programs deleted above
1195 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
1196   rm -f $RPM_BUILD_ROOT%{_mandir}/man$f.*
1197 done
1198
1199 # PAM modules are doubly-installed  Remove the version we don't need
1200 for f in pam_afs.krb.so.1 pam_afs.so.1 ; do
1201   rm -f $RPM_BUILD_ROOT%{_libdir}/$f
1202 done
1203
1204 %if !%{build_authlibs}
1205 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
1206 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
1207 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
1208 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
1209 %endif
1210
1211 %endif
1212
1213 %if %{build_modules}
1214 %if %{fedorakmod}
1215 for kvariant in %{kvariants}
1216 do
1217   if [ -n "$kvariant" ] ; then
1218     if [ -d _kmod_build_$kvariant/src/libafs/MODLOAD-%{kverrel}${kvariant}-SP ] ; then
1219       srcdir=_kmod_build_$kvariant/src/libafs/MODLOAD-%{kverrel}${kvariant}-SP
1220       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}${kvariant}/extra/openafs
1221     else
1222       srcdir=_kmod_build_$kvariant/src/libafs/MODLOAD-%{kverrel}.%{_target_cpu}.${kvariant}-SP
1223       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}.%{_target_cpu}.${kvariant}/extra/openafs
1224     fi
1225   else
1226     if [ -d ${sysname}/dest/root.client/lib/modules/%{kverrel}/extra/openafs ] ; then
1227       srcdir=${sysname}/dest/root.client/lib/modules/%{kverrel}/extra/openafs
1228       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}/extra/openafs
1229     else
1230       srcdir=${sysname}/dest/root.client/lib/modules/%{kverrel}.%{_target_cpu}/extra/openafs
1231       dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}.%{_target_cpu}/extra/openafs
1232     fi
1233   fi
1234
1235   mkdir -p ${dstdir}
1236   install -m 755 ${srcdir}/openafs.ko ${dstdir}/openafs.ko
1237 done
1238 %else
1239 # Install the kernel modules
1240 for variation in %{kvariations}
1241 do
1242     if [ ${variation} = up ]
1243     then
1244        kvar=%{kxmoddir}
1245        modname=openafs${kmodend}
1246     else
1247        kvar=%{kxmoddir}${variation}
1248        modname=openafs${kmodend}
1249     fi
1250
1251     srcdir=${sysname}/dest/root.client/lib/modules/%{kverrel}${kvariant}/extra/openafs
1252     dstdir=$RPM_BUILD_ROOT${kvar}/fs/openafs
1253
1254     mkdir -p ${dstdir}
1255
1256     install -m 755 ${srcdir}/${modname} ${dstdir}/openafs${kmodend}
1257 done
1258 %endif
1259 %endif
1260
1261 ##############################################################################
1262 ###
1263 ### clean
1264 ###
1265 ##############################################################################
1266 %clean
1267 rm -f openafs-file-list
1268 [ "$RPM_BUILD_ROOT" != "/" -a "x%{debugspec}" != "x1" ] && \
1269         rm -fr $RPM_BUILD_ROOT
1270
1271
1272 ##############################################################################
1273 ###
1274 ### scripts
1275 ###
1276 ##############################################################################
1277 %if %{build_userspace}
1278
1279 %pre compat
1280 if [ -e %{_prefix}/afsws ]; then
1281         /bin/rm -fr %{_prefix}/afsws
1282 fi
1283
1284 %post client
1285 chkconfig --add openafs-client
1286 if [ ! -d /afs ]; then
1287         mkdir /afs
1288         chown root.root /afs
1289         chmod 0755 /afs
1290         [ -x /sbin/restorecon ] && /sbin/restorecon /afs
1291 fi
1292
1293 # Create the CellServDB
1294 [ -f /usr/vice/etc/CellServDB.local ] || touch /usr/vice/etc/CellServDB.local
1295
1296 ( cd /usr/vice/etc ; \
1297   cat CellServDB.local CellServDB.dist > CellServDB ; \
1298   chmod 644 CellServDB )
1299
1300 %post server
1301 #on an upgrade, don't enable if we were disabled
1302 if [ $1 = 1 ] ; then
1303   chkconfig --add openafs-server
1304 fi
1305 %{initdir}/openafs-server condrestart
1306
1307 %if %{build_authlibs}
1308 %post authlibs
1309 /sbin/ldconfig
1310
1311 %postun authlibs
1312 /sbin/ldconfig
1313 %endif
1314
1315 %preun
1316 if [ $1 = 0 ] ; then
1317         [ -d /afs ] && rmdir /afs
1318 fi
1319
1320 %preun client
1321 if [ $1 = 0 ] ; then
1322         %{initdir}/openafs-client stop
1323         chkconfig --del openafs-client
1324 fi
1325
1326 %preun server
1327 if [ $1 = 0 ] ; then
1328         %{initdir}/openafs-server stop
1329         chkconfig --del openafs-server
1330 fi
1331
1332 %if %{build_dkmspkg}
1333 %post -n dkms-%{name}
1334 dkms add -m %{name} -v %{dkms_version} --rpm_safe_upgrade
1335 dkms build -m %{name} -v %{dkms_version} --rpm_safe_upgrade
1336 dkms install -m %{name} -v %{dkms_version} --rpm_safe_upgrade
1337
1338 %preun -n dkms-%{name}
1339 dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
1340 %endif
1341 %endif
1342
1343 %if %{build_modules}
1344 %if !%{fedorakmod}
1345 %if %{up_package}
1346 %post kernel
1347 /sbin/depmod -ae %{kernvers}
1348
1349 %postun kernel
1350 /sbin/depmod -ae %{kernvers}
1351
1352 %endif
1353
1354 %if %{smp_package}
1355 %post kernel-smp
1356 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1357
1358 %postun kernel-smp
1359 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1360 %endif
1361
1362 %if %{largesmp_package}
1363 %post kernel-largesmp
1364 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1365
1366 %postun kernel-largesmp
1367 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1368 %endif
1369  
1370 %if %{bigmem_package}
1371 %post kernel-bigmem
1372 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1373
1374 %postun kernel-bigmem
1375 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1376 %endif
1377
1378 %if %{hugemem_package}
1379 %post kernel-hugemem
1380 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1381
1382 %postun kernel-hugemem
1383 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1384 %endif
1385 %endif
1386 %endif
1387
1388 ##############################################################################
1389 ###
1390 ### file lists
1391 ###
1392 ##############################################################################
1393 %if %{build_userspace}
1394
1395 %files -f openafs-file-list
1396 %defattr(-,root,root)
1397 %config /etc/sysconfig/openafs
1398 %doc %{_docdir}/openafs-%{afsvers}/LICENSE
1399 %{_libdir}/libafshcrypto.so.*
1400 %{_libdir}/librokenafs.so.*
1401
1402 %files docs
1403 %defattr(-,root,root)
1404 %docdir %{_docdir}/openafs-%{afsvers}
1405 %dir %{_docdir}/openafs-%{afsvers}
1406 %{_docdir}/openafs-%{afsvers}/ChangeLog
1407 %{_docdir}/openafs-%{afsvers}/RELNOTES-%{afsvers}
1408 %{_docdir}/openafs-%{afsvers}/pdf
1409
1410 %files client
1411 %defattr(-,root,root)
1412 %dir %{_prefix}/vice
1413 %dir %{_prefix}/vice/cache
1414 %dir %{_prefix}/vice/etc
1415 %dir %{_prefix}/vice/etc/C
1416 %{_prefix}/vice/etc/CellServDB.dist
1417 %config %{_prefix}/vice/etc/ThisCell
1418 %config %{_prefix}/vice/etc/cacheinfo
1419 %{_bindir}/afsio
1420 %{_bindir}/cmdebug
1421 %{_bindir}/up
1422 %{_prefix}/vice/etc/afsd
1423 %{_prefix}/vice/etc/C/afszcm.cat
1424 %{pamdir}/pam_afs.krb.so.1
1425 %{pamdir}/pam_afs.krb.so
1426 %{pamdir}/pam_afs.so.1
1427 %{pamdir}/pam_afs.so
1428 %{initdir}/openafs-client
1429 %{_mandir}/man1/cmdebug.*
1430 %{_mandir}/man1/copyauth.*
1431 %{_mandir}/man1/up.*
1432 %{_mandir}/man5/afs.5.gz
1433 %{_mandir}/man5/afs_cache.5.gz
1434 %{_mandir}/man5/afs_volume_header.5.gz
1435 %{_mandir}/man5/afszcm.cat.5.gz
1436 %{_mandir}/man5/cacheinfo.*
1437 %{_mandir}/man8/afsd.*
1438 %{_mandir}/man8/rmtsysd.*
1439 %{_mandir}/man8/vsys.*
1440 %{_mandir}/man5/CellAlias.*
1441
1442 %files server
1443 %defattr(-,root,root)
1444 %dir %{_prefix}/afs
1445 %dir %{_prefix}/afs/bin
1446 %dir %{_prefix}/afs/etc
1447 %dir %{_prefix}/afs/logs
1448 %{_prefix}/afs/bin/bosserver
1449 %{_prefix}/afs/bin/bos_util
1450 %{_prefix}/afs/bin/buserver
1451 %{_prefix}/afs/bin/dafileserver
1452 %{_prefix}/afs/bin/dafssync-debug
1453 %{_prefix}/afs/bin/dasalvager
1454 %{_prefix}/afs/bin/davolserver
1455 %{_prefix}/afs/bin/fileserver
1456 %{_prefix}/afs/bin/fssync-debug
1457 # Should we support KAServer?
1458 %{_prefix}/afs/bin/kaserver
1459 %{_prefix}/afs/bin/ka-forwarder
1460 %{_prefix}/afs/bin/pt_util
1461 %{_prefix}/afs/bin/ptserver
1462 %{_prefix}/afs/bin/salvager
1463 %{_prefix}/afs/bin/salvageserver
1464 %{_prefix}/afs/bin/salvsync-debug
1465 %{_prefix}/afs/bin/state_analyzer
1466 %{_prefix}/afs/bin/upclient
1467 %{_prefix}/afs/bin/upserver
1468 %{_prefix}/afs/bin/vlserver
1469 %{_prefix}/afs/bin/volinfo
1470 %{_prefix}/afs/bin/volserver
1471 %{_sbindir}/kadb_check
1472 %{_sbindir}/prdb_check
1473 %{_sbindir}/vldb_check
1474 %{_sbindir}/vldb_convert
1475 %{_sbindir}/voldump
1476 %{initdir}/openafs-server
1477 %{_mandir}/man5/AuthLog.*
1478 %{_mandir}/man5/BackupLog.*
1479 %{_mandir}/man5/BosConfig.*
1480 %{_mandir}/man5/BosLog.*
1481 %{_mandir}/man5/FORCESALVAGE.*
1482 %{_mandir}/man5/FileLog.*
1483 %{_mandir}/man5/KeyFile.*
1484 %{_mandir}/man5/NetInfo.*
1485 %{_mandir}/man5/NetRestrict.*
1486 %{_mandir}/man5/NoAuth.*
1487 %{_mandir}/man5/SALVAGE.fs.*
1488 %{_mandir}/man5/SalvageLog.*
1489 %{_mandir}/man5/sysid.*
1490 %{_mandir}/man5/UserList.*
1491 %{_mandir}/man5/VLLog.*
1492 %{_mandir}/man5/VolserLog.*
1493 %{_mandir}/man5/bdb.DB0.*
1494 %{_mandir}/man5/fms.log.*
1495 %{_mandir}/man5/kaserver.DB0.*
1496 %{_mandir}/man5/kaserverauxdb.*
1497 %{_mandir}/man5/krb.conf.*
1498 %{_mandir}/man5/krb.excl.*
1499 %{_mandir}/man5/prdb.DB0.*
1500 %{_mandir}/man5/salvage.lock.*
1501 %{_mandir}/man5/tapeconfig.*
1502 %{_mandir}/man5/vldb.DB0.*
1503 %{_mandir}/man8/buserver.*
1504 %{_mandir}/man8/fileserver.*
1505 %{_mandir}/man8/dafileserver.*
1506 %{_mandir}/man8/dasalvager.*
1507 %{_mandir}/man8/davolserver.*
1508 %{_mandir}/man8/kadb_check.*
1509 %{_mandir}/man8/ka-forwarder.*
1510 %{_mandir}/man8/prdb_check.*
1511 %{_mandir}/man8/ptserver.*
1512 %{_mandir}/man8/pt_util.*
1513 %{_mandir}/man8/salvager.*
1514 %{_mandir}/man8/salvageserver.*
1515 %{_mandir}/man8/state_analyzer.*
1516 %{_mandir}/man8/upclient.*
1517 %{_mandir}/man8/upserver.*
1518 %{_mandir}/man8/vldb_check.*
1519 %{_mandir}/man8/vldb_convert.*
1520 %{_mandir}/man8/vlserver.*
1521 %{_mandir}/man8/voldump.*
1522 %{_mandir}/man8/volinfo.*
1523 %{_mandir}/man8/volserver.*
1524
1525 %if %{build_authlibs}
1526 %files authlibs
1527 %defattr(-,root,root)
1528 %{_libdir}/libafsauthent.so.*
1529 %{_libdir}/libafsrpc.so.*
1530 %{_libdir}/libkopenafs.so.*
1531 %endif
1532
1533 %files authlibs-devel
1534 %defattr(-,root,root)
1535 %{_includedir}/kopenafs.h
1536 %{_libdir}/libafsauthent.a
1537 %{_libdir}/libafscp.a
1538 %{_libdir}/libafsrpc.a
1539 %{_libdir}/libafsauthent_pic.a
1540 %{_libdir}/libafsrpc_pic.a
1541 %{_libdir}/libkopenafs.a
1542 %if %{build_authlibs}
1543 %{_libdir}/libafsauthent.so
1544 %{_libdir}/libafsrpc.so
1545 %{_libdir}/libkopenafs.so
1546 %endif
1547
1548 %files devel
1549 %defattr(-,root,root)
1550 %{_bindir}/afs_compile_et
1551 %{_bindir}/rxgen
1552 %{_includedir}/afs
1553 %{_includedir}/lock.h
1554 %{_includedir}/lwp.h
1555 %{_includedir}/preempt.h
1556 %{_includedir}/rx
1557 %{_includedir}/timer.h
1558 %{_includedir}/ubik.h
1559 %{_includedir}/ubik_int.h
1560 %{_libdir}/afs
1561 %{_libdir}/libafshcrypto.a
1562 %{_libdir}/libafshcrypto.so
1563 %{_libdir}/liblwp.a
1564 %{_libdir}/librokenafs.a
1565 %{_libdir}/librokenafs.so
1566 %{_libdir}/librx.a
1567 %{_libdir}/librxkad.a
1568 %{_libdir}/librxstat.a
1569 %{_libdir}/libubik.a
1570 %{_mandir}/man1/rxgen.*
1571 %{_mandir}/man1/afs_compile_et.*
1572
1573 %if %{build_dkmspkg}
1574 %files -n dkms-%{name}
1575 %defattr(-,root,root)
1576 %{_prefix}/src/%{name}-%{dkms_version}
1577 %endif
1578
1579 %files kernel-source
1580 %defattr(-,root,root)
1581 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1582 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1583 %{_prefix}/src/openafs-kernel-%{afsvers}/README
1584 %{_prefix}/src/openafs-kernel-%{afsvers}/src
1585
1586 %files compat
1587 %defattr(-,root,root)
1588 %{_prefix}/afsws
1589
1590 %files kpasswd
1591 %defattr(-,root,root)
1592 %{_bindir}/kpasswd
1593 %{_bindir}/kpwvalid
1594
1595 %if %{krb5support}
1596 %files krb5
1597 %defattr(-,root,root)
1598 %{_bindir}/aklog
1599 %{_bindir}/klog.krb5
1600 %{_sbindir}/asetkey
1601 %{_mandir}/man1/aklog.*
1602 %{_mandir}/man8/asetkey.*
1603 %endif
1604
1605 %endif
1606
1607 %if %{build_modules}
1608
1609 %if !%{fedorakmod}
1610 %if %{up_package}
1611 %files kernel
1612 %defattr(-,root,root)
1613 %{kxmoddir}/fs/openafs/openafs.*
1614 %endif
1615
1616 %if %{smp_package}
1617 %files kernel-smp
1618 %defattr(-,root,root)
1619 %{kxmoddir}%{?smp_ext:%{smp_ext}}/fs/openafs/openafs.*
1620 %endif
1621
1622 %if %{largesmp_package}
1623 %files kernel-largesmp
1624 %defattr(-,root,root)
1625 %{kxmoddir}%{?largesmp_ext:%{largesmp_ext}}/fs/openafs/openafs.*
1626 %endif
1627  
1628 %if %{bigmem_package}
1629 %files kernel-bigmem
1630 %defattr(-,root,root)
1631 %{kxmoddir}%{?bigmem_ext:%{bigmem_ext}}/fs/openafs/openafs.*
1632 %endif
1633
1634 %if %{hugemem_package}
1635 %files kernel-hugemem
1636 %defattr(-,root,root)
1637 %{kxmoddir}%{?hugemem_ext:%{hugemem_ext}}/fs/openafs/openafs.*
1638 %endif
1639 %endif
1640
1641 %endif
1642
1643 ##############################################################################
1644 ###
1645 ### openafs.spec change log
1646 ###
1647 ##############################################################################
1648 %changelog
1649 * Wed Dec 12 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.5
1650 - Make the RPM mockable
1651
1652 * Tue Oct 29 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.5
1653 - Update to match the shipped 1.4.5 RPMS
1654 - Fix the kvariant stuff to only configure the 'standard' case once
1655 - Add openafs-kvers.sh back in
1656
1657 * Wed Oct 10 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.5pre1-1
1658 - Use Fedora style kmods, which allows us to install multiple kernel types
1659
1660 * Thu Jun 07 2007  Simon Wilkinson <simon@sxw.org.uk> 1.4.4-3
1661 - Use distributed files, rather than those in packager's SOURCE directory
1662 - Remove SuidCells stuff, which was unused
1663
1664 * Fri Dec 01 2006  Derrick Brashear <shadow@dementia.org> 1.4.2-2
1665 - integrate s390x changes
1666 - allow for building libafs*.a and not libafs*.so into packages, for platforms
1667   that won't build the .so files.
1668
1669 * Wed Aug 23 2006  Derrick Brashear <shadow@dementia.org> 1.4.2-1
1670 - update to 1.4.2
1671 - use installed aklog manpage.
1672 - moduleparam patch obsoleted.
1673
1674 * Tue Aug 22 2006  Derek Atkins <warlord@MIT.EDU> 1.4.2-0.1.rc1
1675 - update to 1.4.2-rc1
1676 - hand-apply lee damon's changes to support largesmp kernels from RHEL4
1677   (but only add support for 2.6 kernels.  No need for the 2.4 kernels).
1678 - don't need the posixlock patch anymore.
1679
1680 * Wed Jul 12 2006  Derek Atkins <warlord@MIT.EDU> 1.4.2-0.beta2
1681 - update to 1.4.2-beta2
1682 - add linux2.4 posixlock API patch
1683
1684 * Mon Jun 26 2006  Derek Atkins <warlord@MIT.EDU>
1685 - moduleparam and krb524 patches no longer required in OA-CVS
1686
1687 * Wed May 17 2006  Derek Atkins <warlord@MIT.EDU>
1688 - change non-target-cpu kernel dep to a file dep
1689 - make sure we use the proper kernel version for the dependency.
1690
1691 * Tue May 16 2006  Derek Atkins <warlord@MIT.EDU>
1692 - allow users to specify local CellServDB and SuidCells entries
1693   don't overwrite user's changes.  Provide a .dist an let users
1694   make entries in a ".local"
1695 - build the CellServDB and SuidCells at client startup and at
1696   client install-time
1697 - add provideskernelarch functionality to openafs-kvers-is.sh
1698 - use that functionality to Require kernel{,-<type>}-targetcpu
1699   to get better package safety due to RPM bugs where the kernel
1700   release isn't used so you can install the kernel module against
1701   any kernel of the same major version.
1702
1703 * Mon May 15 2006  Derek Atkins <warlord@MIT.EDU>
1704 - update the README in openafs-kernel-source
1705 - fix openafs-kvers-is.sh from Alexander Bergolth's patch.
1706 - move kernel module from .../kernel/fs/openafs to .../fs/openafs/
1707
1708 * Fri Apr 21 2006  Derek Atkins <warlord@MIT.EDU>
1709 - build requires autoconf and automake for krb5support
1710   and autoconf for standard package
1711 - dont setup the krb5 migration kit (or patches) if we don't care.
1712 - require ncurses-devel to build
1713
1714 * Wed Apr 19 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1-3
1715 - look for krb524 functions in libkrb524 if we can't find them
1716   in the standard locations.
1717
1718 * Tue Apr 18 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1-2
1719 - fix the module_param_array macro for Linux 2.6.9.
1720
1721 * Sat Apr 15 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1-1
1722 - update to 1.4.1 release.
1723 - distribute asetkey from openafs instead of krb5-migration kit
1724 - don't need to apply the FC5 patches because they are part of the distro.
1725 - install asetkey into the "proper" place
1726 - dont list a manpage twice.
1727 - package asetkey man page.  delete it when not needed.
1728
1729 * Thu Apr  6 2006  Derek Atkins <warlord@MIT.EDU>
1730 - turn authlibs back on, because RT #18767 was applied to CVS.
1731
1732 * Wed Mar 29 2006  Derek Atkins <warlord@MIT.EDU> 1.4.1rc10-1
1733 - update to 1.4.1rc10, build on FC5
1734 - fix the man pages (distribute into various packages)
1735 - include patches for FC5, RT #29112 and #29122
1736
1737 * Mon Dec 19 2005  Derek Atkins <warlord@MIT.EDU>
1738 - openafs-server shouldn't depend on the kernel module.
1739
1740 * Thu Nov 17 2005  Derek Atkins <warlord@MIT.EDU>
1741 - patch from Mike Polek <mike at pictage.com> to run depmod for
1742   the target kernel and not the running kernel.
1743
1744 * Tue Nov  8 2005  Derek Atkins <warlord@MIT.EDU>
1745 - build aklog from the openafs sources, not from the krb5 migration kit.
1746
1747 * Fri Nov  4 2005  Derek Atkins <warlord@MIT.EDU>
1748 - set openafs-kernel-source to Provide openafs-kernel
1749
1750 * Thu Oct 20 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0-1
1751 - update afs-krb5 res_search patch: look for res_search and __res_search
1752 - update to 1.4.0 final
1753
1754 * Mon Oct 10 2005  Derek Atkins <warlord@MIT.EDU>
1755 - remove all kdump builds.
1756
1757 * Thu Oct  6 2005  Derek Atkins <warlord@MIT.EDU>
1758 - fix openafs-kernel-version.sh so it will build an RPM for the
1759   currently-running kernel even if it's smp on 2.6.
1760
1761 * Tue Sep 27 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc5-1
1762 - upgrade to 1.4.0rc5
1763 - turn off authlibs packages
1764
1765 * Fri Sep 23 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-2
1766 - add kmodule26 patch: fix the kernel module name on 2.6 kernels so
1767   it's called "openafs" and not "libafs".  This fixes the shutdown
1768   problem.
1769
1770 * Thu Sep 22 2005  Derek Atkins <warlord@MIT.EDU>
1771 - update kversis script, add 'kvers' operation
1772 - fix bug that 2.6 smp/hugemem kernels don't provide
1773   kernel-foo = %{kernvers} with 'smp', 'hugemem', etc.
1774 - add patch to remove res_search from the afs-krb5 configure
1775
1776 * Thu Sep 15 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-1
1777 - Update to 1.4.0rc4
1778 - Update the afs-krb5 krb524 patch so it actually works on
1779   some older systems like RHEL3 that still need -lkrb524.
1780 - Update the buildall script so choose better architecture support,
1781   e.g. don't build i586 on RHEL.
1782 - Update the rebuild information in the SPEC file.
1783 - Add support for finding .EL kernels in openafs-kvers-is.sh
1784 - Add additional error messages when kernel version/type parsing fails.
1785 - Update the buildall script to use the kernel srcdir directly.
1786
1787 * Wed Sep 14 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-2
1788 - Add "hugemem" to 2.4 configs
1789 - Add checks to support scripts to determine whether to build
1790   the bigmem and/or hugemem kernels for 2.4.
1791
1792 * Mon Sep 12 2005  Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-1
1793 - Added some afs-krb5 patches to get the migration kit to build
1794   on modern AFS and modern Kerberos.
1795 - Added authlibs and authlibs-devel packages as per UMich changes.
1796
1797 * Sun Sep 11 2005  Derek Atkins <warlord@MIT.EDU>
1798 - Merged in some of the 2.6 changes from wingc@engin.umich.edu
1799
1800 * Sat Sep 10 2005  Derek Atkins <warlord@MIT.EDU>
1801 - Merged in lots of changes from David Howells and Nalin Dahyabhai
1802   from Red Hat.   Initial attempt at a release of 1.4.  Still need
1803   to work in a 2.6 build system.