Proposed patch to inform users of fetchindex

Charles Swiger cswiger at
Mon Jan 31 16:34:29 PST 2005

On Jan 31, 2005, at 7:13 PM, Adam Weinberger wrote:
> That said, I'd also be okay with having 'make index' do the same thing 
> as 'make fetchindex', and have the current 'make index' behaviour be 
> moved to a new target called 'make buildindex'.

Adam's made an excellent point here, so how about something like:

--- Makefile.orig       Mon Dec 20 13:21:54 2004
+++ Makefile    Mon Jan 31 19:29:39 2005
@@ -66,6 +66,22 @@
  .include <>

+       @${ECHO} 'Building the index file for the ports collection is a 
complex task, which'
+       @${ECHO} 'may take anywhere from several minutes to an hour or 
longer to complete.'
+       @${ECHO} 'If you do not have a complete, up-to-date ports 
collection, building the'
+       @${ECHO} 'index will fail.  Please be sure you are not using a 
cvsup refuse file.'
+       @${ECHO} ''
+       @${ECHO} 'If are certain you want to build your own index, hit 
Cntl-C now and use:'
+       @${ECHO} ''
+       @${ECHO} '     make buildindex'
+       @${ECHO} ''
+       @${ECHO} '...instead.  However, most users prefer to use "make 
fetchindex", which'
+       @${ECHO} 'will download the latest working version of the index 
+       @${ECHO} ''
+       @sleep 3
+       make fetchindex
         @rm -f ${.CURDIR}/${INDEXFILE}
         @cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE}


More information about the freebsd-ports mailing list