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