Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2004 00:10:36 +0200
From:      Andrey Slusar <anray@inet.ua>
To:        freebsd-ports@freebsd.org
Subject:   fetchindex questions.
Message-ID:  <86y8gty1pf.fsf@santinel.home.ua>

next in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86y8gty1pf.fsf>