From f052583ddb232f60f313da7118a902feb22840b9 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 18 Oct 2007 05:07:13 +0000 Subject: [PATCH] STABLE14-redhat-packaging-updates-20071018 make the buildall script know centos and new fedora; make the spec file include it (cherry picked from commit bc1cc5a65b4096d8d489c1d20e0cb3a6f8b5b556) --- src/packaging/RedHat/openafs-buildall.sh | 7 +++++++ src/packaging/RedHat/openafs.spec.in | 1 + 2 files changed, 8 insertions(+) diff --git a/src/packaging/RedHat/openafs-buildall.sh b/src/packaging/RedHat/openafs-buildall.sh index 305405d4b2..e87fc276bd 100755 --- a/src/packaging/RedHat/openafs-buildall.sh +++ b/src/packaging/RedHat/openafs-buildall.sh @@ -21,10 +21,17 @@ buildopts= if [ `echo $rhrel | grep -c 'Fedora Core'` = 1 ] ; then ostype='fc' osrel=`echo $rhrel | sed -e 's/^.*release \([^ ]*\).*$/\1/' -e 's/\.//g'` +elif [ `echo $rhrel | grep -c 'Fedora'` = 1 ] ; then + ostype='fc' + osrel=`echo $rhrel | sed -e 's/^.*release \([^ ]*\).*$/\1/' -e 's/\.//g'` elif [ `echo $rhrel | grep -c 'Red Hat Enterprise Linux'` = 1 ] ; then ostype='rhel' excludearch=i586 osrel=`echo $rhrel | sed -e 's/^.*release \([^ ]*\).*$/\1/' -e 's/\.//g'` +elif [ `echo $rhrel | grep -c 'CentOS'` = 1 ] ; then + ostype='rhel' + excludearch=i586 + osrel=`echo $rhrel | sed -e 's/^.*release \([^ ]*\).*$/\1/' -e 's/\.//g'` elif [ `echo $rhrel | grep -c 'Red Hat Linux'` = 1 ] ; then ostype='rh' osrel=`echo $rhrel | sed -e 's/^.*release \([^ ]*\).*$/\1/' -e 's/\.//g'` diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index 8d89f663bb..47893a5086 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -244,6 +244,7 @@ Source10: http://www.openafs.org/dl/openafs/%{afsvers}/RELNOTES-%{afsvers} Source11: http://www.openafs.org/dl/openafs/%{afsvers}/ChangeLog Source30: openafs-kernel-version.sh +Source998: openafs-buildall.sh Source999: kmodtool Patch0: openafs-1.4.0-kmodule26.patch