[OpenAFS] Re: OpenAFS for RedHat Linux Enterprise

Troy Dawson dawson@fnal.gov
Fri, 09 Jan 2004 14:19:04 -0600


Derek Atkins wrote:
> Any chance you could "diff -u"?  It's much much MUCH easier to read..
> 
> -derek
> 

Sure

# diff -u fedora.openafs-1.2.10.spec LTS.openafs-1.2.10.spec
--- fedora.openafs-1.2.10.spec  2004-01-09 11:11:02.000000000 -0600
+++ LTS.openafs-1.2.10.spec     2004-01-09 11:12:55.000000000 -0600
@@ -1,10 +1,10 @@
  %define afsvers 1.2.10
-%define pkgrel 1
+%define pkgrel 3

  # Define your particular Red Hat and kernel versions:
  #      For Linux 2.4:  24
  #
-%define osvers fd1.0
+%define osvers LTS3.0
  %define kernvers 24

  # This is where to look for kernel-build includes files.
@@ -27,12 +27,12 @@
  # Set 'enterprisekernelsupport' to 1 if you want to build the
  # kernel module for the enterprise kernel
  # Note: This will only work for kernvers == 24 on i686
-%define enterprisekernelsupport 0
+%define enterprisekernelsupport 1

  # Set 'bigmemkernelsupport' to 1 if you want to build the
  # kernel module for the bigmem kernel
  # Note: This will only work for kernvers == 24 on i686
-%define bigmemkernelsupport 0
+%define bigmemkernelsupport 1

  # Set 'krb5support' to 1 if you want to build the openafs-krb5 package
  # to distribute aklog and asetkey
@@ -76,7 +76,7 @@
  Source2: openafs-ThisCell
  # http://grand.central.org/dl/cellservdb/CellServDB
  Source3: openafs-CellServDB
-Source4: openafs-SuidCells
+#Source4: openafs-SuidCells
  Source5: openafs-cacheinfo
  Source6: openafs-afsmodname
  Source7: openafs-LICENSE.Sun
@@ -86,7 +86,7 @@

  Source20: openafs-krb5-2.0.tar.gz

-Patch0: openafs-%{afsvers}-rc.patch
+#Patch0: openafs-%{afsvers}-rc.patch

  %description
  The AFS distributed filesystem.  AFS is a distributed filesystem
@@ -223,7 +223,7 @@
  %setup -q -b 1
  %setup -q -T -D -a 20

-%patch0 -p0 -b .rc
+#%patch0 -p0 -b .rc

  ###
  ### build
@@ -303,7 +303,6 @@
      smp=0
      ent=0
      bm=0
-    hm=0
      if [ "$2" = "MP" ]; then
         smp=1
      elif [ "$2" = "EP" ]; then
@@ -338,7 +337,6 @@

      PrintDefine "__BOOT_KERNEL_ENTERPRISE" $ent und,def,nl $file
      PrintDefine "__BOOT_KERNEL_BIGMEM" $bm und,def,nl $file
-    PrintDefine "__BOOT_KERNEL_HUGEMEM" $hm und,def,nl $file
      PrintDefine "__BOOT_KERNEL_SMP" $smp und,def,nl $file
      PrintDefine "__BOOT_KERNEL_UP" $up und,def,nl $file
      PrintDefine "__BOOT_KERNEL_BOOT" $boot und,def,nl $file
@@ -451,11 +449,9 @@
  (cd afs-krb5/src &&
         ./configure --prefix=/usr --with-krb5=/usr/kerberos \
             --with-afs=`pwd`/../../${sysname}/dest/ && \
-       make all PROGS="asetkey aklog ka-forwarder" \
-                 KRB524LIB= AKLOG_EXTRA_OBJ= && \
+       make all PROGS="asetkey aklog ka-forwarder" && \
         touch afs2k5db && touch fakeka && \
         make install PROGS="asetkey aklog ka-forwarder" \
-            KRB524LIB= AKLOG_EXTRA_OBJ= \
             DESTDIR=`pwd`/../../${sysname}/dest/ INSTALL_BIN=/bin \
             INSTALL_SBIN=/etc) || exit 1
  %endif
@@ -513,7 +509,7 @@
  # Populate /usr/vice/etc
  uve=$RPM_BUILD_ROOT/usr/vice/etc
  install -p -m 644 $RPM_SOURCE_DIR/openafs-CellServDB $uve/CellServDB
-install -p -m 644 $RPM_SOURCE_DIR/openafs-SuidCells $uve/SuidCells
+#install -p -m 644 $RPM_SOURCE_DIR/openafs-SuidCells $uve/SuidCells
  install -p -m 644 $RPM_SOURCE_DIR/openafs-ThisCell $uve/ThisCell
  install -p -m 644 $RPM_SOURCE_DIR/openafs-cacheinfo $uve/cacheinfo
  install -p -m 755 $RPM_SOURCE_DIR/openafs-afsmodname $uve/afsmodname
@@ -630,21 +626,6 @@
         chmod 0755 /afs
  fi

-echo
-echo The AFS cache is configured for 100 MB. Edit the
-echo /usr/vice/etc/cacheinfo file to change this before
-echo running AFS for the first time. You should also
-echo set your home cell in /usr/vice/etc/ThisCell.
-echo
-echo Also, you may want to edit /etc/pam.d/login and
-echo possibly others there to get an AFS token on login.
-echo Put the line:
-echo
-echo    auth      sufficient   /lib/security/pam_afs.so try_first_pass 
ignore_root
-echo
-echo before the one for pwdb.
-echo
-
  %post server
  if [ -f /etc/sysconfig/afs ] ; then
         srv=`grep ^AFS_SERVER /etc/sysconfig/afs | sed 
's/^AFS_SERVER[\s]*=[\s]*//'`
@@ -680,7 +661,7 @@
  %dir /usr/vice/etc
  %dir /usr/vice/etc/modload
  %config /usr/vice/etc/CellServDB
-%config /usr/vice/etc/SuidCells
+#%config /usr/vice/etc/SuidCells
  %config /usr/vice/etc/ThisCell
  %config /usr/vice/etc/cacheinfo
  /usr/bin/cmdebug


>>
>>Mine is at release 3, it took me 3 times to get it here
>>
>>It is called LTS 3.0 (to match the enterprise 3.0 naming)
>>
>>The enterprise and bigmem kernel support, was one of the leftover from
>>the RedHat 9 spec file I was using.  I had just decided to leave it
>>because, after all, this was an enterprise kernel, and we were using
>>big memory.
>>
>>I never have liked the SuidCells thing, at least for my site, so I
>>always take it out.
>>
>>I comment out the rc patch.  I have made some minor changes to the
>>startup script, so I actually put in that patch by hand, and then put
>>in my own.  My change checks more than just that the network up, it
>>actually does a 'wget' ping of port 7000 of the server.  But I don't
>>change anything dealing with what kernel get's loaded.
>>
>>This next batch of differences, there was a difference between the two
>>spec files, and I left it the way it was with my old one.
>>
>>Again, the SuidCell thing
>>
>>I take out the comment that get's said.  Those things are already set
>>for my users.
>>
>>And again, the SuidCell thing.
>>

-- 
__________________________________________________
Troy Dawson  dawson@fnal.gov  (630)840-6468
Fermilab  ComputingDivision/CSS  CSI Group
__________________________________________________