From 4287acbfac0a62adb113088b614e87231dd06813 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Feb 2014 21:36:38 -0800 Subject: [PATCH] contrib/openrc/init.d/package-cache: Don't include 'distfiles' in source 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. --- contrib/openrc/init.d/package-cache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/openrc/init.d/package-cache b/contrib/openrc/init.d/package-cache index d8a9a97..e7c75bd 100755 --- a/contrib/openrc/init.d/package-cache +++ b/contrib/openrc/init.d/package-cache @@ -2,10 +2,10 @@ 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 -- 2.26.2