1 # Openafs Spec $Revision$
3 %define afsvers 1.4.5pre1
4 %define pkgvers 1.4.5pre1
5 # for beta/rc releases make pkgrel 0.X.<tag>
6 # for real releases make pkgrel 1 (or more for extra releases)
7 #%define pkgrel 0.1.rc1
10 %if %{?osvers:0}%{!?osvers:1}
14 %{!?fedorakmod: %define fedorakmod 0}
16 # Determine presence of rpmbuild command line --define arguments used for
17 # option specification
18 %define kernvers_on_cmdline %{?kernvers:1}%{!?kernvers:0}
19 %define build_userspace_on_cmdline %{?build_userspace:1}%{!?build_userspace:0}
20 %define build_modules_on_cmdline %{?build_modules:1}%{!?build_modules:0}
22 # Determine the version of the kernel to build against
23 # - automatically select the latest kernel with sources from /lib/modules
24 # - note that this can be overridden on the command line
26 %if !%{kernvers_on_cmdline}
27 %define kernvers %(%{_sourcedir}/openafs-kernel-version.sh)
31 %define kmodtool bash %{_sourcedir}/kmodtool
33 %define kmod_name openafs
34 %define kverrel %(%{kmodtool} verrel %{?kernvers} 2>/dev/null)
45 %define kdumpvar kdump
47 %{!?kvariants: %define kvariants %{?upvar} %{?smpvar} %{?paevar} %{?xenvar} %{?kdumpvar}}
49 %define ksrcdir %{_usrsrc}/kernels/%{kverrel}-%{_target_cpu}
51 %else # Legacy kernel build stuff
53 %define kversis %{_sourcedir}/openafs-kvers-is.sh
54 %define kvers %(%{kversis} parsev %{kernvers})
55 %define kvers_is_24 %(%{kversis} %{kvers} "2.4")
56 %define kvers_is_26 %(%{kversis} %{kvers} "2.6")
57 %define ktype %(%{kversis} parset %{kernvers})
58 %define kversion %(%{kversis} kvers %{kernvers})
60 # This is where to look for kernel build include files. Default
61 # is /lib/modules/<kvers>/build, but you can define kbase and
62 # kend on the commandline to change that.
64 %if %{?kbase:0}%{!?kbase:1}
65 %define kbase /lib/modules/
67 %if %{?kend:0}%{!?kend:1}
70 # Let the buildscript define the ksrcdir directly -- needed for RHEL4
71 %if %{?ksrcdir:0}%{!?ksrcdir:1}
72 %define ksrcdir %{kbase}%{kernvers}%{kend}
75 %if %{?kmoddir:0}%{!?kmoddir:1}
76 %define kmoddir /lib/modules
78 %define kxmoddir %{kmoddir}/%{kernvers}
80 # End legacy kernel build stuff
83 # Set 'debugspec' to 1 if you want to debug the spec file. This will
84 # not remove the installed tree as part of the %clean operation
85 %if %{?debugspec:0}%{!?debugspec:1}
89 # Set 'krb5support' to 1 if you want to build the openafs-krb5 package
90 # to distribute aklog and asetkey
91 %define krb5support %{?_without_krb5:0}%{!?_without_krb5:1}
93 # Set 'bootkernelsupport' to 1 if you want to build the
94 # kernel module for Red Hat BOOT Kernels on x86.
95 %define bootkernelsupport %{?_with_bootkernel:1}%{!?_with_bootkernel:0}
97 # Define the location of your init.d directory
98 %define initdir /etc/init.d
100 #determine if the kernel provides an arch-specific Provides
101 %define kprovidesarch %(%{kversis} provideskernelarch %{ksrcdir} %{_target_cpu})
103 # Define the location of the PAM security module directory
104 %define pamdir /%{_lib}/security
108 # Define the set of kernel module variations to be built:
109 # For 2.4 kernels we just build everything at once for a particular
110 # kernel. So we build up, smp, and bigmem all at once.
111 # For 2.6 kernels we have to build against the specific kernel headers
112 # for a particular kernel variation. AFS will handle the specific smp or
113 # non-smp determination. So just always build as if it's "up" -- the kernel
114 # version will have the 'variation' type already in the version #.
117 %define smp_package 0
118 %define bigmem_package 0
119 %define hugemem_package 0
120 %define largesmp_package 0
122 #######################################################################
125 %define kdepend kernel-source
127 %define smp_package 1
130 %define bigmem_package %(%{kversis} find %{ksrcdir} %{_target_cpu} bigmem)
131 %if %{bigmem_package}
132 %define bigmem_ext bigmem
135 %define hugemem_package %(%{kversis} find %{ksrcdir} %{_target_cpu} hugemem)
136 %if %{hugemem_package}
137 %define hugemem_ext hugemem
140 %define kvariations up smp %{?bigmem_ext:%{bigmem_ext}} %{?hugemem_ext:%{hugemem_ext}}
142 #######################################################################
146 %define kvariations up
151 %define up_package %(%{kversis} "%{ktype}" "")
152 %define smp_package %(%{kversis} "%{ktype}" "smp")
153 %define hugemem_package %(%{kversis} "%{ktype}" "hugemem")
154 %define largesmp_package %(%{kversis} "%{ktype}" "largesmp")
157 %if !%{up_package} && !%{smp_package} && !%{hugemem_package} && !%{largesmp_package}
158 %error "unknown kernel type: %{ktype}"
161 %if !%{kernvers_on_cmdline}
162 %define kdepend %{ksrcdir}/include/linux/version.h
165 #######################################################################
168 %error "unknown kernel version: ${kvers} (parsed from %{kernvers})"
172 # End of legacy kernel module build
175 #######################################################################
176 # You probably don't need to change anything beyond this line
177 # NOTE: If you do, please email me!!!
179 # Determine which elements of OpenAFS to build. For non-x86 arches
180 # (subject to the ExclusiveArch setting, below), we build both userspace
181 # and modules. For most x86 arches, we build just the kernel modules. For
182 # i386, we build just the userspace. If you're running an i386 kernel,
183 # you'll need to tweak that last bit.
184 %if !%{build_userspace_on_cmdline} && !%{build_modules_on_cmdline}
186 %ifarch x86_64 ia64 s390 s390x
187 %define build_userspace 1
188 %define build_modules 1
190 %define build_authlibs 1
192 %define build_authlibs 0
197 %define build_userspace 0
198 %define build_modules 1
199 %define build_authlibs 1
203 %define build_userspace 1
204 %define build_modules 0
205 %define build_authlibs 1
210 # deal with cmdline specification
211 %if %{build_userspace_on_cmdline} || %{build_modules_on_cmdline}
212 %if !%{build_userspace_on_cmdline}
213 %define build_userspace 0
215 %if !%{build_modules_on_cmdline}
216 %define build_modules 0
220 # Make sure RPM doesn't complain about installed but non-packaged files.
221 #define __check_files %{nil}
223 Summary: OpenAFS distributed filesystem
226 Release: %{osvers}.%{pkgrel}
227 License: IBM Public License
228 URL: http://www.openafs.org
229 BuildRoot: %{_tmppath}/%{name}-%{version}-root
230 Packager: Derek Atkins <warlord@MIT.EDU>
231 Group: Networking/Filesystems
232 BuildRequires: %{?kdepend:%{kdepend}, } pam-devel, ncurses-devel, flex, bison
233 %if %{build_userspace}
234 BuildRequires: autoconf
236 ExclusiveArch: %{ix86} x86_64 ia64
238 # http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
239 Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
240 Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
241 %define srcdir openafs-%{afsvers}
243 Source10: http://www.openafs.org/dl/openafs/%{afsvers}/RELNOTES-%{afsvers}
244 Source11: http://www.openafs.org/dl/openafs/%{afsvers}/ChangeLog
246 Source30: openafs-kernel-version.sh
247 Source998: openafs-buildall.sh
250 Patch0: openafs-1.4.0-kmodule26.patch
253 The AFS distributed filesystem. AFS is a distributed filesystem
254 allowing cross-platform sharing of files among multiple computers.
255 Facilities are provided for access control, authentication, backup and
256 administrative management.
258 This package provides common files shared across all the various
259 OpenAFS packages but are not necessarily tied to a client or server.
261 The OpenAFS SRPM can be rebuilt with the following options to control
264 --define "kernvers 2.4.20-1.1376_FC3" Specify the specific kernel version
265 to build modules against. The default is
266 to build against the currently-running
268 --define "kbase /lib/modules/" The base location to look for kernel headers
269 --define "kend /build" The 'end' location to look for kernels
270 The build will define ksrvdir as
271 %%{kbase}<kernvers>%%{kend}
273 --without krb5 Disable krb5 support (default: with krb5)
274 --with bitmap-later Enable "bitmap later" support
275 --with bos-restricted Enable "bos restricted" mode
276 --with fast-restart Enable "fast restart" mode
277 --with largefiles Enable "largefile fileserver" mode
278 --with supergroups Enable "supergroups"
280 --target=i386 The target architecture to build for.
281 When building for a non-default target
282 the build may choose whether to build
283 userspace or kernel modules automatically.
284 The defaults are probably what you want.
286 --define "build_userspace 1" Request building of userspace tools
287 --define "build_modules 1" Request building of kernel modules
288 You probably never need to specify these.
290 --define "kmoddir /lib/modules" This is the base location where modules
291 will be installed. You probably don't
292 need to change this ever.
294 --define "fedorakmod 1" Build 'Fedora' style kernel modules
296 To a kernel module for your running kernel, just run:
297 rpmbuild --rebuild --target=`uname -m` openafs-%{pkgvers}-%{osvers}.%{pkgrel}.src.rpm
299 ##############################################################################
301 # build the userspace side of things if so requested
303 ##############################################################################
304 %if %{build_userspace}
307 Requires: binutils, openafs = %{PACKAGE_VERSION}
310 Requires: %{name}-kmod >= %{version}
311 Provides: %{name}-kmod-common = %{version}
313 Requires: openafs-kernel
316 Summary: OpenAFS Filesystem Client
317 Group: Networking/Filesystem
320 The AFS distributed filesystem. AFS is a distributed filesystem
321 allowing cross-platform sharing of files among multiple computers.
322 Facilities are provided for access control, authentication, backup and
323 administrative management.
325 This package provides basic client support to mount and manipulate
329 Requires: openafs = %{PACKAGE_VERSION}
330 Summary: OpenAFS Filesystem Server
331 Group: Networking/Filesystems
334 The AFS distributed filesystem. AFS is a distributed filesystem
335 allowing cross-platform sharing of files among multiple computers.
336 Facilities are provided for access control, authentication, backup and
337 administrative management.
339 This package provides basic server support to host files in an AFS
342 %if %{build_authlibs}
344 Summary: OpenAFS authentication shared libraries
345 Group: Networking/Filesystems
347 %description authlibs
348 The AFS distributed filesystem. AFS is a distributed filesystem
349 allowing cross-platform sharing of files among multiple computers.
350 Facilities are provided for access control, authentication, backup and
351 administrative management.
353 This package provides a shared version of libafsrpc and libafsauthent.
354 None of the programs included with OpenAFS currently use these shared
355 libraries; however, third-party software that wishes to perform AFS
356 authentication may link against them.
359 %package authlibs-devel
360 %if %{build_authlibs}
361 Requires: openafs-authlibs = %{PACKAGE_VERSION}
363 Requires: openafs-devel = %{PACKAGE_VERSION}
364 Summary: OpenAFS shared library development
365 Group: Development/Filesystems
367 %description authlibs-devel
368 The AFS distributed filesystem. AFS is a distributed filesystem
369 allowing cross-platform sharing of files among multiple computers.
370 Facilities are provided for access control, authentication, backup and
371 administrative management.
373 This package includes the static versions of libafsrpc and
374 libafsauthent, and symlinks required for building against the dynamic
378 Summary: OpenAFS Development Libraries and Headers
379 Group: Development/Filesystems
382 The AFS distributed filesystem. AFS is a distributed filesystem
383 allowing cross-platform sharing of files among multiple computers.
384 Facilities are provided for access control, authentication, backup and
385 administrative management.
387 This package provides static development libraries and headers needed
388 to compile AFS applications. Note: AFS currently does not provide
392 Summary: OpenAFS user and administrator documentation
393 Requires: openafs = %{PACKAGE_VERSION}
394 Group: Networking/Filesystems
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.
402 This package provides HTML documentation for OpenAFS users and system
405 %package kernel-source
406 Summary: OpenAFS Kernel Module source tree
407 Group: Networking/Filesystems
408 Provides: openafs-kernel = %{PACKAGE_VERSION}
410 Provides: %{name}-kmod = %{PACKAGE_VERSION}
413 %description kernel-source
414 The AFS distributed filesystem. AFS is a distributed filesystem
415 allowing cross-platform sharing of files among multiple computers.
416 Facilities are provided for access control, authentication, backup and
417 administrative management.
419 This package provides the source code to build your own AFS kernel
423 Summary: OpenAFS client compatibility symlinks
424 Requires: openafs = %{PACKAGE_VERSION}, openafs-client = %{PACKAGE_VERSION}
425 Group: Networking/Filesystems
426 Obsoletes: openafs-client-compat
429 The AFS distributed filesystem. AFS is a distributed filesystem
430 allowing cross-platform sharing of files among multiple computers.
431 Facilities are provided for access control, authentication, backup and
432 administrative management.
434 This package provides compatibility symlinks in /usr/afsws. It is
435 completely optional, and is only necessary to support legacy
436 applications and scripts that hard-code the location of AFS client
440 Summary: OpenAFS KA kpasswd support
442 Group: Networking/Filesystems
445 The AFS distributed filesystem. AFS is a distributed filesystem
446 allowing cross-platform sharing of files among multiple computers.
447 Facilities are provided for access control, authentication, backup and
448 administrative management.
450 This package provides the compatibility symlink for kpasswd, in case
451 you are using KAserver instead of Krb5.
455 Summary: OpenAFS programs to use with krb5
456 Requires: openafs = %{PACKAGE_VERSION}
457 Group: Networking/Filesystems
458 BuildRequires: krb5-devel, autoconf, automake
461 The AFS distributed filesystem. AFS is a distributed filesystem
462 allowing cross-platform sharing of files among multiple computers.
463 Facilities are provided for access control, authentication, backup and
464 administrative management.
466 This package provides compatibility programs so you can use krb5
467 to authenticate to AFS services, instead of using AFS's homegrown
468 krb4 lookalike services.
473 ##############################################################################
475 # build the kernel modules if so requested
477 ##############################################################################
481 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
485 # Legacy kernel compilation code here ...
486 %define modkversion %(echo %{kernvers} | cut -d- -f1)
487 %define modkrelease %(echo %{kernvers} | cut -d- -f2)
488 %define modpkgrel %{modkversion}_%{modkrelease}_%{pkgrel}
492 Summary: OpenAFS Kernel Module (compiled for UP)
493 Release: %{modpkgrel}
494 Group: Networking/Filesystems
495 Provides: openafs-kernel = %{PACKAGE_VERSION}
497 Requires: kernel-%{_target_cpu} = %{kversion}
499 Requires: /boot/config-%{kernvers}
503 The AFS distributed filesystem. AFS is a distributed filesystem
504 allowing cross-platform sharing of files among multiple computers.
505 Facilities are provided for access control, authentication, backup and
506 administrative management.
508 This package provides a precompiled AFS kernel module for %{kernvers}.
513 Summary: OpenAFS Kernel Module (compiled for SMP)
514 Release: %{modpkgrel}
515 Provides: openafs-kernel = %{PACKAGE_VERSION}
517 Requires: kernel-smp-%{_target_cpu} = %{kversion}
519 Requires: /boot/config-%{kernvers}%{?smp_ext:%{smp_ext}}
521 Group: Networking/Filesystems
523 %description kernel-smp
524 The AFS distributed filesystem. AFS is a distributed filesystem
525 allowing cross-platform sharing of files among multiple computers.
526 Facilities are provided for access control, authentication, backup and
527 administrative management.
529 This package provides a precompiled AFS kernel module for %{kernvers}.
532 %if %{largesmp_package}
533 %package kernel-largesmp
534 Summary: OpenAFS Kernel Module (compiled for LARGESMP)
535 Release: %{modpkgrel}
536 Provides: openafs-kernel = %{PACKAGE_VERSION}
538 Requires: kernel-largesmp-%{_target_cpu} = %{kversion}
540 Requires: /boot/config-%{kernvers}%{?largesmp_ext:%{largesmp_ext}}
542 Group: Networking/Filesystems
544 %description kernel-largesmp
545 The AFS distributed filesystem. AFS is a distributed filesystem
546 allowing cross-platform sharing of files among multiple computers.
547 Facilities are provided for access control, authentication, backup and
548 administrative management.
550 This package provides a precompiled AFS kernel module for %{kernvers}.
553 %if %{bigmem_package}
554 %package kernel-bigmem
555 Summary: OpenAFS Kernel Module (compiled for SMP & big memory support)
556 Release: %{modpkgrel}
557 Provides: openafs-kernel = %{PACKAGE_VERSION}
559 Requires: kernel-bigmem-%{_target_cpu} = %{kversion}
561 Requires: /boot/config-%{kernvers}%{?bigmem_ext:%{bigmem_ext}}
563 Group: Networking/Filesystems
565 %description kernel-bigmem
566 The AFS distributed filesystem. AFS is a distributed filesystem
567 allowing cross-platform sharing of files among multiple computers.
568 Facilities are provided for access control, authentication, backup and
569 administrative management.
571 This package provides a precompiled AFS kernel module for %{kernvers}.
574 %if %{hugemem_package}
575 %package kernel-hugemem
576 Summary: OpenAFS Kernel Module (compiled for SMP & huge memory support)
577 Release: %{modpkgrel}
578 Provides: openafs-kernel = %{PACKAGE_VERSION}
580 Requires: kernel-hugemem-%{_target_cpu} = %{kversion}
582 Requires: /boot/config-%{kernvers}%{?hugemem_ext:%{hugemem_ext}}
584 Group: Networking/Filesystems
586 %description kernel-hugemem
587 The AFS distributed filesystem. AFS is a distributed filesystem
588 allowing cross-platform sharing of files among multiple computers.
589 Facilities are provided for access control, authentication, backup and
590 administrative management.
592 This package provides a precompiled AFS kernel module for %{kernvers}.
596 # End legacy kernel compilation code ...
599 ##############################################################################
603 ##############################################################################
607 : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
609 : @@@ kernel version: %{kernvers}
611 : @@@ kernel variations: %{kvariants}
613 : @@@ base kernel version:%{kversion}
614 : @@@ kernel modules dir: %{kxmoddir}
615 : @@@ kernel source dir: %{ksrcdir}
617 : @@@ kernel variations: %{kvariations}
620 : @@@ kernel type: up
622 : @@@ kernel type: %{ktype}
626 : @@@ PAM modules dir: %{pamdir}
627 : @@@ build userspace: %{build_userspace}
628 : @@@ build modules: %{build_modules}
630 : @@@ target cpu: %{_target_cpu}
632 : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
634 # Install OpenAFS src and doc
635 #%setup -q -n %{srcdir}
636 %setup -q -b 1 -n %{srcdir}
638 # Patch openafs to build a kernel module named "openafs" instead of "libafs"
639 %patch0 -p1 -b .kmod26
641 %if %{build_userspace}
642 # Save some time -- install these if we're building userspace
644 # Install the Krb5 Migration Kit
645 tar -xzf src/packaging/RedHat/openafs-krb5-2.0.tar.gz
648 # patch afs-krb5 migration kit to work with openafs-1.3 and krb5-1.3;
649 # add some features and fix bugs
652 # krb524 is no longer in a separate library as of krb5-1.3; handle this
653 patch -p0 -b -z .krb524 < src/packaging/RedHat/afs-krb5-2.0-krb524.patch
655 # make sure NETLIBS gets added to the proper programs (seems to be
656 # needed only for Solaris)
657 patch -p0 -b -z .libsocket < src/packaging/RedHat/afs-krb5-2.0-libsocket.patch
659 # find an existing libcom_err and use that
660 patch -p0 -b -z .com_err < src/packaging/RedHat/afs-krb5-2.0-com_err.patch
662 # make afs-krb5 work with recent OpenAFS; includes and prototypes
663 patch -p0 -b -z .openafs13 < src/packaging/RedHat/afs-krb5-2.0-openafs1.3.patch
665 # nothing in afs-krb5 actually uses res_search
666 patch -p0 -b -z .res_search < src/packaging/RedHat/afs-krb5-2.0-res_search.patch
668 (cd afs-krb5/src && autoreconf) || exit 1
672 ##############################################################################
676 ##############################################################################
687 echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`"
693 x86_64) sysname=amd64_linux${kv} ;;
694 alpha*) sysname=alpha_linux_${kv} ;;
695 i386|i486|i586|i686|athlon) sysname=i386_linux${kv} ;;
696 *) sysname=%{_arch}_linux${kv} ;;
700 archlist="i386 i586 i686 athlon"
701 %if %{bootkernelsupport}
702 archlist="${archlist} BOOT"
709 # PrintDefine var value statements file
714 echo "#ifndef $1" >> $4
719 echo "#undef $1" >> $4
724 echo "#define $1 $2" >> $4
734 echo "#include $1" >> $4
744 # PrintRedhatKernelFix arch mp file
745 PrintRedhatKernelFix() {
759 largesmp) largesmp=1;;
763 echo "$2 not supported"
772 PrintDefine "REDHAT_FIX_H" "" ifn,def,nl $file
774 PrintDefine __BOOT_KERNEL_ENTERPRISE $ent und,def,nl $file
775 PrintDefine __BOOT_KERNEL_BIGMEM $bigmem und,def,nl $file
776 PrintDefine __BOOT_KERNEL_HUGEMEM $hugemem und,def,nl $file
777 PrintDefine __BOOT_KERNEL_SMP $smp und,def,nl $file
778 PrintDefine __BOOT_KERNEL_LARGESMP $largesmp und,def,nl $file
779 PrintDefine __BOOT_KERNEL_UP $up und,def,nl $file
780 PrintDefine __BOOT_KERNEL_BOOT $boot und,def,nl $file
781 PrintDefine __BOOT_KERNEL_BOOTSMP $bootsmp und,def,nl $file
783 PrintDefine '"/boot/kernel.h"' "" inc,nl $file # include file
785 for ar in $archlist ; do
786 if [ "$ar" = "$arch" ]; then
787 PrintDefine "__MODULE_KERNEL_$ar" "1" ifn,def,end $file
789 PrintDefine "__MODULE_KERNEL_$ar" "" und $file # undef
794 PrintDefine "" "" end $file
796 if [ %{debugspec} = 1 ] ; then
797 echo "Kernel Configuration File for Red Hat kernels:"
802 config_opts="--enable-redhat-buildsys \
803 %{?_with_bitmap_later:--enable-bitmap-later} \
804 %{?_with_bos_restricted:--enable-bos-restricted-mode} \
805 %{?_with_fast_restart:--enable-fast-restart} \
806 %{?_with_largefiles:--enable-largefile-fileserver} \
807 %{?_with_supergroups:--enable-supergroups} \
808 --enable-transarc-paths"
812 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
814 ./configure --with-afs-sysname=${sysname} \
815 --prefix=%{_prefix} \
816 --libdir=%{_libdir} \
817 --bindir=%{_bindir} \
818 --sbindir=%{_sbindir} \
820 --with-linux-kernel-headers=%{ksrcdir} \
828 # Build the libafs tree
829 make only_libafs_tree || exit 1
831 # Configure each of our kernel modules
833 %if %{fedorakmod} && %{build_modules}
834 for kvariant in %{kvariants} ; do
835 cp -R libafs_tree _kmod_build_${kvariant}
836 pushd _kmod_build_${kvariant}
837 ./configure --with-afs-sysname=${sysname} \
838 --prefix=%{_prefix} \
839 --libdir=%{_libdir} \
840 --bindir=%{_bindir} \
841 --sbindir=%{_sbindir} \
842 --with-linux-kernel-headers=%{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu} \
852 %if %{build_userspace}
853 # Build the user-space AFS stuff
854 make dest_nolibafs || exit 1
857 # Now build ka-forwarder
859 ./configure --prefix=%{_prefix} --with-krb5=%{_prefix}/kerberos \
860 --libdir=%{_libdir} \
861 --bindir=%{_bindir} \
862 --sbindir=%{_sbindir} \
863 --with-afs=`pwd`/../../${sysname}/dest/ && \
864 make all PROGS="ka-forwarder" && \
865 install -c -s ka-forwarder `pwd`/../../${sysname}/dest/etc ) \
873 for kvariant in %{kvariants}
875 pushd _kmod_build_$kvariant;
881 # Begin legacy kernel module building code
884 # Build all the kernel modules for linux 2.4.x
885 for variation in %{kvariations}
887 if [ ${variation} = up ]
889 local_smp_def=-DREDHAT_FIX
892 local_smp_def="-DAFS_SMP -DREDHAT_FIX"
896 PrintRedhatKernelFix %{_target_cpu} $variation src/config/redhat-fix.h
897 make dest_only_libafs LOCAL_SMP_DEF="${local_smp_def}" \
898 LINUX_MODULE_NAME="${suffix}" MPS=SP
901 rm -f src/config/redhat-fix.h
903 %elseif %{kvers_is_26}
904 # Build the kernel module for this version of linux 2.6.x
905 # Notice how much easier this is than 2.4. On the other hand,
906 # we require much more external support to build multiple modules.
908 # the MPS=SP just means that we don't add a '.mp' to the name.
909 make dest_only_libafs MPS=SP
912 # End legacy kernel module building code
917 ##############################################################################
921 ##############################################################################
924 export DONT_GPRINTIFY=1
926 [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
938 echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`"
944 x86_64) sysname=amd64_linux${kv} ;;
945 alpha*) sysname=alpha_linux_${kv} ;;
946 i386|i486|i586|i686|athlon) sysname=i386_linux${kv} ;;
947 *) sysname=%{_arch}_linux${kv} ;;
951 %if %{build_userspace}
952 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
953 mkdir -p $RPM_BUILD_ROOT%{_libdir}
954 mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
955 mkdir -p $RPM_BUILD_ROOT%{initdir}
956 mkdir -p $RPM_BUILD_ROOT/etc/openafs
957 mkdir -p $RPM_BUILD_ROOT%{pamdir}
958 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/etc
959 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/logs
960 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/etc
961 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/cache
962 chmod 700 $RPM_BUILD_ROOT%{_prefix}/vice/cache
963 mkdir -p $RPM_BUILD_ROOT%{_mandir}
965 # Copy files from dest to the appropriate places in BuildRoot
966 tar cf - -C ${sysname}/dest bin include | tar xf - -C $RPM_BUILD_ROOT%{_prefix}
967 tar cf - -C ${sysname}/dest/lib . | tar xf - -C $RPM_BUILD_ROOT%{_libdir}
968 tar cf - -C ${sysname}/dest/etc . | tar xf - -C $RPM_BUILD_ROOT%{_sbindir}
969 tar cf - -C ${sysname}/dest/root.server%{_prefix}/afs bin | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/afs
970 tar cf - -C ${sysname}/dest/root.client%{_prefix}/vice/etc afsd | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/vice/etc
972 # Link kpasswd to kapasswd
973 ln -f $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd
975 # Copy root.client config files
976 install -m 755 src/packaging/RedHat/openafs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openafs
977 install -m 755 src/packaging/RedHat/openafs-client.init $RPM_BUILD_ROOT%{initdir}/openafs-client
978 install -m 755 src/packaging/RedHat/openafs-server.init $RPM_BUILD_ROOT%{initdir}/openafs-server
981 install -m 755 ${sysname}/dest/lib/pam* $RPM_BUILD_ROOT%{pamdir}
984 ln -sf pam_afs.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.so
985 ln -sf pam_afs.krb.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.krb.so
987 # Populate /usr/vice/etc
988 uve=$RPM_BUILD_ROOT%{_prefix}/vice/etc
989 install -p -m 644 src/packaging/RedHat/openafs-ThisCell $uve/ThisCell
990 install -p -m 644 src/afsd/CellServDB $uve/CellServDB.dist
991 install -p -m 644 src/packaging/RedHat/openafs-cacheinfo $uve/cacheinfo
994 # install kernel-source
997 # Install the kernel module source tree
998 mkdir -p $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
999 tar cf - -C libafs_tree . | \
1000 tar xf - -C $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
1002 # Next, copy the LICENSE Files, README
1003 install -m 644 src/LICENSE $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1004 install -m 644 src/packaging/RedHat/openafs-LICENSE.Sun $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1005 install -m 644 src/packaging/RedHat/openafs-README $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/README
1008 # Install DOCUMENTATION
1011 # Build the DOC directory
1012 mkdir -p $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1013 tar cf - -C doc LICENSE html pdf | \
1014 tar xf - -C $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1015 install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1016 install -m 644 %{SOURCE11} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1021 tar cf - -C doc/man-pages man1 man5 man8 | \
1022 tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1024 # Copy the uninstalled krb5 files (or delete the unused krb5 files)
1026 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/asetkey $RPM_BUILD_ROOT%{_sbindir}/asetkey
1028 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/asetkey.*
1031 # remove unused man pages
1032 for x in afs_ftpd afs_inetd afs_login afs_rcp afs_rlogind afs_rsh \
1033 dkload knfs package runntp; do
1034 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${x}.1
1037 # rename kpasswd to kapasswd
1038 mv $RPM_BUILD_ROOT%{_mandir}/man1/kpasswd.1 $RPM_BUILD_ROOT%{_mandir}/man1/kapasswd.1
1041 gzip -9 $RPM_BUILD_ROOT%{_mandir}/man*/*
1043 # create list of man pages that go in the 'openafs' package
1044 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man1 \
1045 |egrep '^afs|^fs|^kas|^klog|kapasswd|pagsh|^pts|^rxdebug|scout|^sys|tokens|translate|udebug|unlog|^uss|^vos' \
1048 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man5 \
1049 |egrep 'CellServDB|ThisCell|afsmonitor|^butc|^uss' \
1052 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man8 \
1053 |egrep '^backup|^bos|^butc|^fms|^fstrace|^kas|^uss' \
1059 grep -v "^#" >openafs-file-list <<EOF-openafs-file-list
1060 %{_bindir}/afsmonitor
1068 %{_bindir}/pagsh.krb
1073 %{_bindir}/tokens.krb
1074 %{_bindir}/translate_et
1079 %{_sbindir}/copyauth
1083 %{_sbindir}/read_tape
1084 %{_sbindir}/restorevol
1089 EOF-openafs-file-list
1091 # add man pages to the list
1092 cat openafs-man1files \
1093 | ( while read x; do echo "%{_mandir}/man1/$x"; done ) \
1095 cat openafs-man5files \
1096 | ( while read x; do echo "%{_mandir}/man5/$x"; done ) \
1098 cat openafs-man8files \
1099 | ( while read x; do echo "%{_mandir}/man8/$x"; done ) \
1103 # Install compatiblity links
1105 for d in bin:bin etc:sbin; do
1106 olddir=`echo $d | sed 's/:.*$//'`
1107 newdir=`echo $d | sed 's/^.*://'`
1108 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir
1109 for f in `cat openafs-file-list`; do
1110 if echo $f | grep -q /$newdir/; then
1112 ln -sf %{_prefix}/$newdir/$fb $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir/$fb
1118 # Remove files we're not installing
1121 # remove duplicated files from /usr/afs/bin
1122 for f in bos fs kas klog klog.krb kpwvalid pts tokens tokens.krb udebug vos ; do
1123 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/$f
1126 # compile_et is duplicated in e2fsprogs
1127 # the rest are not needed.
1128 for f in compile_et dlog dpass install knfs livesys xstat_cm_test xstat_fs_test ; do
1129 rm -f $RPM_BUILD_ROOT%{_bindir}/$f
1132 # not supported on Linux or duplicated
1133 for f in kdb rmtsysd kpwvalid ; do
1134 rm -f $RPM_BUILD_ROOT%{_sbindir}/$f
1136 # sometimes install sucks and puts down a directory. kill it all.
1137 rm -rf $RPM_BUILD_ROOT%{_sbindir}/kdump*
1139 # remove man pages from programs deleted above
1140 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
1141 rm -f $RPM_BUILD_ROOT%{_mandir}/man$f.*
1144 # PAM modules are doubly-installed Remove the version we don't need
1145 for f in pam_afs.krb.so.1 pam_afs.so.1 ; do
1146 rm -f $RPM_BUILD_ROOT%{_libdir}/$f
1149 # Remove empty files from the krb5 migration
1150 for f in afs2k5db fakeka ; do
1151 rm -f $RPM_BUILD_ROOT%{_sbindir}/$f
1154 %if !%{build_authlibs}
1155 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
1156 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
1161 %if %{build_modules}
1163 for kvariant in %{kvariants}
1165 pushd _kmod_build_$kvariant
1166 srcdir=src/libafs/MODLOAD-%{kverrel}${kvariant}-SP
1167 dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}${kvariant}/extra/openafs
1170 install -m 744 ${srcdir}/libafs-%{kverrel}${kvariant}.ko $dstdir/openafs.ko
1174 # Install the kernel modules
1175 for variation in %{kvariations}
1177 if [ ${variation} = up ]
1180 modname=libafs-%{kernvers}${kmodend}
1182 kvar=%{kxmoddir}${variation}
1183 modname=libafs-%{kernvers}${variation}${kmodend}
1186 srcdir=${sysname}/dest/root.client%{_prefix}/vice/etc/modload
1187 dstdir=$RPM_BUILD_ROOT${kvar}/fs/openafs
1191 # Mark kernel modules as executable; otherwise they won't get stripped
1192 # by /usr/lib/rpm/brp-strip
1193 install -m 744 ${srcdir}/${modname} ${dstdir}/openafs${kmodend}
1198 ##############################################################################
1202 ##############################################################################
1204 rm -f openafs-file-list
1205 [ "$RPM_BUILD_ROOT" != "/" -a "x%{debugspec}" != "x1" ] && \
1206 rm -fr $RPM_BUILD_ROOT
1209 ##############################################################################
1213 ##############################################################################
1214 %if %{build_userspace}
1217 if [ -e %{_prefix}/afsws ]; then
1218 /bin/rm -fr %{_prefix}/afsws
1222 chkconfig --add openafs-client
1223 if [ ! -d /afs ]; then
1225 chown root.root /afs
1229 # Create the CellServDB
1230 [ -f /usr/vice/etc/CellServDB.local ] || touch /usr/vice/etc/CellServDB.local
1232 ( cd /usr/vice/etc ; \
1233 cat CellServDB.local CellServDB.dist > CellServDB ; \
1234 chmod 644 CellServDB )
1237 echo The AFS cache is configured for 100 MB. Edit the
1238 echo /usr/vice/etc/cacheinfo file to change this before
1239 echo running AFS for the first time. You should also
1240 echo set your home cell in /usr/vice/etc/ThisCell.
1242 echo Also, you may want to edit /etc/pam.d/login and
1243 echo possibly others there to get an AFS token on login.
1246 echo auth sufficient %{pamdir}/pam_afs.so try_first_pass ignore_root
1248 echo before the one for pwdb.
1252 chkconfig --add openafs-server
1253 %{initdir}/openafs-server condrestart
1255 %if %{build_authlibs}
1264 if [ $1 = 0 ] ; then
1265 [ -d /afs ] && rmdir /afs
1269 if [ $1 = 0 ] ; then
1270 %{initdir}/openafs-client stop
1271 chkconfig --del openafs-client
1275 if [ $1 = 0 ] ; then
1276 %{initdir}/openafs-server stop
1277 chkconfig --del openafs-server
1282 %if %{build_modules}
1286 /sbin/depmod -ae %{kernvers}
1289 /sbin/depmod -ae %{kernvers}
1295 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1298 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1301 %if %{largesmp_package}
1302 %post kernel-largesmp
1303 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1305 %postun kernel-largesmp
1306 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1309 %if %{bigmem_package}
1311 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1313 %postun kernel-bigmem
1314 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1317 %if %{hugemem_package}
1318 %post kernel-hugemem
1319 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1321 %postun kernel-hugemem
1322 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1328 ##############################################################################
1332 ##############################################################################
1333 %if %{build_userspace}
1335 %files -f openafs-file-list
1336 %defattr(-,root,root)
1337 %config /etc/sysconfig/openafs
1338 %doc %{_docdir}/openafs-%{afsvers}/LICENSE
1341 %defattr(-,root,root)
1342 %doc %{_docdir}/openafs-%{afsvers}
1345 %defattr(-,root,root)
1346 %dir %{_prefix}/vice
1347 %dir %{_prefix}/vice/cache
1348 %dir %{_prefix}/vice/etc
1349 %{_prefix}/vice/etc/CellServDB.dist
1350 %config %{_prefix}/vice/etc/ThisCell
1351 %config %{_prefix}/vice/etc/cacheinfo
1354 %{_prefix}/vice/etc/afsd
1355 %{pamdir}/pam_afs.krb.so.1
1356 %{pamdir}/pam_afs.krb.so
1357 %{pamdir}/pam_afs.so.1
1358 %{pamdir}/pam_afs.so
1359 %{initdir}/openafs-client
1360 %{_mandir}/man1/cmdebug.*
1361 %{_mandir}/man1/up.*
1362 %{_mandir}/man5/afs*
1363 %{_mandir}/man5/cacheinfo.*
1364 %{_mandir}/man8/afsd.*
1365 %{_mandir}/man5/CellAlias.*
1368 %defattr(-,root,root)
1370 %dir %{_prefix}/afs/bin
1371 %dir %{_prefix}/afs/etc
1372 %dir %{_prefix}/afs/logs
1373 %{_prefix}/afs/bin/bosserver
1374 %{_prefix}/afs/bin/bos_util
1375 %{_prefix}/afs/bin/buserver
1376 %{_prefix}/afs/bin/fileserver
1377 # Should we support KAServer?
1378 %{_prefix}/afs/bin/kaserver
1379 %{_prefix}/afs/bin/ka-forwarder
1380 %{_prefix}/afs/bin/pt_util
1381 %{_prefix}/afs/bin/ptserver
1382 %{_prefix}/afs/bin/salvager
1383 %{_prefix}/afs/bin/upclient
1384 %{_prefix}/afs/bin/upserver
1385 %{_prefix}/afs/bin/vlserver
1386 %{_prefix}/afs/bin/volinfo
1387 %{_prefix}/afs/bin/volserver
1388 %{_sbindir}/kadb_check
1389 %{_sbindir}/prdb_check
1390 %{_sbindir}/vldb_check
1391 %{_sbindir}/vldb_convert
1393 %{initdir}/openafs-server
1394 %{_mandir}/man5/AuthLog.*
1395 %{_mandir}/man5/BackupLog.*
1396 %{_mandir}/man5/BosConfig.*
1397 %{_mandir}/man5/BosLog.*
1398 %{_mandir}/man5/FORCESALVAGE.*
1399 %{_mandir}/man5/FileLog.*
1400 %{_mandir}/man5/KeyFile.*
1401 %{_mandir}/man5/NetInfo.*
1402 %{_mandir}/man5/NetRestrict.*
1403 %{_mandir}/man5/NoAuth.*
1404 %{_mandir}/man5/SALVAGE.fs.*
1405 %{_mandir}/man5/SalvageLog.*
1406 %{_mandir}/man5/sysid.*
1407 %{_mandir}/man5/UserList.*
1408 %{_mandir}/man5/VLLog.*
1409 %{_mandir}/man5/VolserLog.*
1410 %{_mandir}/man5/bdb.DB0.*
1411 %{_mandir}/man5/fms.log.*
1412 %{_mandir}/man5/kaserver.DB0.*
1413 %{_mandir}/man5/kaserverauxdb.*
1414 %{_mandir}/man5/prdb.DB0.*
1415 %{_mandir}/man5/salvage.lock.*
1416 %{_mandir}/man5/tapeconfig.*
1417 %{_mandir}/man5/vldb.DB0.*
1418 %{_mandir}/man8/buserver.*
1419 %{_mandir}/man8/fileserver.*
1420 %{_mandir}/man8/kadb_check.*
1421 %{_mandir}/man8/ka-forwarder.*
1422 %{_mandir}/man8/prdb_check.*
1423 %{_mandir}/man8/ptserver.*
1424 %{_mandir}/man8/pt_util.*
1425 %{_mandir}/man8/salvager.*
1426 %{_mandir}/man8/upclient.*
1427 %{_mandir}/man8/upserver.*
1428 %{_mandir}/man8/vldb_check.*
1429 %{_mandir}/man8/vlserver.*
1430 %{_mandir}/man8/voldump.*
1431 %{_mandir}/man8/volinfo.*
1432 %{_mandir}/man8/volserver.*
1433 #%{_mandir}/man8/vldb_convert.*
1435 %if %{build_authlibs}
1437 %defattr(-,root,root)
1438 %{_libdir}/libafsauthent.so.*
1439 %{_libdir}/libafsrpc.so.*
1442 %files authlibs-devel
1443 %defattr(-,root,root)
1444 %{_libdir}/libafsauthent.a
1445 %{_libdir}/libafsrpc.a
1446 %if %{build_authlibs}
1447 %{_libdir}/libafsauthent.so
1448 %{_libdir}/libafsrpc.so
1452 %defattr(-,root,root)
1455 %{_includedir}/des.h
1456 %{_includedir}/des_conf.h
1457 %{_includedir}/des_odd.h
1458 %{_includedir}/des_prototypes.h
1459 %{_includedir}/lock.h
1460 %{_includedir}/lwp.h
1461 %{_includedir}/mit-cpyright.h
1462 %{_includedir}/potpourri.h
1463 %{_includedir}/preempt.h
1465 %{_includedir}/timer.h
1466 %{_includedir}/ubik.h
1467 %{_includedir}/ubik_int.h
1472 %{_libdir}/librxkad.a
1473 %{_libdir}/librxstat.a
1474 %{_libdir}/libubik.a
1475 %{_mandir}/man1/rxgen.*
1477 %files kernel-source
1478 %defattr(-,root,root)
1479 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1480 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1481 %{_prefix}/src/openafs-kernel-%{afsvers}/README
1482 %{_prefix}/src/openafs-kernel-%{afsvers}/src
1485 %defattr(-,root,root)
1489 %defattr(-,root,root)
1495 %defattr(-,root,root)
1498 %{_sbindir}/ka-forwarder
1499 %{_mandir}/man1/aklog.*
1500 %{_mandir}/man8/asetkey.*
1505 %if %{build_modules}
1510 %defattr(-,root,root)
1511 %{kxmoddir}/fs/openafs/openafs.*
1516 %defattr(-,root,root)
1517 %{kxmoddir}%{?smp_ext:%{smp_ext}}/fs/openafs/openafs.*
1520 %if %{largesmp_package}
1521 %files kernel-largesmp
1522 %defattr(-,root,root)
1523 %{kxmoddir}%{?largesmp_ext:%{largesmp_ext}}/fs/openafs/openafs.*
1526 %if %{bigmem_package}
1527 %files kernel-bigmem
1528 %defattr(-,root,root)
1529 %{kxmoddir}%{?bigmem_ext:%{bigmem_ext}}/fs/openafs/openafs.*
1532 %if %{hugemem_package}
1533 %files kernel-hugemem
1534 %defattr(-,root,root)
1535 %{kxmoddir}%{?hugemem_ext:%{hugemem_ext}}/fs/openafs/openafs.*
1541 ##############################################################################
1543 ### openafs.spec change log
1545 ##############################################################################
1547 * Wed Oct 10 2007 Simon Wilkinson <simon@sxw.org.uk> 1.4.5pre1-1
1548 - Use Fedora style kmods, which allows us to install multiple kernel types
1550 * Thu Jun 07 2007 Simon Wilkinson <simon@sxw.org.uk> 1.4.4-3
1551 - Use distributed files, rather than those in packager's SOURCE directory
1552 - Remove SuidCells stuff, which was unused
1554 * Fri Dec 01 2006 Derrick Brashear <shadow@dementia.org> 1.4.2-2
1555 - integrate s390x changes
1556 - allow for building libafs*.a and not libafs*.so into packages, for platforms
1557 that won't build the .so files.
1559 * Wed Aug 23 2006 Derrick Brashear <shadow@dementia.org> 1.4.2-1
1561 - use installed aklog manpage.
1562 - moduleparam patch obsoleted.
1564 * Tue Aug 22 2006 Derek Atkins <warlord@MIT.EDU> 1.4.2-0.1.rc1
1565 - update to 1.4.2-rc1
1566 - hand-apply lee damon's changes to support largesmp kernels from RHEL4
1567 (but only add support for 2.6 kernels. No need for the 2.4 kernels).
1568 - don't need the posixlock patch anymore.
1570 * Wed Jul 12 2006 Derek Atkins <warlord@MIT.EDU> 1.4.2-0.beta2
1571 - update to 1.4.2-beta2
1572 - add linux2.4 posixlock API patch
1574 * Mon Jun 26 2006 Derek Atkins <warlord@MIT.EDU>
1575 - moduleparam and krb524 patches no longer required in OA-CVS
1577 * Wed May 17 2006 Derek Atkins <warlord@MIT.EDU>
1578 - change non-target-cpu kernel dep to a file dep
1579 - make sure we use the proper kernel version for the dependency.
1581 * Tue May 16 2006 Derek Atkins <warlord@MIT.EDU>
1582 - allow users to specify local CellServDB and SuidCells entries
1583 don't overwrite user's changes. Provide a .dist an let users
1584 make entries in a ".local"
1585 - build the CellServDB and SuidCells at client startup and at
1587 - add provideskernelarch functionality to openafs-kvers-is.sh
1588 - use that functionality to Require kernel{,-<type>}-targetcpu
1589 to get better package safety due to RPM bugs where the kernel
1590 release isn't used so you can install the kernel module against
1591 any kernel of the same major version.
1593 * Mon May 15 2006 Derek Atkins <warlord@MIT.EDU>
1594 - update the README in openafs-kernel-source
1595 - fix openafs-kvers-is.sh from Alexander Bergolth's patch.
1596 - move kernel module from .../kernel/fs/openafs to .../fs/openafs/
1598 * Fri Apr 21 2006 Derek Atkins <warlord@MIT.EDU>
1599 - build requires autoconf and automake for krb5support
1600 and autoconf for standard package
1601 - dont setup the krb5 migration kit (or patches) if we don't care.
1602 - require ncurses-devel to build
1604 * Wed Apr 19 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1-3
1605 - look for krb524 functions in libkrb524 if we can't find them
1606 in the standard locations.
1608 * Tue Apr 18 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1-2
1609 - fix the module_param_array macro for Linux 2.6.9.
1611 * Sat Apr 15 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1-1
1612 - update to 1.4.1 release.
1613 - distribute asetkey from openafs instead of krb5-migration kit
1614 - don't need to apply the FC5 patches because they are part of the distro.
1615 - install asetkey into the "proper" place
1616 - dont list a manpage twice.
1617 - package asetkey man page. delete it when not needed.
1619 * Thu Apr 6 2006 Derek Atkins <warlord@MIT.EDU>
1620 - turn authlibs back on, because RT #18767 was applied to CVS.
1622 * Wed Mar 29 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1rc10-1
1623 - update to 1.4.1rc10, build on FC5
1624 - fix the man pages (distribute into various packages)
1625 - include patches for FC5, RT #29112 and #29122
1627 * Mon Dec 19 2005 Derek Atkins <warlord@MIT.EDU>
1628 - openafs-server shouldn't depend on the kernel module.
1630 * Thu Nov 17 2005 Derek Atkins <warlord@MIT.EDU>
1631 - patch from Mike Polek <mike at pictage.com> to run depmod for
1632 the target kernel and not the running kernel.
1634 * Tue Nov 8 2005 Derek Atkins <warlord@MIT.EDU>
1635 - build aklog from the openafs sources, not from the krb5 migration kit.
1637 * Fri Nov 4 2005 Derek Atkins <warlord@MIT.EDU>
1638 - set openafs-kernel-source to Provide openafs-kernel
1640 * Thu Oct 20 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0-1
1641 - update afs-krb5 res_search patch: look for res_search and __res_search
1642 - update to 1.4.0 final
1644 * Mon Oct 10 2005 Derek Atkins <warlord@MIT.EDU>
1645 - remove all kdump builds.
1647 * Thu Oct 6 2005 Derek Atkins <warlord@MIT.EDU>
1648 - fix openafs-kernel-version.sh so it will build an RPM for the
1649 currently-running kernel even if it's smp on 2.6.
1651 * Tue Sep 27 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc5-1
1652 - upgrade to 1.4.0rc5
1653 - turn off authlibs packages
1655 * Fri Sep 23 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-2
1656 - add kmodule26 patch: fix the kernel module name on 2.6 kernels so
1657 it's called "openafs" and not "libafs". This fixes the shutdown
1660 * Thu Sep 22 2005 Derek Atkins <warlord@MIT.EDU>
1661 - update kversis script, add 'kvers' operation
1662 - fix bug that 2.6 smp/hugemem kernels don't provide
1663 kernel-foo = %{kernvers} with 'smp', 'hugemem', etc.
1664 - add patch to remove res_search from the afs-krb5 configure
1666 * Thu Sep 15 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-1
1667 - Update to 1.4.0rc4
1668 - Update the afs-krb5 krb524 patch so it actually works on
1669 some older systems like RHEL3 that still need -lkrb524.
1670 - Update the buildall script so choose better architecture support,
1671 e.g. don't build i586 on RHEL.
1672 - Update the rebuild information in the SPEC file.
1673 - Add support for finding .EL kernels in openafs-kvers-is.sh
1674 - Add additional error messages when kernel version/type parsing fails.
1675 - Update the buildall script to use the kernel srcdir directly.
1677 * Wed Sep 14 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-2
1678 - Add "hugemem" to 2.4 configs
1679 - Add checks to support scripts to determine whether to build
1680 the bigmem and/or hugemem kernels for 2.4.
1682 * Mon Sep 12 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-1
1683 - Added some afs-krb5 patches to get the migration kit to build
1684 on modern AFS and modern Kerberos.
1685 - Added authlibs and authlibs-devel packages as per UMich changes.
1687 * Sun Sep 11 2005 Derek Atkins <warlord@MIT.EDU>
1688 - Merged in some of the 2.6 changes from wingc@engin.umich.edu
1690 * Sat Sep 10 2005 Derek Atkins <warlord@MIT.EDU>
1691 - Merged in lots of changes from David Howells and Nalin Dahyabhai
1692 from Red Hat. Initial attempt at a release of 1.4. Still need
1693 to work in a 2.6 build system.