Archive for the 'Development' Category

FreshSource - navigating the repo

Sunday, March 18th, 2007

FreshSource has long has a tool for walking the source tree. By source tree, do not think src. Think ports, www, src, docs, everything that you can see through cvsweb.
The screen shot you see is what FreshSource looks like on my laptop.
I’m happy with this progress, which represents about two hours of work. […]

FreshSource - watching non-ports

Thursday, March 15th, 2007

One of the as yet unexploited capabilities of the FreshPorts database is the ability to watch non-ports. On the train from Ottawa to Montreal, as I was headed for the PHP Conference, I worked on creating notification reports for non-ports. It took about an hour, but I suceeded. The changes are not […]

repo copies are evil

Sunday, March 4th, 2007

Repo copies are evil. What are repo copies? A repo copy occurs when you move things around in the repository manually. For example, this commit contains a lot of repo copy work. Ports are being moved from their current category to a new category, ports-mgmt. The original files in the […]

rddtools - last_update of year 31900 - 944503401600

Thursday, February 15th, 2007

At Ade’s prompting, I’m getting ready to move FreshPorts onto the dual opteron. It should have moved there some time ago.
To keep track of the system stats, I’m using Cacti. I used the database I created on another server and copied it over to the new box. As part of this, I […]

Caching - yet again!

Tuesday, February 13th, 2007

I have written much about caching. FreshPorts has over 500,000 pages. Only a handful of those pages are static, the rest are generated from the database. Sometimes it takes a while to generate that page. To reduce the load on the server and make the website snappier for the user, page […]

Searching made easier

Wednesday, January 31st, 2007

If you use the FreshPorts search page frequently, then we have a few treats for you.
FreshPorts has plugins for IE7, Firefox 2, and Opera.
My thanks to Karol Kwiatkowski for the OpenSearch format plugins.
And to slunky and Roderick Person for this Opera solution:

Go to Tools | Preferences
Click the Search Tab
click Add
For Name, enter FreshPorts
For Keyword, enter […]

Invoking the script

Sunday, January 28th, 2007

Yesterday I wrote about the script that will update category descriptions. Today I’ll show the script that will invoke that script.
This script will fetch the file via cvsweb,
config.sh contains all the setting particular to this installation.
This code is now in beta and will move to production after it’s been invoked at least once.

#!/bin/sh

if […]

Virtual categories deserve to be recognized!

Thursday, January 25th, 2007

This is all Pav’s fault. The conversation went something like this (other conversations trimmed):
[15:32] <Pav> dvl: around?
[15:39] <dvl> Pav: here!
[15:41] <dvl> .ping Pav
[15:41] <dvl> ping Pav
[15:41] *** ¢ PING sent to Pav
[15:41] *** ¢ PING reply of 3.25 s from Pav
[15:41] <dvl> third time works
[15:42] <laemodost> Ping timeout.
[15:43] <dvl> yueah
[15:49] <Pav> dvl: hey hey.. […]

Bug in cache/slave ports

Thursday, January 4th, 2007

I just noticed a bug in the slave ports, when Bacula Server, that excellent backup tool, was upgraded to 2.0.0. The slave port, Bacula Client, was still on the old version.
I hope to fix this soon. As a precaution, I emptied the entire cache.
20:45 - fixed. It was a […]

Merging from branch to HEAD

Monday, December 18th, 2006

FreshPorts has a CVS history that dates back to mid 2000 (and that’s just what I could find with a quick search). It started on a MySQL, which isn’t really up to the job. It quickly moved to PostgreSQL, the finest database server out there, and it just happens to be Open Source. […]