How to sync MacPorts without rsync

If port 873 is blocked on your network and you need to sync MacPorts do this:

In /opt/local/etc/macports/sources.conf replace

rsync://rsync.macports.org/release/ports/ [default]

with

http://www.macports.org/files/ports.tar.gz [default]

and run

sudo port sync

instead of

sudo port selfupdate

MacPorts is now synching using http over port 80 instead of rsync over port 873.