This is a quick and dirty hack
This is how to get alpine (alpine.x10host.com) from macports (macports.org) patched with a patch not provided by macports.
cd /tmp wget -c 'http://alpine.x10host.com/alpine/patches/alpine-2.25/maildir.patch.gz' port clean alpine @2.25_1+kerberos+ldap+ssl port uninstall alpine @2.25_1+kerberos+ldap+ssl port extract alpine @2.25_1+kerberos+ldap+ssl cd `port work alpine`/alpine-* gunzip -c /tmp/maildir.patch.gz | patch -p1 find . -not -user macports -print0 | xargs -0 chown macports:admin cd port build alpine @2.25_1+kerberos+ldap+ssl port install alpine @2.25_1+kerberos+ldap+ssl