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