root/alternc-mailman/tags/1.4.10/mm_cfg.py

Revision 1237, 2.8 kB (checked in by lunar, 3 years ago)

r88@sud: lunar | 2006-03-11 15:14:54 +0100
Major cleanup on a debian packaging POV


  • Adapt package to 0.9.4 configuration files (for alternc.install and
    menufile.txt) and bump dependency accordingly.
  • Add mysql-client to Depends field (used in debian scripts)
  • Now store Mailman configuration file template in /etc/alternc/templates/mailman/mm_cfg.py
  • Remove unneeded use of debconf:

alternc is in pre-depends, and its configuration file is sourced in
postinst script. This script use a '-e' shell, and will then fail if
it is unable to read the configuration file.

  • Add a warning about modifying /etc/mailman/mm_cfg.py directly.
  • Major overhaul of postinst script:

o Fix apache configuration template condition. o Uses alternc.install to update apache configuration files against

modified templates.

o Generated Mailman configuration is now backuped in /var/backups/alternc

in order to prevent overwrite of user modification (despite the
warning).
The postinst script will fail in this case, displaying a message telling
the user how to correct the situation.

o Automatically creates the "mailman" list (a.k.a site list) if it

doesn't exist. (Closes: #157, #365, #560)

  • Overhaul of postrm script too:

o Adapt to 0.9.4 configuration style.
o Drop mailman table on purge. (Closes: #224)

  • Cleanup of debian/rules
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # -*- python -*-
2
3 # WARNING!  DO NOT EDIT THIS FILE!
4 #
5 # This file has been generated by alternc-mailman configuration.
6 #
7 # If you want to change anything, you should modify
8 #   /etc/alternc/templates/mailman/mm_cfg.py
9 # and use
10 #   dpkg-reconfigure alternc-mailman
11 # to update this file.
12
13 # Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
14 #
15 # This program is free software; you can redistribute it and/or
16 # modify it under the terms of the GNU General Public License
17 # as published by the Free Software Foundation; either version 2
18 # of the License, or (at your option) any later version.
19 #
20 # This program is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 # GNU General Public License for more details.
24 #
25 # You should have received a copy of the GNU General Public License
26 # along with this program; if not, write to the Free Software
27 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28
29
30 """This is the module which takes your site-specific settings.
31
32 From a raw distribution it should be copied to mm_cfg.py.  If you
33 already have an mm_cfg.py, be careful to add in only the new settings
34 you want.  The complete set of distributed defaults, with annotation,
35 are in ./Defaults.  In mm_cfg, override only those you want to
36 change, after the
37
38   from Defaults import *
39
40 line (see below).
41
42 Note that these are just default settings - many can be overridden via the
43 admin and user interfaces on a per-list or per-user basis.
44
45 Note also that some of the settings are resolved against the active list
46 setting by using the value as a format string against the
47 list-instance-object's dictionary - see the distributed value of
48 DEFAULT_MSG_FOOTER for an example."""
49
50
51 #######################################################
52 #    Here's where we get the distributed defaults.    #
53
54 from Defaults import *
55
56 ##############################################################
57 # Put YOUR site-specific configuration below, in mm_cfg.py . #
58 # See Defaults.py for explanations of the values.            #
59
60
61 MAILMAN_SITE_LIST = 'mailman'
62 DEFAULT_EMAIL_HOST = '%%fqdn%%'
63 DEFAULT_URL_HOST   = '%%fqdn%%'
64 add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
65
66 DEFAULT_HOST_NAME = '%%fqdn%%'
67 DEFAULT_URL_PATTERN = 'https://%s/cgi-bin/mailman/'
68 IMAGE_LOGOS       = '/mimages/'
69 USE_ENVELOPE_SENDER = 0
70 DEFAULT_SEND_REMINDERS = 0
71 DEFAULT_DEFAULT_MEMBER_MODERATION = 1
72
73 MAILMAN_OWNER     = 'root@%%fqdn%%'
74
75 PUBLIC_ARCHIVE_URL = '/marchives/%(listname)s'
76 PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private/%(listname)s'
77 DEFAULT_ARCHIVE_PRIVATE    = 1                    # 0=public, 1=private
78
79 DEFAULT_SERVER_LANGUAGE = 'fr'
80
81 # Note - if you're looking for something that is imported from mm_cfg, but you
82 # didn't find it above, it's probably in Defaults.py.
83
84
Note: See TracBrowser for help on using the browser.