How to use a different mirror rather than the mirrors in the list?
Well, I mean not only download port.tar
from other mirror, like the question here, but also download packages from a different mirror.
I have noticed that when downloading packages, the port
just download packages from this link. But I don't know how to change the mirror it get packages from.
Open /opt/local/etc/macports/archive_sites.conf as root.
Add the following two lines:
name local_archives
urls http://jog.id.packages.macports.org/macports/packages/
You can also disable all the official archive mirrors by doing like this:
name macports_archives
name local_archives
urls http://jog.id.packages.macports.org/macports/packages/