[Lunar-commits] CVS: moonbase/zbeta/openafs-driver-devel BUILD, NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1

Jerry Lundström prox at lunar-linux.org
Wed Nov 17 15:41:00 UTC 2004


Update of /var/cvs/lunar/moonbase/zbeta/openafs-driver-devel
In directory espresso.foo-projects.org:/tmp/cvs-serv19518/openafs-driver-devel

Added Files:
	BUILD DEPENDS DETAILS POST_INSTALL 
Log Message:
added developer version of openafs, this works on both 2.4 and 2.6

--- NEW FILE: BUILD ---
(
  patch_it $SOURCE2 1 &&
  ./regen.sh &&

  case `uname -s -r` in
    [lL]inux\ 2.4.*) OPTS="$OPTS --with-afs-sysname=i386_linux24"
      ;;
    [lL]inux\ 2.6.*) OPTS="$OPTS --with-afs-sysname=i386_linux26"
      ;;
    *) message "Unsupported OS!"
      exit -1
      ;;
  esac

  if [ ! -e /lib/modules/`uname -r`/build/include/linux/version.h ]; then
    message "Can't find '/lib/modules/`uname -r`/build/include/linux/version.h'!"
    message "You need to have the source for your running kernel online and configured!"
    exit -1
  fi
  OPTS="$OPTS --with-linux-kernel-headers=/lib/modules/`uname -r`/build"

  ./configure 	--prefix=/usr			\
		--sysconfdir=/usr/vice/etc	\
		--localstatedir=/var		\
		--infodir=/usr/share/info	\
		--mandir=/usr/share/man		\
		$OPTS				&&
  make dest_only_libafs &&
  prepare_install

) > $C_FIFO 2>&1
  

--- NEW FILE: DEPENDS ---
depends openafs-devel
--- NEW FILE: DETAILS ---
          MODULE=openafs-driver-devel
         VERSION=1.3.74
          SOURCE=openafs-$VERSION-src.tar.bz2
         SOURCE2=openafs-1.3.74-paths.patch.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/openafs-$VERSION
      SOURCE_URL=http://www.openafs.org/dl/openafs/$VERSION/
      SOURCE_VFY=sha1:4dea22f85a01c28cf745e58867c0c29a3ff49e68
     SOURCE2_URL=$PATCH_URL/
     SOURCE2_VFY=sha1:aef2250a5a9472cffbf02634604c63afd5586fa7
        WEB_SITE=http://www.openafs.org/
         ENTERED=20041117
         UPDATED=20041117
      MAINTAINER="prox at lunar-linux.org ratler at lunar-linux.org"
           SHORT="OpenAFS kernel module development version"
           PSAFE="no"
cat << EOF
OpenAFS kernel module. AFS is a distributed filesystem allowing
cross-platform sharing of files among multiple computers. Facilities
are provided for access control, authentication, backup and
adminsitrative management.
EOF

--- NEW FILE: POST_INSTALL ---
if [ ! -d /usr/vice/etc/modload ]; then
  mkdir -p /usr/vice/etc/modload
fi

case `uname -s -r` in
  [lL]inux\ 2.4.*) install -m 644 $SOURCE_DIRECTORY/i386_linux24/dest/root.client/usr/vice/etc/modload/*.o /usr/vice/etc/modload
    ;;
  [lL]inux\ 2.6.*) for mod in $SOURCE_DIRECTORY/i386_linux26/dest/root.client/usr/vice/etc/modload/*.ko; do
      install -m 644 $mod /usr/vice/etc/modload || exit -1
      ln -s `basename $mod` /usr/vice/etc/modload/`basename $mod .ko`.o
    done
    ;;
esac



More information about the Lunar-commits mailing list