# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 09 May 2008; Andrew Gaffney <agaffney@gentoo.org> gen_funcs.sh, genkernel,
+ genkernel.conf:
+ Move distfile cache to /var/cache/genkernel/src and add check to make sure
+ all distfiles are present
+
09 May 2008; Chris Gianelloni <wolf31o2@gentoo.org> alpha/modules_load,
ia64/modules_load, mips/modules_load, parisc/modules_load,
parisc64/modules_load, ppc/modules_load, ppc64/modules_load,
eval ${CfgVar}=\"${Result}\"
}
+check_distfiles() {
+ for i in $BUSYBOX_SRCTAR $DEVICE_MAPPER_SRCTAR $LVM_SRCTAR $DMRAID_SRCTAR $E2FSPROGS_SRCTAR
+ do
+ if [ ! -f "${i}" ]
+ then
+ small_die "Could not find source tarball ${i}. Please refetch."
+ fi
+ done
+}
setup_cache_dir
+check_distfiles
+
dump_debugcache
NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..."
GK_SHARE="/usr/share/genkernel"
# Location of the default cache
-CACHE_DIR="/var/cache/genkernel/%%ARCH%%"
+CACHE_DIR="/var/cache/genkernel"
# Location of DISTDIR, where our source tarballs are stored
-DISTDIR="/usr/portage/distfiles"
+DISTDIR="${CACHE_DIR}/src"
# Log output file
LOGFILE="/var/log/genkernel.log"
# Debug Level