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
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
249 Patch0: openafs-1.4.0-kmodule26.patch
252 The AFS distributed filesystem. AFS is a distributed filesystem
253 allowing cross-platform sharing of files among multiple computers.
254 Facilities are provided for access control, authentication, backup and
255 administrative management.
257 This package provides common files shared across all the various
258 OpenAFS packages but are not necessarily tied to a client or server.
260 The OpenAFS SRPM can be rebuilt with the following options to control
263 --define "kernvers 2.4.20-1.1376_FC3" Specify the specific kernel version
264 to build modules against. The default is
265 to build against the currently-running
267 --define "kbase /lib/modules/" The base location to look for kernel headers
268 --define "kend /build" The 'end' location to look for kernels
269 The build will define ksrvdir as
270 %%{kbase}<kernvers>%%{kend}
272 --without krb5 Disable krb5 support (default: with krb5)
273 --with bitmap-later Enable "bitmap later" support
274 --with bos-restricted Enable "bos restricted" mode
275 --with fast-restart Enable "fast restart" mode
276 --with largefiles Enable "largefile fileserver" mode
277 --with supergroups Enable "supergroups"
279 --target=i386 The target architecture to build for.
280 When building for a non-default target
281 the build may choose whether to build
282 userspace or kernel modules automatically.
283 The defaults are probably what you want.
285 --define "build_userspace 1" Request building of userspace tools
286 --define "build_modules 1" Request building of kernel modules
287 You probably never need to specify these.
289 --define "kmoddir /lib/modules" This is the base location where modules
290 will be installed. You probably don't
291 need to change this ever.
293 --define "fedorakmod 1" Build 'Fedora' style kernel modules
295 To a kernel module for your running kernel, just run:
296 rpmbuild --rebuild --target=`uname -m` openafs-%{pkgvers}-%{osvers}.%{pkgrel}.src.rpm
298 ##############################################################################
300 # build the userspace side of things if so requested
302 ##############################################################################
303 %if %{build_userspace}
306 Requires: binutils, openafs = %{PACKAGE_VERSION}
309 Requires: %{name}-kmod >= %{version}
310 Provides: %{name}-kmod-common = %{version}
312 Requires: openafs-kernel
315 Summary: OpenAFS Filesystem Client
316 Group: Networking/Filesystem
319 The AFS distributed filesystem. AFS is a distributed filesystem
320 allowing cross-platform sharing of files among multiple computers.
321 Facilities are provided for access control, authentication, backup and
322 administrative management.
324 This package provides basic client support to mount and manipulate
328 Requires: openafs = %{PACKAGE_VERSION}
329 Summary: OpenAFS Filesystem Server
330 Group: Networking/Filesystems
333 The AFS distributed filesystem. AFS is a distributed filesystem
334 allowing cross-platform sharing of files among multiple computers.
335 Facilities are provided for access control, authentication, backup and
336 administrative management.
338 This package provides basic server support to host files in an AFS
341 %if %{build_authlibs}
343 Summary: OpenAFS authentication shared libraries
344 Group: Networking/Filesystems
346 %description authlibs
347 The AFS distributed filesystem. AFS is a distributed filesystem
348 allowing cross-platform sharing of files among multiple computers.
349 Facilities are provided for access control, authentication, backup and
350 administrative management.
352 This package provides a shared version of libafsrpc and libafsauthent.
353 None of the programs included with OpenAFS currently use these shared
354 libraries; however, third-party software that wishes to perform AFS
355 authentication may link against them.
358 %package authlibs-devel
359 %if %{build_authlibs}
360 Requires: openafs-authlibs = %{PACKAGE_VERSION}
362 Requires: openafs-devel = %{PACKAGE_VERSION}
363 Summary: OpenAFS shared library development
364 Group: Development/Filesystems
366 %description authlibs-devel
367 The AFS distributed filesystem. AFS is a distributed filesystem
368 allowing cross-platform sharing of files among multiple computers.
369 Facilities are provided for access control, authentication, backup and
370 administrative management.
372 This package includes the static versions of libafsrpc and
373 libafsauthent, and symlinks required for building against the dynamic
377 Summary: OpenAFS Development Libraries and Headers
378 Group: Development/Filesystems
381 The AFS distributed filesystem. AFS is a distributed filesystem
382 allowing cross-platform sharing of files among multiple computers.
383 Facilities are provided for access control, authentication, backup and
384 administrative management.
386 This package provides static development libraries and headers needed
387 to compile AFS applications. Note: AFS currently does not provide
391 Summary: OpenAFS user and administrator documentation
392 Requires: openafs = %{PACKAGE_VERSION}
393 Group: Networking/Filesystems
396 The AFS distributed filesystem. AFS is a distributed filesystem
397 allowing cross-platform sharing of files among multiple computers.
398 Facilities are provided for access control, authentication, backup and
399 administrative management.
401 This package provides HTML documentation for OpenAFS users and system
404 %package kernel-source
405 Summary: OpenAFS Kernel Module source tree
406 Group: Networking/Filesystems
407 Provides: openafs-kernel = %{PACKAGE_VERSION}
409 Provides: %{name}-kmod = %{PACKAGE_VERSION}
412 %description kernel-source
413 The AFS distributed filesystem. AFS is a distributed filesystem
414 allowing cross-platform sharing of files among multiple computers.
415 Facilities are provided for access control, authentication, backup and
416 administrative management.
418 This package provides the source code to build your own AFS kernel
422 Summary: OpenAFS client compatibility symlinks
423 Requires: openafs = %{PACKAGE_VERSION}, openafs-client = %{PACKAGE_VERSION}
424 Group: Networking/Filesystems
425 Obsoletes: openafs-client-compat
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.
433 This package provides compatibility symlinks in /usr/afsws. It is
434 completely optional, and is only necessary to support legacy
435 applications and scripts that hard-code the location of AFS client
439 Summary: OpenAFS KA kpasswd support
441 Group: Networking/Filesystems
444 The AFS distributed filesystem. AFS is a distributed filesystem
445 allowing cross-platform sharing of files among multiple computers.
446 Facilities are provided for access control, authentication, backup and
447 administrative management.
449 This package provides the compatibility symlink for kpasswd, in case
450 you are using KAserver instead of Krb5.
454 Summary: OpenAFS programs to use with krb5
455 Requires: openafs = %{PACKAGE_VERSION}
456 Group: Networking/Filesystems
457 BuildRequires: krb5-devel, autoconf, automake
460 The AFS distributed filesystem. AFS is a distributed filesystem
461 allowing cross-platform sharing of files among multiple computers.
462 Facilities are provided for access control, authentication, backup and
463 administrative management.
465 This package provides compatibility programs so you can use krb5
466 to authenticate to AFS services, instead of using AFS's homegrown
467 krb4 lookalike services.
472 ##############################################################################
474 # build the kernel modules if so requested
476 ##############################################################################
480 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
484 # Legacy kernel compilation code here ...
485 %define modkversion %(echo %{kernvers} | cut -d- -f1)
486 %define modkrelease %(echo %{kernvers} | cut -d- -f2)
487 %define modpkgrel %{modkversion}_%{modkrelease}_%{pkgrel}
491 Summary: OpenAFS Kernel Module (compiled for UP)
492 Release: %{modpkgrel}
493 Group: Networking/Filesystems
494 Provides: openafs-kernel = %{PACKAGE_VERSION}
496 Requires: kernel-%{_target_cpu} = %{kversion}
498 Requires: /boot/config-%{kernvers}
502 The AFS distributed filesystem. AFS is a distributed filesystem
503 allowing cross-platform sharing of files among multiple computers.
504 Facilities are provided for access control, authentication, backup and
505 administrative management.
507 This package provides a precompiled AFS kernel module for %{kernvers}.
512 Summary: OpenAFS Kernel Module (compiled for SMP)
513 Release: %{modpkgrel}
514 Provides: openafs-kernel = %{PACKAGE_VERSION}
516 Requires: kernel-smp-%{_target_cpu} = %{kversion}
518 Requires: /boot/config-%{kernvers}%{?smp_ext:%{smp_ext}}
520 Group: Networking/Filesystems
522 %description kernel-smp
523 The AFS distributed filesystem. AFS is a distributed filesystem
524 allowing cross-platform sharing of files among multiple computers.
525 Facilities are provided for access control, authentication, backup and
526 administrative management.
528 This package provides a precompiled AFS kernel module for %{kernvers}.
531 %if %{largesmp_package}
532 %package kernel-largesmp
533 Summary: OpenAFS Kernel Module (compiled for LARGESMP)
534 Release: %{modpkgrel}
535 Provides: openafs-kernel = %{PACKAGE_VERSION}
537 Requires: kernel-largesmp-%{_target_cpu} = %{kversion}
539 Requires: /boot/config-%{kernvers}%{?largesmp_ext:%{largesmp_ext}}
541 Group: Networking/Filesystems
543 %description kernel-largesmp
544 The AFS distributed filesystem. AFS is a distributed filesystem
545 allowing cross-platform sharing of files among multiple computers.
546 Facilities are provided for access control, authentication, backup and
547 administrative management.
549 This package provides a precompiled AFS kernel module for %{kernvers}.
552 %if %{bigmem_package}
553 %package kernel-bigmem
554 Summary: OpenAFS Kernel Module (compiled for SMP & big memory support)
555 Release: %{modpkgrel}
556 Provides: openafs-kernel = %{PACKAGE_VERSION}
558 Requires: kernel-bigmem-%{_target_cpu} = %{kversion}
560 Requires: /boot/config-%{kernvers}%{?bigmem_ext:%{bigmem_ext}}
562 Group: Networking/Filesystems
564 %description kernel-bigmem
565 The AFS distributed filesystem. AFS is a distributed filesystem
566 allowing cross-platform sharing of files among multiple computers.
567 Facilities are provided for access control, authentication, backup and
568 administrative management.
570 This package provides a precompiled AFS kernel module for %{kernvers}.
573 %if %{hugemem_package}
574 %package kernel-hugemem
575 Summary: OpenAFS Kernel Module (compiled for SMP & huge memory support)
576 Release: %{modpkgrel}
577 Provides: openafs-kernel = %{PACKAGE_VERSION}
579 Requires: kernel-hugemem-%{_target_cpu} = %{kversion}
581 Requires: /boot/config-%{kernvers}%{?hugemem_ext:%{hugemem_ext}}
583 Group: Networking/Filesystems
585 %description kernel-hugemem
586 The AFS distributed filesystem. AFS is a distributed filesystem
587 allowing cross-platform sharing of files among multiple computers.
588 Facilities are provided for access control, authentication, backup and
589 administrative management.
591 This package provides a precompiled AFS kernel module for %{kernvers}.
595 # End legacy kernel compilation code ...
598 ##############################################################################
602 ##############################################################################
606 : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
608 : @@@ kernel version: %{kernvers}
610 : @@@ kernel variations: %{kvariants}
612 : @@@ base kernel version:%{kversion}
613 : @@@ kernel modules dir: %{kxmoddir}
614 : @@@ kernel source dir: %{ksrcdir}
616 : @@@ kernel variations: %{kvariations}
619 : @@@ kernel type: up
621 : @@@ kernel type: %{ktype}
625 : @@@ PAM modules dir: %{pamdir}
626 : @@@ build userspace: %{build_userspace}
627 : @@@ build modules: %{build_modules}
629 : @@@ target cpu: %{_target_cpu}
631 : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
633 # Install OpenAFS src and doc
634 #%setup -q -n %{srcdir}
635 %setup -q -b 1 -n %{srcdir}
637 # Patch openafs to build a kernel module named "openafs" instead of "libafs"
638 %patch0 -p1 -b .kmod26
640 %if %{build_userspace}
641 # Save some time -- install these if we're building userspace
643 # Install the Krb5 Migration Kit
644 tar -xzf src/packaging/RedHat/openafs-krb5-2.0.tar.gz
647 # patch afs-krb5 migration kit to work with openafs-1.3 and krb5-1.3;
648 # add some features and fix bugs
651 # krb524 is no longer in a separate library as of krb5-1.3; handle this
652 patch -p0 -b -z .krb524 < src/packaging/RedHat/afs-krb5-2.0-krb524.patch
654 # make sure NETLIBS gets added to the proper programs (seems to be
655 # needed only for Solaris)
656 patch -p0 -b -z .libsocket < src/packaging/RedHat/afs-krb5-2.0-libsocket.patch
658 # find an existing libcom_err and use that
659 patch -p0 -b -z .com_err < src/packaging/RedHat/afs-krb5-2.0-com_err.patch
661 # make afs-krb5 work with recent OpenAFS; includes and prototypes
662 patch -p0 -b -z .openafs13 < src/packaging/RedHat/afs-krb5-2.0-openafs1.3.patch
664 # nothing in afs-krb5 actually uses res_search
665 patch -p0 -b -z .res_search < src/packaging/RedHat/afs-krb5-2.0-res_search.patch
667 (cd afs-krb5/src && autoreconf) || exit 1
671 ##############################################################################
675 ##############################################################################
686 echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`"
692 x86_64) sysname=amd64_linux${kv} ;;
693 alpha*) sysname=alpha_linux_${kv} ;;
694 i386|i486|i586|i686|athlon) sysname=i386_linux${kv} ;;
695 *) sysname=%{_arch}_linux${kv} ;;
699 archlist="i386 i586 i686 athlon"
700 %if %{bootkernelsupport}
701 archlist="${archlist} BOOT"
708 # PrintDefine var value statements file
713 echo "#ifndef $1" >> $4
718 echo "#undef $1" >> $4
723 echo "#define $1 $2" >> $4
733 echo "#include $1" >> $4
743 # PrintRedhatKernelFix arch mp file
744 PrintRedhatKernelFix() {
758 largesmp) largesmp=1;;
762 echo "$2 not supported"
771 PrintDefine "REDHAT_FIX_H" "" ifn,def,nl $file
773 PrintDefine __BOOT_KERNEL_ENTERPRISE $ent und,def,nl $file
774 PrintDefine __BOOT_KERNEL_BIGMEM $bigmem und,def,nl $file
775 PrintDefine __BOOT_KERNEL_HUGEMEM $hugemem und,def,nl $file
776 PrintDefine __BOOT_KERNEL_SMP $smp und,def,nl $file
777 PrintDefine __BOOT_KERNEL_LARGESMP $largesmp und,def,nl $file
778 PrintDefine __BOOT_KERNEL_UP $up und,def,nl $file
779 PrintDefine __BOOT_KERNEL_BOOT $boot und,def,nl $file
780 PrintDefine __BOOT_KERNEL_BOOTSMP $bootsmp und,def,nl $file
782 PrintDefine '"/boot/kernel.h"' "" inc,nl $file # include file
784 for ar in $archlist ; do
785 if [ "$ar" = "$arch" ]; then
786 PrintDefine "__MODULE_KERNEL_$ar" "1" ifn,def,end $file
788 PrintDefine "__MODULE_KERNEL_$ar" "" und $file # undef
793 PrintDefine "" "" end $file
795 if [ %{debugspec} = 1 ] ; then
796 echo "Kernel Configuration File for Red Hat kernels:"
801 config_opts="--enable-redhat-buildsys \
802 %{?_with_bitmap_later:--enable-bitmap-later} \
803 %{?_with_bos_restricted:--enable-bos-restricted-mode} \
804 %{?_with_fast_restart:--enable-fast-restart} \
805 %{?_with_largefiles:--enable-largefile-fileserver} \
806 %{?_with_supergroups:--enable-supergroups} \
807 --enable-transarc-paths"
811 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
813 ./configure --with-afs-sysname=${sysname} \
814 --prefix=%{_prefix} \
815 --libdir=%{_libdir} \
816 --bindir=%{_bindir} \
817 --sbindir=%{_sbindir} \
819 --with-linux-kernel-headers=%{ksrcdir} \
827 # Build the libafs tree
828 make only_libafs_tree || exit 1
830 # Configure each of our kernel modules
832 %if %{fedorakmod} && %{build_modules}
833 for kvariant in %{kvariants} ; do
834 cp -R libafs_tree _kmod_build_${kvariant}
835 pushd _kmod_build_${kvariant}
836 ./configure --with-afs-sysname=${sysname} \
837 --prefix=%{_prefix} \
838 --libdir=%{_libdir} \
839 --bindir=%{_bindir} \
840 --sbindir=%{_sbindir} \
841 --with-linux-kernel-headers=%{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu} \
851 %if %{build_userspace}
852 # Build the user-space AFS stuff
853 make dest_nolibafs || exit 1
856 # Now build ka-forwarder
858 ./configure --prefix=%{_prefix} --with-krb5=%{_prefix}/kerberos \
859 --libdir=%{_libdir} \
860 --bindir=%{_bindir} \
861 --sbindir=%{_sbindir} \
862 --with-afs=`pwd`/../../${sysname}/dest/ && \
863 make all PROGS="ka-forwarder" && \
864 install -c -s ka-forwarder `pwd`/../../${sysname}/dest/etc ) \
872 for kvariant in %{kvariants}
874 pushd _kmod_build_$kvariant;
880 # Begin legacy kernel module building code
883 # Build all the kernel modules for linux 2.4.x
884 for variation in %{kvariations}
886 if [ ${variation} = up ]
888 local_smp_def=-DREDHAT_FIX
891 local_smp_def="-DAFS_SMP -DREDHAT_FIX"
895 PrintRedhatKernelFix %{_target_cpu} $variation src/config/redhat-fix.h
896 make dest_only_libafs LOCAL_SMP_DEF="${local_smp_def}" \
897 LINUX_MODULE_NAME="${suffix}" MPS=SP
900 rm -f src/config/redhat-fix.h
902 %elseif %{kvers_is_26}
903 # Build the kernel module for this version of linux 2.6.x
904 # Notice how much easier this is than 2.4. On the other hand,
905 # we require much more external support to build multiple modules.
907 # the MPS=SP just means that we don't add a '.mp' to the name.
908 make dest_only_libafs MPS=SP
911 # End legacy kernel module building code
916 ##############################################################################
920 ##############################################################################
923 export DONT_GPRINTIFY=1
925 [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
937 echo "I don't know how to build linux-`expr ${kernvers} : \(^[0-9]*[.][0-9]*\)`"
943 x86_64) sysname=amd64_linux${kv} ;;
944 alpha*) sysname=alpha_linux_${kv} ;;
945 i386|i486|i586|i686|athlon) sysname=i386_linux${kv} ;;
946 *) sysname=%{_arch}_linux${kv} ;;
950 %if %{build_userspace}
951 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
952 mkdir -p $RPM_BUILD_ROOT%{_libdir}
953 mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
954 mkdir -p $RPM_BUILD_ROOT%{initdir}
955 mkdir -p $RPM_BUILD_ROOT/etc/openafs
956 mkdir -p $RPM_BUILD_ROOT%{pamdir}
957 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/etc
958 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afs/logs
959 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/etc
960 mkdir -p $RPM_BUILD_ROOT%{_prefix}/vice/cache
961 chmod 700 $RPM_BUILD_ROOT%{_prefix}/vice/cache
962 mkdir -p $RPM_BUILD_ROOT%{_mandir}
964 # Copy files from dest to the appropriate places in BuildRoot
965 tar cf - -C ${sysname}/dest bin include | tar xf - -C $RPM_BUILD_ROOT%{_prefix}
966 tar cf - -C ${sysname}/dest/lib . | tar xf - -C $RPM_BUILD_ROOT%{_libdir}
967 tar cf - -C ${sysname}/dest/etc . | tar xf - -C $RPM_BUILD_ROOT%{_sbindir}
968 tar cf - -C ${sysname}/dest/root.server%{_prefix}/afs bin | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/afs
969 tar cf - -C ${sysname}/dest/root.client%{_prefix}/vice/etc afsd | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/vice/etc
971 # Link kpasswd to kapasswd
972 ln -f $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd
974 # Copy root.client config files
975 install -m 755 src/packaging/RedHat/openafs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openafs
976 install -m 755 src/packaging/RedHat/openafs-client.init $RPM_BUILD_ROOT%{initdir}/openafs-client
977 install -m 755 src/packaging/RedHat/openafs-server.init $RPM_BUILD_ROOT%{initdir}/openafs-server
980 install -m 755 ${sysname}/dest/lib/pam* $RPM_BUILD_ROOT%{pamdir}
983 ln -sf pam_afs.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.so
984 ln -sf pam_afs.krb.so.1 $RPM_BUILD_ROOT%{pamdir}/pam_afs.krb.so
986 # Populate /usr/vice/etc
987 uve=$RPM_BUILD_ROOT%{_prefix}/vice/etc
988 install -p -m 644 src/packaging/RedHat/openafs-ThisCell $uve/ThisCell
989 install -p -m 644 src/afsd/CellServDB $uve/CellServDB.dist
990 install -p -m 644 src/packaging/RedHat/openafs-cacheinfo $uve/cacheinfo
993 # install kernel-source
996 # Install the kernel module source tree
997 mkdir -p $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
998 tar cf - -C libafs_tree . | \
999 tar xf - -C $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/src
1001 # Next, copy the LICENSE Files, README
1002 install -m 644 src/LICENSE $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1003 install -m 644 src/packaging/RedHat/openafs-LICENSE.Sun $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1004 install -m 644 src/packaging/RedHat/openafs-README $RPM_BUILD_ROOT%{_prefix}/src/openafs-kernel-%{afsvers}/README
1007 # Install DOCUMENTATION
1010 # Build the DOC directory
1011 mkdir -p $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1012 tar cf - -C doc LICENSE html pdf | \
1013 tar xf - -C $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1014 install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1015 install -m 644 %{SOURCE11} $RPM_BUILD_ROOT/$RPM_DOC_DIR/openafs-%{afsvers}
1020 tar cf - -C doc/man-pages man1 man5 man8 | \
1021 tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1023 # Copy the uninstalled krb5 files (or delete the unused krb5 files)
1025 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/asetkey $RPM_BUILD_ROOT%{_sbindir}/asetkey
1027 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/asetkey.*
1030 # remove unused man pages
1031 for x in afs_ftpd afs_inetd afs_login afs_rcp afs_rlogind afs_rsh \
1032 dkload knfs package runntp; do
1033 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${x}.1
1036 # rename kpasswd to kapasswd
1037 mv $RPM_BUILD_ROOT%{_mandir}/man1/kpasswd.1 $RPM_BUILD_ROOT%{_mandir}/man1/kapasswd.1
1040 gzip -9 $RPM_BUILD_ROOT%{_mandir}/man*/*
1042 # create list of man pages that go in the 'openafs' package
1043 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man1 \
1044 |egrep '^afs|^fs|^kas|^klog|kapasswd|pagsh|^pts|^rxdebug|scout|^sys|tokens|translate|udebug|unlog|^uss|^vos' \
1047 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man5 \
1048 |egrep 'CellServDB|ThisCell|afsmonitor|^butc|^uss' \
1051 /bin/ls $RPM_BUILD_ROOT%{_mandir}/man8 \
1052 |egrep '^backup|^bos|^butc|^fms|^fstrace|^kas|^uss' \
1058 grep -v "^#" >openafs-file-list <<EOF-openafs-file-list
1059 %{_bindir}/afsmonitor
1067 %{_bindir}/pagsh.krb
1072 %{_bindir}/tokens.krb
1073 %{_bindir}/translate_et
1078 %{_sbindir}/copyauth
1082 %{_sbindir}/read_tape
1083 %{_sbindir}/restorevol
1088 EOF-openafs-file-list
1090 # add man pages to the list
1091 cat openafs-man1files \
1092 | ( while read x; do echo "%{_mandir}/man1/$x"; done ) \
1094 cat openafs-man5files \
1095 | ( while read x; do echo "%{_mandir}/man5/$x"; done ) \
1097 cat openafs-man8files \
1098 | ( while read x; do echo "%{_mandir}/man8/$x"; done ) \
1102 # Install compatiblity links
1104 for d in bin:bin etc:sbin; do
1105 olddir=`echo $d | sed 's/:.*$//'`
1106 newdir=`echo $d | sed 's/^.*://'`
1107 mkdir -p $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir
1108 for f in `cat openafs-file-list`; do
1109 if echo $f | grep -q /$newdir/; then
1111 ln -sf %{_prefix}/$newdir/$fb $RPM_BUILD_ROOT%{_prefix}/afsws/$olddir/$fb
1117 # Remove files we're not installing
1120 # remove duplicated files from /usr/afs/bin
1121 for f in bos fs kas klog klog.krb kpwvalid pts tokens tokens.krb udebug vos ; do
1122 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/$f
1125 # compile_et is duplicated in e2fsprogs
1126 # the rest are not needed.
1127 for f in compile_et dlog dpass install knfs livesys xstat_cm_test xstat_fs_test ; do
1128 rm -f $RPM_BUILD_ROOT%{_bindir}/$f
1131 # not supported on Linux or duplicated
1132 for f in kdb rmtsysd kpwvalid ; do
1133 rm -f $RPM_BUILD_ROOT%{_sbindir}/$f
1135 rm -f $RPM_BUILD_ROOT%{_sbindir}/kdump*
1137 # remove man pages from programs deleted above
1138 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
1139 rm -f $RPM_BUILD_ROOT%{_mandir}/man$f.*
1142 # PAM modules are doubly-installed Remove the version we don't need
1143 for f in pam_afs.krb.so.1 pam_afs.so.1 ; do
1144 rm -f $RPM_BUILD_ROOT%{_libdir}/$f
1147 # Remove empty files from the krb5 migration
1148 for f in afs2k5db fakeka ; do
1149 rm -f $RPM_BUILD_ROOT%{_sbindir}/$f
1152 %if !%{build_authlibs}
1153 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
1154 rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
1159 %if %{build_modules}
1161 for kvariant in %{kvariants}
1163 pushd _kmod_build_$kvariant
1164 srcdir=src/libafs/MODLOAD-%{kverrel}${kvariant}-SP
1165 dstdir=$RPM_BUILD_ROOT/lib/modules/%{kverrel}${kvariant}/extra/openafs
1168 install -m 744 ${srcdir}/libafs-%{kverrel}${kvariant}.ko $dstdir/openafs.ko
1172 # Install the kernel modules
1173 for variation in %{kvariations}
1175 if [ ${variation} = up ]
1178 modname=libafs-%{kernvers}${kmodend}
1180 kvar=%{kxmoddir}${variation}
1181 modname=libafs-%{kernvers}${variation}${kmodend}
1184 srcdir=${sysname}/dest/root.client%{_prefix}/vice/etc/modload
1185 dstdir=$RPM_BUILD_ROOT${kvar}/fs/openafs
1189 # Mark kernel modules as executable; otherwise they won't get stripped
1190 # by /usr/lib/rpm/brp-strip
1191 install -m 744 ${srcdir}/${modname} ${dstdir}/openafs${kmodend}
1196 ##############################################################################
1200 ##############################################################################
1202 rm -f openafs-file-list
1203 [ "$RPM_BUILD_ROOT" != "/" -a "x%{debugspec}" != "x1" ] && \
1204 rm -fr $RPM_BUILD_ROOT
1207 ##############################################################################
1211 ##############################################################################
1212 %if %{build_userspace}
1215 if [ -e %{_prefix}/afsws ]; then
1216 /bin/rm -fr %{_prefix}/afsws
1220 chkconfig --add openafs-client
1221 if [ ! -d /afs ]; then
1223 chown root.root /afs
1227 # Create the CellServDB
1228 [ -f /usr/vice/etc/CellServDB.local ] || touch /usr/vice/etc/CellServDB.local
1230 ( cd /usr/vice/etc ; \
1231 cat CellServDB.local CellServDB.dist > CellServDB ; \
1232 chmod 644 CellServDB )
1235 echo The AFS cache is configured for 100 MB. Edit the
1236 echo /usr/vice/etc/cacheinfo file to change this before
1237 echo running AFS for the first time. You should also
1238 echo set your home cell in /usr/vice/etc/ThisCell.
1240 echo Also, you may want to edit /etc/pam.d/login and
1241 echo possibly others there to get an AFS token on login.
1244 echo auth sufficient %{pamdir}/pam_afs.so try_first_pass ignore_root
1246 echo before the one for pwdb.
1250 chkconfig --add openafs-server
1251 %{initdir}/openafs-server condrestart
1253 %if %{build_authlibs}
1262 if [ $1 = 0 ] ; then
1263 [ -d /afs ] && rmdir /afs
1267 if [ $1 = 0 ] ; then
1268 %{initdir}/openafs-client stop
1269 chkconfig --del openafs-client
1273 if [ $1 = 0 ] ; then
1274 %{initdir}/openafs-server stop
1275 chkconfig --del openafs-server
1280 %if %{build_modules}
1284 /sbin/depmod -ae %{kernvers}
1287 /sbin/depmod -ae %{kernvers}
1293 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1296 /sbin/depmod -ae %{kernvers}%{?smp_ext:%{smp_ext}}
1299 %if %{largesmp_package}
1300 %post kernel-largesmp
1301 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1303 %postun kernel-largesmp
1304 /sbin/depmod -ae %{kernvers}%{?largesmp_ext:%{largesmp_ext}}
1307 %if %{bigmem_package}
1309 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1311 %postun kernel-bigmem
1312 /sbin/depmod -ae %{kernvers}%{?bigmem_ext:%{bigmem_ext}}
1315 %if %{hugemem_package}
1316 %post kernel-hugemem
1317 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1319 %postun kernel-hugemem
1320 /sbin/depmod -ae %{kernvers}%{?hugemem_ext:%{hugemem_ext}}
1326 ##############################################################################
1330 ##############################################################################
1331 %if %{build_userspace}
1333 %files -f openafs-file-list
1334 %defattr(-,root,root)
1335 %config /etc/sysconfig/openafs
1336 %doc %{_docdir}/openafs-%{afsvers}/LICENSE
1339 %defattr(-,root,root)
1340 %doc %{_docdir}/openafs-%{afsvers}
1343 %defattr(-,root,root)
1344 %dir %{_prefix}/vice
1345 %dir %{_prefix}/vice/cache
1346 %dir %{_prefix}/vice/etc
1347 %{_prefix}/vice/etc/CellServDB.dist
1348 %config %{_prefix}/vice/etc/ThisCell
1349 %config %{_prefix}/vice/etc/cacheinfo
1352 %{_prefix}/vice/etc/afsd
1353 %{pamdir}/pam_afs.krb.so.1
1354 %{pamdir}/pam_afs.krb.so
1355 %{pamdir}/pam_afs.so.1
1356 %{pamdir}/pam_afs.so
1357 %{initdir}/openafs-client
1358 %{_mandir}/man1/cmdebug.*
1359 %{_mandir}/man1/up.*
1360 %{_mandir}/man5/afs*
1361 %{_mandir}/man5/cacheinfo.*
1362 %{_mandir}/man8/afsd.*
1363 %{_mandir}/man5/CellAlias.*
1366 %defattr(-,root,root)
1368 %dir %{_prefix}/afs/bin
1369 %dir %{_prefix}/afs/etc
1370 %dir %{_prefix}/afs/logs
1371 %{_prefix}/afs/bin/bosserver
1372 %{_prefix}/afs/bin/bos_util
1373 %{_prefix}/afs/bin/buserver
1374 %{_prefix}/afs/bin/fileserver
1375 # Should we support KAServer?
1376 %{_prefix}/afs/bin/kaserver
1377 %{_prefix}/afs/bin/ka-forwarder
1378 %{_prefix}/afs/bin/pt_util
1379 %{_prefix}/afs/bin/ptserver
1380 %{_prefix}/afs/bin/salvager
1381 %{_prefix}/afs/bin/upclient
1382 %{_prefix}/afs/bin/upserver
1383 %{_prefix}/afs/bin/vlserver
1384 %{_prefix}/afs/bin/volinfo
1385 %{_prefix}/afs/bin/volserver
1386 %{_sbindir}/kadb_check
1387 %{_sbindir}/prdb_check
1388 %{_sbindir}/vldb_check
1389 %{_sbindir}/vldb_convert
1391 %{initdir}/openafs-server
1392 %{_mandir}/man5/AuthLog.*
1393 %{_mandir}/man5/BackupLog.*
1394 %{_mandir}/man5/BosConfig.*
1395 %{_mandir}/man5/BosLog.*
1396 %{_mandir}/man5/FORCESALVAGE.*
1397 %{_mandir}/man5/FileLog.*
1398 %{_mandir}/man5/KeyFile.*
1399 %{_mandir}/man5/NetInfo.*
1400 %{_mandir}/man5/NetRestrict.*
1401 %{_mandir}/man5/NoAuth.*
1402 %{_mandir}/man5/SALVAGE.fs.*
1403 %{_mandir}/man5/SalvageLog.*
1404 %{_mandir}/man5/sysid.*
1405 %{_mandir}/man5/UserList.*
1406 %{_mandir}/man5/VLLog.*
1407 %{_mandir}/man5/VolserLog.*
1408 %{_mandir}/man5/bdb.DB0.*
1409 %{_mandir}/man5/fms.log.*
1410 %{_mandir}/man5/kaserver.DB0.*
1411 %{_mandir}/man5/kaserverauxdb.*
1412 %{_mandir}/man5/prdb.DB0.*
1413 %{_mandir}/man5/salvage.lock.*
1414 %{_mandir}/man5/tapeconfig.*
1415 %{_mandir}/man5/vldb.DB0.*
1416 %{_mandir}/man8/buserver.*
1417 %{_mandir}/man8/fileserver.*
1418 %{_mandir}/man8/kadb_check.*
1419 %{_mandir}/man8/ka-forwarder.*
1420 %{_mandir}/man8/prdb_check.*
1421 %{_mandir}/man8/ptserver.*
1422 %{_mandir}/man8/pt_util.*
1423 %{_mandir}/man8/salvager.*
1424 %{_mandir}/man8/upclient.*
1425 %{_mandir}/man8/upserver.*
1426 %{_mandir}/man8/vldb_check.*
1427 %{_mandir}/man8/vlserver.*
1428 %{_mandir}/man8/voldump.*
1429 %{_mandir}/man8/volinfo.*
1430 %{_mandir}/man8/volserver.*
1431 #%{_mandir}/man8/vldb_convert.*
1433 %if %{build_authlibs}
1435 %defattr(-,root,root)
1436 %{_libdir}/libafsauthent.so.*
1437 %{_libdir}/libafsrpc.so.*
1440 %files authlibs-devel
1441 %defattr(-,root,root)
1442 %{_libdir}/libafsauthent.a
1443 %{_libdir}/libafsrpc.a
1444 %if %{build_authlibs}
1445 %{_libdir}/libafsauthent.so
1446 %{_libdir}/libafsrpc.so
1450 %defattr(-,root,root)
1453 %{_includedir}/des.h
1454 %{_includedir}/des_conf.h
1455 %{_includedir}/des_odd.h
1456 %{_includedir}/des_prototypes.h
1457 %{_includedir}/lock.h
1458 %{_includedir}/lwp.h
1459 %{_includedir}/mit-cpyright.h
1460 %{_includedir}/potpourri.h
1461 %{_includedir}/preempt.h
1463 %{_includedir}/timer.h
1464 %{_includedir}/ubik.h
1465 %{_includedir}/ubik_int.h
1470 %{_libdir}/librxkad.a
1471 %{_libdir}/librxstat.a
1472 %{_libdir}/libubik.a
1473 %{_mandir}/man1/rxgen.*
1475 %files kernel-source
1476 %defattr(-,root,root)
1477 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.IBM
1478 %{_prefix}/src/openafs-kernel-%{afsvers}/LICENSE.Sun
1479 %{_prefix}/src/openafs-kernel-%{afsvers}/README
1480 %{_prefix}/src/openafs-kernel-%{afsvers}/src
1483 %defattr(-,root,root)
1487 %defattr(-,root,root)
1493 %defattr(-,root,root)
1496 %{_sbindir}/ka-forwarder
1497 %{_mandir}/man1/aklog.*
1498 %{_mandir}/man8/asetkey.*
1503 %if %{build_modules}
1508 %defattr(-,root,root)
1509 %{kxmoddir}/fs/openafs/openafs.*
1514 %defattr(-,root,root)
1515 %{kxmoddir}%{?smp_ext:%{smp_ext}}/fs/openafs/openafs.*
1518 %if %{largesmp_package}
1519 %files kernel-largesmp
1520 %defattr(-,root,root)
1521 %{kxmoddir}%{?largesmp_ext:%{largesmp_ext}}/fs/openafs/openafs.*
1524 %if %{bigmem_package}
1525 %files kernel-bigmem
1526 %defattr(-,root,root)
1527 %{kxmoddir}%{?bigmem_ext:%{bigmem_ext}}/fs/openafs/openafs.*
1530 %if %{hugemem_package}
1531 %files kernel-hugemem
1532 %defattr(-,root,root)
1533 %{kxmoddir}%{?hugemem_ext:%{hugemem_ext}}/kernel/fs/openafs/openafs.*
1539 ##############################################################################
1541 ### openafs.spec change log
1543 ##############################################################################
1545 * Wed Oct 10 2007 Simon Wilkinson <simon@sxw.org.uk> 1.4.5pre1-1
1546 - Use Fedora style kmods, which allows us to install multiple kernel types
1548 * Thu Jun 07 2007 Simon Wilkinson <simon@sxw.org.uk> 1.4.4-3
1549 - Use distributed files, rather than those in packager's SOURCE directory
1550 - Remove SuidCells stuff, which was unused
1552 * Fri Dec 01 2006 Derrick Brashear <shadow@dementia.org> 1.4.2-2
1553 - integrate s390x changes
1554 - allow for building libafs*.a and not libafs*.so into packages, for platforms
1555 that won't build the .so files.
1557 * Wed Aug 23 2006 Derrick Brashear <shadow@dementia.org> 1.4.2-1
1559 - use installed aklog manpage.
1560 - moduleparam patch obsoleted.
1562 * Tue Aug 22 2006 Derek Atkins <warlord@MIT.EDU> 1.4.2-0.1.rc1
1563 - update to 1.4.2-rc1
1564 - hand-apply lee damon's changes to support largesmp kernels from RHEL4
1565 (but only add support for 2.6 kernels. No need for the 2.4 kernels).
1566 - don't need the posixlock patch anymore.
1568 * Wed Jul 12 2006 Derek Atkins <warlord@MIT.EDU> 1.4.2-0.beta2
1569 - update to 1.4.2-beta2
1570 - add linux2.4 posixlock API patch
1572 * Mon Jun 26 2006 Derek Atkins <warlord@MIT.EDU>
1573 - moduleparam and krb524 patches no longer required in OA-CVS
1575 * Wed May 17 2006 Derek Atkins <warlord@MIT.EDU>
1576 - change non-target-cpu kernel dep to a file dep
1577 - make sure we use the proper kernel version for the dependency.
1579 * Tue May 16 2006 Derek Atkins <warlord@MIT.EDU>
1580 - allow users to specify local CellServDB and SuidCells entries
1581 don't overwrite user's changes. Provide a .dist an let users
1582 make entries in a ".local"
1583 - build the CellServDB and SuidCells at client startup and at
1585 - add provideskernelarch functionality to openafs-kvers-is.sh
1586 - use that functionality to Require kernel{,-<type>}-targetcpu
1587 to get better package safety due to RPM bugs where the kernel
1588 release isn't used so you can install the kernel module against
1589 any kernel of the same major version.
1591 * Mon May 15 2006 Derek Atkins <warlord@MIT.EDU>
1592 - update the README in openafs-kernel-source
1593 - fix openafs-kvers-is.sh from Alexander Bergolth's patch.
1594 - move kernel module from .../kernel/fs/openafs to .../fs/openafs/
1596 * Fri Apr 21 2006 Derek Atkins <warlord@MIT.EDU>
1597 - build requires autoconf and automake for krb5support
1598 and autoconf for standard package
1599 - dont setup the krb5 migration kit (or patches) if we don't care.
1600 - require ncurses-devel to build
1602 * Wed Apr 19 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1-3
1603 - look for krb524 functions in libkrb524 if we can't find them
1604 in the standard locations.
1606 * Tue Apr 18 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1-2
1607 - fix the module_param_array macro for Linux 2.6.9.
1609 * Sat Apr 15 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1-1
1610 - update to 1.4.1 release.
1611 - distribute asetkey from openafs instead of krb5-migration kit
1612 - don't need to apply the FC5 patches because they are part of the distro.
1613 - install asetkey into the "proper" place
1614 - dont list a manpage twice.
1615 - package asetkey man page. delete it when not needed.
1617 * Thu Apr 6 2006 Derek Atkins <warlord@MIT.EDU>
1618 - turn authlibs back on, because RT #18767 was applied to CVS.
1620 * Wed Mar 29 2006 Derek Atkins <warlord@MIT.EDU> 1.4.1rc10-1
1621 - update to 1.4.1rc10, build on FC5
1622 - fix the man pages (distribute into various packages)
1623 - include patches for FC5, RT #29112 and #29122
1625 * Mon Dec 19 2005 Derek Atkins <warlord@MIT.EDU>
1626 - openafs-server shouldn't depend on the kernel module.
1628 * Thu Nov 17 2005 Derek Atkins <warlord@MIT.EDU>
1629 - patch from Mike Polek <mike at pictage.com> to run depmod for
1630 the target kernel and not the running kernel.
1632 * Tue Nov 8 2005 Derek Atkins <warlord@MIT.EDU>
1633 - build aklog from the openafs sources, not from the krb5 migration kit.
1635 * Fri Nov 4 2005 Derek Atkins <warlord@MIT.EDU>
1636 - set openafs-kernel-source to Provide openafs-kernel
1638 * Thu Oct 20 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0-1
1639 - update afs-krb5 res_search patch: look for res_search and __res_search
1640 - update to 1.4.0 final
1642 * Mon Oct 10 2005 Derek Atkins <warlord@MIT.EDU>
1643 - remove all kdump builds.
1645 * Thu Oct 6 2005 Derek Atkins <warlord@MIT.EDU>
1646 - fix openafs-kernel-version.sh so it will build an RPM for the
1647 currently-running kernel even if it's smp on 2.6.
1649 * Tue Sep 27 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc5-1
1650 - upgrade to 1.4.0rc5
1651 - turn off authlibs packages
1653 * Fri Sep 23 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-2
1654 - add kmodule26 patch: fix the kernel module name on 2.6 kernels so
1655 it's called "openafs" and not "libafs". This fixes the shutdown
1658 * Thu Sep 22 2005 Derek Atkins <warlord@MIT.EDU>
1659 - update kversis script, add 'kvers' operation
1660 - fix bug that 2.6 smp/hugemem kernels don't provide
1661 kernel-foo = %{kernvers} with 'smp', 'hugemem', etc.
1662 - add patch to remove res_search from the afs-krb5 configure
1664 * Thu Sep 15 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc4-1
1665 - Update to 1.4.0rc4
1666 - Update the afs-krb5 krb524 patch so it actually works on
1667 some older systems like RHEL3 that still need -lkrb524.
1668 - Update the buildall script so choose better architecture support,
1669 e.g. don't build i586 on RHEL.
1670 - Update the rebuild information in the SPEC file.
1671 - Add support for finding .EL kernels in openafs-kvers-is.sh
1672 - Add additional error messages when kernel version/type parsing fails.
1673 - Update the buildall script to use the kernel srcdir directly.
1675 * Wed Sep 14 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-2
1676 - Add "hugemem" to 2.4 configs
1677 - Add checks to support scripts to determine whether to build
1678 the bigmem and/or hugemem kernels for 2.4.
1680 * Mon Sep 12 2005 Derek Atkins <warlord@MIT.EDU> 1.4.0rc3-1
1681 - Added some afs-krb5 patches to get the migration kit to build
1682 on modern AFS and modern Kerberos.
1683 - Added authlibs and authlibs-devel packages as per UMich changes.
1685 * Sun Sep 11 2005 Derek Atkins <warlord@MIT.EDU>
1686 - Merged in some of the 2.6 changes from wingc@engin.umich.edu
1688 * Sat Sep 10 2005 Derek Atkins <warlord@MIT.EDU>
1689 - Merged in lots of changes from David Howells and Nalin Dahyabhai
1690 from Red Hat. Initial attempt at a release of 1.4. Still need
1691 to work in a 2.6 build system.