From e7a152f6122264906849b830c8b08e9d0ea1cd4d Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 11 Feb 2006 02:26:30 +0000 Subject: [PATCH] - 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 [1], Alexander Logvinov [2] --- Makefile | 6 +++--- 1 file 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; \