aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2006-02-11 02:26:30 +0000
committerKris Kennaway <kris@FreeBSD.org>2006-02-11 02:26:30 +0000
commite7a152f6122264906849b830c8b08e9d0ea1cd4d (patch)
treedeed576e5b20fa995f95826385a207c8e0763a0a /Makefile
parent9390a0bd481c907f61fd02e8cf234224bb0feae9 (diff)
downloadports-e7a152f6122264906849b830c8b08e9d0ea1cd4d.tar.gz
ports-e7a152f6122264906849b830c8b08e9d0ea1cd4d.zip
- Fix the make_index script if PORTSDIR is a path which contains a
symlink. [1] - Allow use of alternate http download utilities with 'make fetchindex'. [2] PR: ports/35767 [1], ports/92588 [2] Submitted by: Peter Jeremy <PeterJeremy at optushome dot com dot au> [1], Alexander Logvinov <user at blg dot akavia dot ru> [2]
Notes
Notes: svn path=/head/; revision=155689
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 47660f454e69..3f52d8b7dd4a 100644
--- a/Makefile
+++ b/Makefile
@@ -76,11 +76,11 @@ fetchindex: ${INDEXDIR}/{INDEXFILE}.bz2
chmod a+r ${INDEXDIR}/${INDEXFILE}
${INDEXDIR}/{INDEXFILE}.bz2: .PHONY
- @${FETCHINDEX} -o ${INDEXDIR}/${INDEXFILE}.bz2 ${MASTER_SITE_INDEX}${INDEXFILE}.bz2
+ @${FETCHINDEX} ${INDEXDIR}/${INDEXFILE}.bz2 ${MASTER_SITE_INDEX}${INDEXFILE}.bz2
MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/
SETENV?= /usr/bin/env
-FETCHINDEX?= ${SETENV} ${FETCH_ENV} fetch -am
+FETCHINDEX?= ${SETENV} ${FETCH_ENV} fetch -am -o
INDEX_JOBS?= 2
.if !defined(INDEX_VERBOSE)
@@ -122,7 +122,7 @@ ${INDEXDIR}/${INDEXFILE}:
echo; \
fi; \
exit 1); \
- cat $${tmpdir}/${INDEXFILE}.desc.* | perl ${.CURDIR}/Tools/make_index | \
+ cat $${tmpdir}/${INDEXFILE}.desc.* | (cd ${.CURDIR} ; perl ${.CURDIR}/Tools/make_index) | \
sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' -e 's./..g' | \
sort -t '|' +1 -2 | \
sed -e 's../.g' > ${INDEXDIR}/${INDEXFILE}.tmp; \