#!/bin/sh

ports=""
for f in "$(find /opt/local/bin) $(find /opt/local/lib -name \*.dylib)"; do
    if otool -L $f | grep -q 'libcrypto\.0\.9\.8\|libssl\.0\.9\.8'; then
        ports+=$(port provides $f | cut -d ' ' -f 5)
    fi
done

echo $ports | tr " " "\n" | sort | uniq
