From: W. Trevor King Date: Fri, 21 Feb 2014 05:36:38 +0000 (-0800) Subject: contrib/openrc/init.d/package-cache: Don't include 'distfiles' in source X-Git-Tag: v0.1~2 X-Git-Url: http://git.tremily.us/?p=package-cache.git;a=commitdiff_plain;h=4287acbfac0a62adb113088b614e87231dd06813 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. --- 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