Help with a local port file
ryandesign at macports.org
Mon Jun 18 01:58:26 UTC 2018
On Jun 16, 2018, at 18:13, Michael wrote:
> On 2018-06-16, at 3:51 PM, Michael wrote:
>> I'm trying to use a local port file, and it's not working. What am I doing wrong?
>> bash-3.2# cat /opt/local/etc/macports/sources.conf
>> # $Id: sources.conf 106803 2013-06-08 16:22:39Z larryv at macports.org $
>> # For proper functionality of various resources (port groups, mirror
>> # sites, etc.), the primary MacPorts source must always be tagged
>> # "[default]", even if switched from the default "rsync://" URL.
>> rsync://rsync.macports.org/release/tarballs/ports.tar [default]
>> bash-3.2# ls /Users/michael/Documents/ports/devel/
>> .DS_Store git/
>> bash-3.2# ls /Users/michael/Documents/ports/devel/git/
>> total 16
>> 8 .DS_Store 8 Portfile 0 files/
>> bash-3.2# port dir git
>> It refuses to find my local port directory/port file
> cd ~/Documents/ports/
Yes of course your ports must be indexed for MacPorts to be able to find them.
Since you've listed the directory in sources.conf, "sudo port sync" should update and index them.
More information about the macports-users