On 2016-9-8 00:53 , Ryan Schmidt wrote:
Is there some entry I can make in a MacPorts config file that will tell it to 
only use a particular packages server and ignore the rest?

Yes, there's an example of overriding the standard archive sites given in the comments in archive_sites.conf.

Similarly, I want to configure MacPorts so that it only checks a single 
particular distfiles mirror, and if the file is not found there, then do not 
check any of the other distfiles mirror servers, but instead go straight to the 
port's configured master_sites.

I don't think there's any way to do that without patching base.

I realize I can explicitly list all of the packages and distfiles servers that 
I don't want to use in the host_blacklist line in macports.conf, and that's 
what we do in the buildbot 
(https://trac.macports.org/browser/contrib/mp-buildbot/mpbb-checkout), but it's 
an inconveniently long list and needs to be updated anytime we add new official 
mirrors.

I also want to be able to configure MacPorts to use a different distfiles and 
packages server than the ones that are listed in mirror_sites.tcl and 
archive_sites.tcl. I'd rather not have to maintain local edits to those files. 
I'm currently handling this with a local DNS server that advertises a different 
IP address for distfiles.macports.org and packages.macports.org but this isn't 
great.

It wouldn't be hard to add some code to the end of those .tcl files that overwrites the value of a variable that was defined earlier. That's not likely to have conflicts when updating.

- Josh
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to