summaryrefslogtreecommitdiff
path: root/Mailman/Defaults.py.in
diff options
context:
space:
mode:
authorbwarsaw2000-09-22 08:11:19 +0000
committerbwarsaw2000-09-22 08:11:19 +0000
commit8158e509a9928bfdc5294ef3c614477f4bfcc47d (patch)
tree25e972330934cb0fd04d50e1083874b239119c57 /Mailman/Defaults.py.in
parent36306c89df51b3f471815325986e1b3d9b5cd9a1 (diff)
downloadmailman-8158e509a9928bfdc5294ef3c614477f4bfcc47d.tar.gz
mailman-8158e509a9928bfdc5294ef3c614477f4bfcc47d.tar.zst
mailman-8158e509a9928bfdc5294ef3c614477f4bfcc47d.zip
Several changes in support of David Champion's SF patch #101331.
Specifically, VAR_PREFIX gets substituted here by configure. This is where all the writable, variable directories in Mailman are installed, such as: LIST_DATA_DIR = $VAR_PREFIX/lists LOG_DIR = $VAR_PREFIX/logs LOCK_DIR = $VAR_PREFIX/locks DATA_DIR = $VAR_PREFIX/data QUEUE_DIR = $VAR_PREFIX/qfiles SPAM_DIR = $VAR_PREFIX/spam PUBLIC_ARCHIVE_FILE_DIR = $VAR_PREFIX/archives/public PRIVATE_ARCHIVE_FILE_DIR = $VAR_PREFIX/archives/private Also, MAILMAN_UID and MAILMAN_GID get substituted here by configure too.
Diffstat (limited to '')
-rw-r--r--Mailman/Defaults.py.in21
1 files changed, 13 insertions, 8 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index f12c881f1..b70bbe81e 100644
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -459,6 +459,7 @@ QRUNNER_MAX_MESSAGES = 300
PYTHON = '@PYTHON@'
PREFIX = '@prefix@'
EXEC_PREFIX = '@exec_prefix@'
+VAR_PREFIX = '@VAR_PREFIX@'
# Work around a bogus autoconf 2.12 bug
if EXEC_PREFIX == '${prefix}':
@@ -467,6 +468,10 @@ if EXEC_PREFIX == '${prefix}':
# CGI extension, change using configure script
CGIEXT = '@CGIEXT@'
+# Group id that group-owns the Mailman installation
+MAILMAN_UID = @MAILMAN_UID@
+MAILMAN_GID = @MAILMAN_GID@
+
# Enumeration for types of configurable variables in Mailman.
Toggle = 1
Radio = 2
@@ -498,19 +503,19 @@ DisableMime = 8 # Digesters only
ConcealSubscription = 16
# Useful directories
-LIST_DATA_DIR = os.path.join(PREFIX, 'lists')
+LIST_DATA_DIR = os.path.join(VAR_PREFIX, 'lists')
HTML_DIR = os.path.join(PREFIX, 'public_html')
CGI_DIR = os.path.join(EXEC_PREFIX, 'cgi-bin')
-LOG_DIR = os.path.join(PREFIX, 'logs')
-LOCK_DIR = os.path.join(PREFIX, 'locks')
-DATA_DIR = os.path.join(PREFIX, 'data')
-QUEUE_DIR = os.path.join(PREFIX, 'qfiles')
-SPAM_DIR = os.path.join(PREFIX, 'spam')
+LOG_DIR = os.path.join(VAR_PREFIX, 'logs')
+LOCK_DIR = os.path.join(VAR_PREFIX, 'locks')
+DATA_DIR = os.path.join(VAR_PREFIX, 'data')
+QUEUE_DIR = os.path.join(VAR_PREFIX, 'qfiles')
+SPAM_DIR = os.path.join(VAR_PREFIX, 'spam')
WRAPPER_DIR = os.path.join(EXEC_PREFIX, 'mail')
SCRIPTS_DIR = os.path.join(PREFIX, 'scripts')
TEMPLATE_DIR = os.path.join(PREFIX, 'templates')
-PUBLIC_ARCHIVE_FILE_DIR = os.path.join(PREFIX, 'archives/public')
-PRIVATE_ARCHIVE_FILE_DIR = os.path.join(PREFIX, 'archives/private')
+PUBLIC_ARCHIVE_FILE_DIR = os.path.join(VAR_PREFIX, 'archives/public')
+PRIVATE_ARCHIVE_FILE_DIR = os.path.join(VAR_PREFIX, 'archives/private')
# Import a bunch of version numbers
from Version import *