There's no INDEXFILE target on OpenBSD, so just open INDEX instead.

NB: this particular code is completely untested and may not even work at all.
To be investigated
Rework how ports are discovered, prevents stray entries like '===> graphics/gimp'
Don't record directories which are wrappesr
sync changelog
Add new 'prune' command (disabled by default) to prune the database

While it's meant to sync the database with ports that have been removed
from the ports tree, there are currently too many entries in the database
where 'name' is incorrect and thus we'd end up removing dozens of entries
from the database for which the matching port still exists.