Option for a "local mirror"?

Ryan Schmidt ryandesign at macports.org
Wed Dec 22 16:51:05 PST 2010

On Dec 22, 2010, at 18:20, Marko Käning wrote:

> it would be cool if one could somehow specify a local mirror. Since I am using more than only one MacPorts installation for testing purposes I'd love to have the ability to have a local mirror which would be accessed by all my different MacPorts installations prior to accessing some remote server. Does such an configuration option already exist? If not, I guess, it would be a great feature, don't you think?
> Ideally I would like to make one of my MacPorts installations the master one, which would then be the source of all distribution files for all my other MacPorts installations.

There's no specific option for this, but I do have my MacPorts installations set up in this way. I set up each machine as a web server and configure it to serve the MacPorts distfiles. Then I edit the mirror_sites.tcl file (in dports/_resources/port1.0/fetch) and add my machines' URLs to the macports_distfiles section. If you're using the default rsync method of fetching portfiles, your changes will be wiped out next time you sync, so you'd want to switch to using Subversion to fetch them.

More information about the macports-dev mailing list