#!/bin/bash

PREFIX=$(which port | sed 's,/bin/port$,,')

find -E $PREFIX -regex "$PREFIX/(bin/(daemondo|port|port(f|index|mirror))|man|var/cache/.*|(var|share)/macports/.*|share/man/man./(port\\.1|macports\\.conf\\.5|port(file|group|hier|style)\\.7).gz)" -prune -o \! -type d -print0 \
| xargs -0 port -q provides \
| sed -n 's/ is not provided by a MacPorts port.//p'
