Program to transform the ports collection to use pkg-data


The first step in this project is to write a program that transforms a port in its current layout, to a port where much of the same information is moved into a pkg-data file. This program will only be needed for the initial conversion of ports, and it's expected that only ports-developers will need to run it. Once the entire ports tree is officially converted, this program would be thrown away.

This program will support a few different options on how it cam be run. For initial statistics-gathering, the program will take an original ports-directory, and copy the entire thing to a new directory. It will keep track of various statistics while it is doing that, partially to give us some measures of how many ports were processed, what files were found, and what was done with them.

There will also be an option to transform an entire category of ports at once (but leave all other categories alone). There will also be an option to transform a specific list of ports, in-place.

If people decide the PkgData project is worth doing, then we will also want to add smarts to this transform program to do all the appropriate "cvs add"s and "cvs remove"s (but probably not the "cvs commit"s!).
 


One issue this project needs to consider is that some users receive ports-updates via email. They get a message with "today's changes to the ports tree". Thus, if we do decide to do this project, and if the entire ports tree was transformed on a single day, then these users would receive a number of huge messages. So, when it comes to commit these changes, it might be best to transform ports only when they need to be changed for other reasons.
 

Comments can be sent to:   drosih@rpi.edu
Web page last on updated:  Feb 21/2004