~cypheon/pkgsrc-wip

pkgsrc-wip/mailman3/patches/patch-src_mailman_core_initialize.py -rw-r--r-- 530 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD$

Use PKG_SYSCONFDIR for default config file.

--- src/mailman/core/initialize.py.orig	2017-11-18 01:23:39.000000000 +0000
+++ src/mailman/core/initialize.py
@@ -68,7 +68,7 @@ def search_for_configuration_file():
     if os.path.exists(config_path):
         return os.path.abspath(config_path)
     # /etc/mailman.cfg
-    config_path = '/etc/mailman.cfg'
+    config_path = '@PKG_SYSCONFDIR@/mailman.cfg'
     if os.path.exists(config_path):
         return os.path.abspath(config_path)
     # /etc/mailman3/mailman.cfg