$ sudo vi /opt/local/etc/macports/sources.conf このファイルのできるかぎり始めの方に、file:///opt/local/var/localportsと記述しています。すると、以下のような感じになります。 # MacPorts system wide sources configuration file # $Id: sources.conf 26177 2007-06-15 10:11:22Z jmpp@macports.org $ # # To enable your local ports repository, uncomment and customize the # following line to point at your local ports directory # Example: file:///Users/lando