Changeset 1237 for trunk/mm_cfg.py

Show
Ignore:
Timestamp:
03/11/06 16:09:50 (3 years ago)
Author:
lunar
Message:

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
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/mm_cfg.py

    r1218 r1237  
    11# -*- 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. 
    212 
    313# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.