Portfile newbie questions
Terry Barnum
terrydop at gmail.com
Thu Nov 19 12:04:45 PST 2015
My first post to macports-dev so please pardon the newbie questions.
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's 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 of 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?-*
Thanks,
-Terry
Terry Barnum
digital OutPost
Carlsbad, CA
http://www.dop.com
800/464-6434
More information about the macports-dev
mailing list