ports/mail/py-spf-engine/files/patch-spf__engine_milter__spf.py
Yasuhiro Kimura f32e5a0b50 mail/py-spf-engine: Update to 3.0.3
* Since 3.0.0 spf-engine uses flit-core as build backend. So switch to
  use 'USE_PYTHON=pep517'.
* Add entry to UPDATING as default configuration file path of
  pyspf-milter has changed.

ChangeLog:	https://git.launchpad.net/spf-engine/tree/CHANGES?h=3.0.3
2023-02-27 10:45:15 +09:00

11 lines
505 B
Python

--- spf_engine/milter_spf.py.orig 2023-01-11 14:35:12 UTC
+++ spf_engine/milter_spf.py
@@ -211,7 +211,7 @@ class spfMilter(Milter.Base):
def main():
# Ugh, but there's no easy way around this.
global milterconfig
- configFile = '/usr/local/etc/python-policyd-spf/policyd-spf.conf'
+ configFile = '%%PREFIX%%/etc/python-policyd-spf/policyd-spf.conf'
if len(sys.argv) > 1:
if sys.argv[1] in ('-?', '--help', '-h'):
print('usage: pyspf-milter [<configfilename>]')