CFT: New version of portmaster in svn
jhell
jhell at dataix.net
Sat Jul 24 00:38:35 UTC 2010
On 07/23/2010 20:13, Doug Barton wrote:
>> Server side: ( at port snapshot creation )
>> LOCATE_CONFIG=/usr/ports/locate.rc /usr/libexec/locate.updatedb
>> locate.rc:
>> FCODES="/usr/ports/locate.database"
>> SEARCHPATHS="/usr/ports"
>>
>> real 149.79
>
> It's not 100% clear to me what you're timing here, but it took 2.5
> minutes to do it.
This was for creating the locate database with thoughts of how long it
would take to do this upon every port snapshot.
>> Just for creating the list of distfiles from the SIZE contents:
>> $ du -sh DISTINDEX.8.1.gz
>> 512B DISTINDEX.8.1.gz
>>
>> time -alhp ./createindex.sh
>> real 490.99
>
> Sorry I'm so dense, but I'm still not following exactly what part of the
> process you're referring to here, but this time it took over 8 minutes.
> Given that the method I'm using to generate a 100% up to date version of
> the list that's guaranteed to get all the distfiles takes less time, I
> do not think I will be adding the feature you are suggesting, but I do
> appreciate the suggestion. :)
No problem but just for clarity.
This was on the client side but as well could be done server side from
running the following.
#!/bin/sh
export LOCATE_PATH=/usr/ports/locate.databasea
for distinfo in $(locate "/usr/ports/*/*/distinfo"); do
grep SIZE $distinfo >>DISTINDEX.8.1
done
Regards & Good to hear back from you,
--
jhell,v
More information about the freebsd-ports
mailing list