Date: 19-05-07 15:01
The ability to find the port that installs a given command or other
file would be useful to me. For example, I was just compiling some
software from source and it required the pngtopnm command. There is
no port by that name, but it turns out that this command is part of
the netpbm port. Similarly, mkisofs is often needed, but is part of
the cdrtools port.
So, I'd like to have a FreshPorts feature that returns the netpbm port
when I search for the pngtopnm command, for example. It could be an
extra option in the first drop-down list in the search form -- the one
whose items currently are: port name, package name, latest link, and
To implement this, you need the list of files installed by each port.
This is available in the pkg-plist file in the port directory, though
I think some ports also specify files in their Makefile that are not
in pkg-plist. A good start is to grep the pkg-plist files for lines
starting with "bin/" or "sbin/", and register the last pathname
component in each such line as a command name for the port.