terrydop at gmail.com
Thu Nov 19 11:06:09 PST 2015
I've wanted to try my hand at creating a Portfile for the pypolicyd-spf package <https://launchpad.net/pypolicyd-spf/>. Postfix or Sendmail uses it to check a sender's SPF domain record to see if it's spoofed email.
pypolicyd-spf README says it depends on v2.0.9+ of the python-spf library <http://sourceforge.net/projects/pymilter/>, which isn't in ports, and also depends on v2.1.10+ of the python ipaddr module, which is in ports but is an older version (v2.1.9). Current is 2.1.11 <https://pypi.python.org/packages/source/i/ipaddr/ipaddr-2.1.11.tar.gz>.
Referencing the Macports docs, I created a local repository and successfully created local Portfiles to install the pymilter and ipaddr packages but then ran into warnings with the pypolicyd-spf port being installed into /etc. I think this means I need a patch file for its setup.py. Are there more examples showing patchfiles? Like maybe a Dummy's Guide? ;) Or is it best just to look at other python Portfiles and see what they're doing?
Also, what's the convention for when to name a port just py-* versus py2?-* or py3?-*
If these questions would be better on macports-dev I can subscribe and ask there.
More information about the macports-users