commit 507eddf597305bac7c8b5db3ad1d89a2f2a019cf Author: Matthew Ogilvie Date: Sun Dec 28 18:33:52 2014 -0700 add --header="X-unique-cache-name: $FILE" to default FETCHCOMMAND If a cache like http-replicator recognizes this header, then it can use the ebuild-specified unique name instead of the filename part of URL to cache the file, which works better if the URL is not unique (changes over time, or is only unique in the directory portion). For example, helps with caching adobe-flash packages. See gentoo bug # 442874 diff --git a/cnf/make.globals b/cnf/make.globals index 013c556..716be90 100644 --- a/cnf/make.globals +++ b/cnf/make.globals @@ -36,8 +36,8 @@ RPMDIR="/usr/portage/rpm" PORTAGE_TMPDIR="/var/tmp" # Fetching command (3 tries, passive ftp for firewall compatibility) -FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\"" -RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\"" +FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" --header=\"X-unique-cache-name: \${FILE}\" \"\${URI}\"" +RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" --header=\"X-unique-cache-name: \${FILE}\" \"\${URI}\"" FETCHCOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\"" RESUMECOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\""