Portage will request ${MIRROR}/distfiles/${FILENAME}, so we don't want
the 'distfiles' part in the source directory. With the shift, we can
also use a single cache for both source (distfiles) and binary
packages (PKGDIR, which defaults to /usr/portage/packages) if there
are any binary packages on the upstream mirror.
PC_USER="${PC_USER:-package-cache}"
PC_GROUP="${PC_GROUP:-portage}"
-CACHE_DIR="${CACHE_DIR:-/usr/portage/distfiles}"
+CACHE_DIR="${CACHE_DIR:-/usr/portage}"
HOST="${HOST:-0.0.0.0}"
PORT="${PORT:-4000}"
-SOURCES="${SOURCES:-http://distfiles.gentoo.org/distfiles}"
+SOURCES="${SOURCES:-http://distfiles.gentoo.org}"
SOURCE_OPTS=()
for SOURCE in ${SOURCES}
do