fetchindex questions.

Andrey Slusar anray at inet.ua
Mon Nov 22 14:58:42 PST 2004


Hi,

why ${INDEXFILE} is downloading only from http://www.FreeBSD.org/ports/ ?

May by this:
--8<---------------cut here---------------start------------->8---
--- ports/Makefile.orig	Tue Nov 23 00:04:27 2004
+++ ports/Makefile	Tue Nov 23 00:06:05 2004
@@ -71,9 +71,10 @@
 	@cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE}
 
 fetchindex:
-	@cd ${.CURDIR} && ${FETCHINDEX} http://www.FreeBSD.org/ports/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE}
+	@cd ${.CURDIR} && ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE}
 
 FETCHINDEX?=	fetch -am
+MASTER_SITE_INDEX?=	http://www.FreeBSD.org/ports
 INDEX_JOBS?=	2
 
 .if !defined(INDEX_VERBOSE)
--8<---------------cut here---------------end--------------->8---
Is a more likely?

-- 
 Andrey Slusar.


More information about the freebsd-ports mailing list