(Update: Official Guide Local Repositories)
Setting up a local macports repository is quite easy:
- create a repo folder, like:
sudo mkdir /opt/local/var/localports
- update the config
sudo vim /opt/local/etc/macports/sources.conf
adding
file:///opt/local/var/localports
- create your port mirroring the model in
/opt/local/var/macports/sources/
- update the index with:
sudo portindex /opt/local/var/localports
- install the new port!