The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: Searching the ports
Author: parv 
Date:   22-02-02 10:34

that works as long as one adjusts the INDEX for $PORTSDIR other than /usr/ports. if one has installed ports tree other than in /usr/ports -- like i have in /source/ports -- then to fix the INDEX (assumming perl is available) there are two ways.

1- brute force (in case you always download the INDEX during cvsup)...

perl -pi -e 's#/usr/ports#/source/ports#go' /source/ports/INDEX

2- the "right way" would be to fix the perl program which generates the INDEX, and afterwords run "make index" in $PORTSDIR (in my case it's /source/ports)...

perl -pi -e 's#/usr/ports#/source/ports#go' /source/ports/Tools/make_index
cd /source/ports && make index

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Searching the ports   new
William Cooper 21-02-02 14:06 
 Re: Searching the ports   new
parv 22-02-02 10:34 
 Re: Searching the ports   new
Benjamin Lutz 09-04-02 02:48 
 Re: Searching the ports   new
parv 15-04-02 07:00 
 Re: Searching the ports   new
parv 15-04-02 07:05 
 Re: Searching the ports   new
el_kab0ng 19-09-05 18:09 
 Re: Searching the ports   new
Dan 19-09-05 18:31 
 Re: Searching the ports   new
el_kab0ng 19-09-05 18:38 
 Re: Searching the ports   new
parv 19-09-05 23:09 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum