ports/mail/py-spf-engine/files/patch-spf__engine_policydspfsupp.py
Yasuhiro Kimura 00b787288f mail/py-spf-engine: Miscellaneous bug fixes and improvements
* Fix runtime error of pyspf-milter that happens when either 'UMask'
  or 'IntHosts' is set in configuration file.
* Stop installing backup files.
* Make miscellaneous paths consistent between library files, man
  pages, pkg-message and rc.d script.
* Remove CONFLICTS as mail/postfix-policyd-spf-python is removed from
  ports tree

MFH:		2022Q3
2022-09-06 05:18:13 +09:00

25 lines
929 B
Python

--- spf_engine/policydspfsupp.py.orig 2020-04-18 06:04:36 UTC
+++ spf_engine/policydspfsupp.py
@@ -47,8 +47,8 @@ defaultConfigData = {
'No_Mail' : False,
'Mock' : False,
# For milter front end
- 'Socket': 'local:/run/pyspf-milter/pyspf-milter.sock',
- 'PidFile': '/run/pyspf-milter/pyspf-milter.pid',
+ 'Socket': 'local:/var/run/pyspf-milter/pyspf-milter.sock',
+ 'PidFile': '/var/run/pyspf-milter/pyspf-milter.pid',
'UserID': 'pyspf-milter',
'UMask': 7,
'InternalHosts': '127.0.0.1',
@@ -153,9 +153,9 @@ def _readConfigFile(path, configData = None, configGlo
'Socket': str,
'PidFile': str,
'UserID': str,
- 'UMask': 'int',
+ 'UMask': int,
'InternalHosts': str,
- 'IntHosts': 'bool',
+ 'IntHosts': bool,
'MacroListVerify': str,
}