[Pkg-mailman-hackers] Pkg-mailman commit - rev 121 - in branches/pkg-split/core/debian: . po

Bernd S. Brentrup bsb at haydn.debian.org
Sun Sep 10 19:12:29 UTC 2006


Author: bsb
Date: 2004-05-07 12:18:03 -0600 (Fri, 07 May 2004)
New Revision: 121

Added:
   branches/pkg-split/core/debian/mailman.config
   branches/pkg-split/core/debian/mailman.dirs
   branches/pkg-split/core/debian/mailman.docs
   branches/pkg-split/core/debian/mailman.install
   branches/pkg-split/core/debian/mailman.links
   branches/pkg-split/core/debian/mailman.logrotate
   branches/pkg-split/core/debian/mailman.postinst
   branches/pkg-split/core/debian/mailman.postrm
   branches/pkg-split/core/debian/mailman.preinst
   branches/pkg-split/core/debian/mailman.prerm
   branches/pkg-split/core/debian/mailman.templates
Removed:
   branches/pkg-split/core/debian/config
   branches/pkg-split/core/debian/dirs
   branches/pkg-split/core/debian/docs
   branches/pkg-split/core/debian/install
   branches/pkg-split/core/debian/links
   branches/pkg-split/core/debian/logrotate
   branches/pkg-split/core/debian/postinst
   branches/pkg-split/core/debian/postrm
   branches/pkg-split/core/debian/preinst
   branches/pkg-split/core/debian/prerm
   branches/pkg-split/core/debian/templates
Modified:
   branches/pkg-split/core/debian/po/POTFILES.in
Log:
Rename debian/* files to contain main package name.


Deleted: branches/pkg-split/core/debian/config
===================================================================
--- branches/pkg-split/core/debian/config	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/config	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,143 +0,0 @@
-#! /usr/bin/python
-# $URL$
-# $Id$
-
-"""
-
-Fooling lintian that complains about not sourcing confmodule:
-. /usr/share/debconf/confmodule
-"""
-
-import sys, os
-
-# Argl, if the debconf Python interface were well designed, sth like
-#   from debconf import instance as db
-# should be sufficient here.  As it is, must work around it's flaws.
-def get_debconf_interface(title=''):
-    """Get an debconf interface instance, starting a frontend if
-    none is available.
-    """#
-    from debconf import Debconf, _frontEndProgram
-    try:             junk = os.environ['DEBIAN_HAS_FRONTEND']
-    except KeyError: os.execv(_frontEndProgram, [_frontEndProgram]+sys.argv)
-    return Debconf(title)
-db = get_debconf_interface() ; del get_debconf_interface
-#  Exception class and convenience constants
-from debconf import DebconfError, LOW, MEDIUM, HIGH, CRITICAL
-
-
-mm_home  = '/var/lib/mailman'
-mm_lists = os.path.join(mm_home, 'lists')
-crontab  = '/etc/cron.d/mailman'
-
-
-def gate_news_enabled():
-    """Checks crontab if gate_news is enabled.
-
-    Assume valid crontab(5) format: lines whose first non-space character
-    is a # are comments, comments on command lines are disallowed.
-    """
-    cmd = 'grep gate_news %(crontab)s' % globals()
-    gn = os.popen(cmd)
-    result = False
-    for line in gn.readlines():
-        line = line.strip()
-        log('GREPPING: %(line)r' % locals(), lvl=2)
-        result |= line[0] != '#'
-    if gn.close() is None:
-        return result
-    else:
-        return False
-
-
-def have_list(listname):
-    """Check if a list with the specified internal name exists.
-
-    When upgrading, use installed MM's own notion of list existence.
-    On a first time install (or when MM has been removed prior to this
-    installation, simply checks for directory existence.
-    """#
-    try:
-        from Mailman.Utils import list_exists
-        return list_exists(listname)
-    except:
-        list_dir = os.path.join(mm_lists, listname)
-        return os.path.isdir(list_dir)
-
-
-def main(operation, inst_version):
-
-    log('config main(operation=%(operation)r, '
-        'inst_version=%(inst_version)r)'
-        % locals(), lvl=2)
-
-    def db_input(*args):
-        try:
-            db.input(*args)
-        except DebconfError, exc:
-            if exc.args[0] != 30:
-                raise
-
-    gbls = globals().copy()
-    mm_cfg = '/etc/mailman/mm_cfg.py'
-
-    if os.path.exists('/etc/mailname'):
-        mailname = open('/etc/mailname')
-    else:
-        mailname = os.popen('hostname --fqdn')
-    mailname = mailname.read().strip()
-
-    if os.path.exists(mm_cfg):
-        for line in os.popen('egrep "^DEFAULT_[^ =]+ *=" %(mm_cfg)s' % locals()):
-            exec line in gbls
-    default_email_host      = gbls.get('DEFAULT_EMAIL_HOST', mailname)
-    default_url_host        = gbls.get('DEFAULT_URL_HOST', '')
-    default_server_language = gbls.get('DEFAULT_SERVER_LANGUAGE', 'en')
-
-    db.set('mailman/email_host', default_email_host)
-    db_input(MEDIUM, 'mailman/email_host')
-
-    if not default_url_host:
-        default_url_host = 'www.' + default_email_host
-    db.set('mailman/url_host',   default_url_host)
-    db_input(MEDIUM, 'mailman/url_host')
-
-    site_languages = db.get('mailman/site_languages')
-    langs = site_languages.split(', ')
-    if len(langs) > 1 and default_server_language not in langs:
-        default_server_language = ''
-    db.subst('mailman/default_server_language', 'site_languages', site_languages)
-    db.set('mailman/default_server_language', default_server_language)
-    db_input(HIGH, 'mailman/default_server_language')
-
-    db.set('mailman/gate_news',
-           gate_news_enabled() and 'true' or 'false')
-    db_input(LOW, 'mailman/gate_news')
-
-    site_list = 'mailman'
-    if not have_list(site_list):
-        db_input(CRITICAL, 'mailman/create_site_list')
-
-    db.go()
-
-
-if __name__ == '__main__':
-    if len(sys.argv) == 2:
-        operation, inst_version = sys.argv[1], None
-    elif len(sys.argv) == 3:
-        operation, inst_version = sys.argv[1:]
-
-    def dummy_logger(*args, **kw):
-        pass
-
-    try:
-        sys.path.insert(0, mm_home)
-        from Mailman.Debian import DebuggingLogger
-        log = DebuggingLogger('MM_MAINT')
-        try:
-            main(operation, inst_version)
-        finally:
-            log.sys_info()
-    except ImportError:
-        log = dummy_logger
-        main(operation, inst_version)

Deleted: branches/pkg-split/core/debian/dirs
===================================================================
--- branches/pkg-split/core/debian/dirs	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/dirs	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,33 +0,0 @@
-etc/logrotate.d
-usr/lib/cgi-bin/mailman
-usr/sbin
-usr/share/images/mailman
-usr/share/mailman/bin
-usr/share/mailman/mail
-usr/share/mailman/scripts
-usr/share/mailman/templates
-var/lib/images/mailman
-var/lib/mailman/archives/private
-var/lib/mailman/archives/public
-var/lib/mailman/bin
-var/lib/mailman/data
-var/lib/mailman/lists
-var/lib/mailman/mail
-var/lib/mailman/pythonlib
-var/lib/mailman/qfiles
-var/lib/mailman/qfiles/archive
-var/lib/mailman/qfiles/bad
-var/lib/mailman/qfiles/bounces
-var/lib/mailman/qfiles/commands
-var/lib/mailman/qfiles/in
-var/lib/mailman/qfiles/maildir
-var/lib/mailman/qfiles/news
-var/lib/mailman/qfiles/out
-var/lib/mailman/qfiles/retry
-var/lib/mailman/qfiles/shunt
-var/lib/mailman/qfiles/virgin
-var/lib/mailman/scripts
-var/lib/mailman/spam
-var/lock/mailman
-var/log/mailman
-var/run/mailman

Deleted: branches/pkg-split/core/debian/docs
===================================================================
--- branches/pkg-split/core/debian/docs	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/docs	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,7 +0,0 @@
-README*
-FAQ
-BUGS
-NEWS
-TODO
-STYLEGUIDE.txt
-ACKNOWLEDGMENTS

Deleted: branches/pkg-split/core/debian/install
===================================================================
--- branches/pkg-split/core/debian/install	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/install	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,11 +0,0 @@
-debian/tmp/usr/lib/mailman/Mailman      usr/share/mailman
-debian/tmp/usr/lib/mailman/bin          usr/share/mailman
-debian/tmp/usr/lib/mailman/cron         usr/share/mailman
-debian/tmp/usr/lib/mailman/icons/*      usr/share/images/mailman
-debian/tmp/usr/lib/mailman/mail         usr/share/mailman
-debian/tmp/usr/lib/mailman/scripts      usr/share/mailman
-debian/tmp/var/lib/mailman/data         var/lib/mailman
-debian/manpages/*                       usr/share/man/man8
-debian/Debian                           usr/share/mailman/Mailman
-
-

Deleted: branches/pkg-split/core/debian/links
===================================================================
--- branches/pkg-split/core/debian/links	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/links	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,223 +0,0 @@
-etc/mailman/mm_cfg.py                   var/lib/mailman/Mailman/mm_cfg.py
-usr/share/mailman                       var/lib/mailman/.INST
-var/lib/mailman/bin/list_lists          usr/sbin/list_lists
-var/lib/mailman/bin/find_member         usr/sbin/find_member
-var/lib/mailman/bin/config_list         usr/sbin/config_list
-var/lib/mailman/bin/mmsitepass          usr/sbin/mmsitepass
-var/lib/mailman/bin/newlist             usr/sbin/newlist
-var/lib/mailman/bin/rmlist              usr/sbin/rmlist
-var/lib/mailman/bin/add_members         usr/sbin/add_members
-var/lib/mailman/bin/list_members        usr/sbin/list_members
-var/lib/mailman/bin/remove_members      usr/sbin/remove_members
-var/lib/mailman/bin/arch                usr/sbin/mmarch
-var/lib/mailman/bin/clone_member        usr/sbin/clone_member
-var/lib/mailman/bin/sync_members        usr/sbin/sync_members
-var/lib/mailman/bin/check_db            usr/sbin/check_db
-var/lib/mailman/bin/check_perms         usr/sbin/check_perms
-var/lib/mailman/bin/list_admins         usr/sbin/list_admins
-var/lib/mailman/bin/withlist            usr/sbin/withlist
-var/lib/mailman/.INST/bin/mmsitepass  var/lib/mailman/bin/mmsitepass
-var/lib/mailman/.INST/bin/newlist  var/lib/mailman/bin/newlist
-var/lib/mailman/.INST/bin/rmlist  var/lib/mailman/bin/rmlist
-var/lib/mailman/.INST/bin/add_members  var/lib/mailman/bin/add_members
-var/lib/mailman/.INST/bin/list_members  var/lib/mailman/bin/list_members
-var/lib/mailman/.INST/bin/remove_members  var/lib/mailman/bin/remove_members
-var/lib/mailman/.INST/bin/clone_member  var/lib/mailman/bin/clone_member
-var/lib/mailman/.INST/bin/update  var/lib/mailman/bin/update
-var/lib/mailman/.INST/bin/arch  var/lib/mailman/bin/arch
-var/lib/mailman/.INST/bin/sync_members  var/lib/mailman/bin/sync_members
-var/lib/mailman/.INST/bin/check_db  var/lib/mailman/bin/check_db
-var/lib/mailman/.INST/bin/withlist  var/lib/mailman/bin/withlist
-var/lib/mailman/.INST/bin/check_perms  var/lib/mailman/bin/check_perms
-var/lib/mailman/.INST/bin/find_member  var/lib/mailman/bin/find_member
-var/lib/mailman/.INST/bin/version  var/lib/mailman/bin/version
-var/lib/mailman/.INST/bin/config_list  var/lib/mailman/bin/config_list
-var/lib/mailman/.INST/bin/list_lists  var/lib/mailman/bin/list_lists
-var/lib/mailman/.INST/bin/dumpdb  var/lib/mailman/bin/dumpdb
-var/lib/mailman/.INST/bin/cleanarch  var/lib/mailman/bin/cleanarch
-var/lib/mailman/.INST/bin/list_admins  var/lib/mailman/bin/list_admins
-var/lib/mailman/.INST/bin/genaliases  var/lib/mailman/bin/genaliases
-var/lib/mailman/.INST/bin/change_pw  var/lib/mailman/bin/change_pw
-var/lib/mailman/.INST/bin/mailmanctl  var/lib/mailman/bin/mailmanctl
-var/lib/mailman/.INST/bin/qrunner  var/lib/mailman/bin/qrunner
-var/lib/mailman/.INST/bin/inject  var/lib/mailman/bin/inject
-var/lib/mailman/.INST/bin/unshunt  var/lib/mailman/bin/unshunt
-var/lib/mailman/.INST/bin/fix_url.py  var/lib/mailman/bin/fix_url.py
-var/lib/mailman/.INST/bin/convert.py  var/lib/mailman/bin/convert.py
-var/lib/mailman/.INST/bin/transcheck  var/lib/mailman/bin/transcheck
-var/lib/mailman/.INST/bin/b4b5-archfix  var/lib/mailman/bin/b4b5-archfix
-var/lib/mailman/.INST/bin/list_owners  var/lib/mailman/bin/list_owners
-var/lib/mailman/.INST/bin/msgfmt.py  var/lib/mailman/bin/msgfmt.py
-var/lib/mailman/.INST/bin/show_qfiles  var/lib/mailman/bin/show_qfiles
-var/lib/mailman/.INST/bin/discard  var/lib/mailman/bin/discard
-var/lib/mailman/.INST/bin/rb-archfix  var/lib/mailman/bin/rb-archfix
-var/lib/mailman/.INST/bin/paths.py  var/lib/mailman/bin/paths.py
-var/lib/mailman/.INST/scripts/bounces  var/lib/mailman/scripts/bounces
-var/lib/mailman/.INST/scripts/confirm  var/lib/mailman/scripts/confirm
-var/lib/mailman/.INST/scripts/driver  var/lib/mailman/scripts/driver
-var/lib/mailman/.INST/scripts/join  var/lib/mailman/scripts/join
-var/lib/mailman/.INST/scripts/leave  var/lib/mailman/scripts/leave
-var/lib/mailman/.INST/scripts/owner  var/lib/mailman/scripts/owner
-var/lib/mailman/.INST/scripts/post  var/lib/mailman/scripts/post
-var/lib/mailman/.INST/scripts/request  var/lib/mailman/scripts/request
-var/lib/mailman/.INST/scripts/admin  var/lib/mailman/scripts/admin
-var/lib/mailman/.INST/scripts/subscribe  var/lib/mailman/scripts/subscribe
-var/lib/mailman/.INST/scripts/unsubscribe  var/lib/mailman/scripts/unsubscribe
-var/lib/mailman/.INST/scripts/paths.py  var/lib/mailman/scripts/paths.py
-var/lib/mailman/.INST/Mailman/Cgi/Auth.py  var/lib/mailman/Mailman/Cgi/Auth.py
-var/lib/mailman/.INST/Mailman/Cgi/__init__.py  var/lib/mailman/Mailman/Cgi/__init__.py
-var/lib/mailman/.INST/Mailman/Cgi/admin.py  var/lib/mailman/Mailman/Cgi/admin.py
-var/lib/mailman/.INST/Mailman/Cgi/admindb.py  var/lib/mailman/Mailman/Cgi/admindb.py
-var/lib/mailman/.INST/Mailman/Cgi/confirm.py  var/lib/mailman/Mailman/Cgi/confirm.py
-var/lib/mailman/.INST/Mailman/Cgi/create.py  var/lib/mailman/Mailman/Cgi/create.py
-var/lib/mailman/.INST/Mailman/Cgi/edithtml.py  var/lib/mailman/Mailman/Cgi/edithtml.py
-var/lib/mailman/.INST/Mailman/Cgi/listinfo.py  var/lib/mailman/Mailman/Cgi/listinfo.py
-var/lib/mailman/.INST/Mailman/Cgi/options.py  var/lib/mailman/Mailman/Cgi/options.py
-var/lib/mailman/.INST/Mailman/Cgi/private.py  var/lib/mailman/Mailman/Cgi/private.py
-var/lib/mailman/.INST/Mailman/Cgi/rmlist.py  var/lib/mailman/Mailman/Cgi/rmlist.py
-var/lib/mailman/.INST/Mailman/Cgi/roster.py  var/lib/mailman/Mailman/Cgi/roster.py
-var/lib/mailman/.INST/Mailman/Cgi/subscribe.py  var/lib/mailman/Mailman/Cgi/subscribe.py
-var/lib/mailman/.INST/Mailman/Logging/Logger.py  var/lib/mailman/Mailman/Logging/Logger.py
-var/lib/mailman/.INST/Mailman/Logging/MultiLogger.py  var/lib/mailman/Mailman/Logging/MultiLogger.py
-var/lib/mailman/.INST/Mailman/Logging/StampedLogger.py  var/lib/mailman/Mailman/Logging/StampedLogger.py
-var/lib/mailman/.INST/Mailman/Logging/Syslog.py  var/lib/mailman/Mailman/Logging/Syslog.py
-var/lib/mailman/.INST/Mailman/Logging/Utils.py  var/lib/mailman/Mailman/Logging/Utils.py
-var/lib/mailman/.INST/Mailman/Logging/__init__.py  var/lib/mailman/Mailman/Logging/__init__.py
-var/lib/mailman/.INST/Mailman/Archiver/__init__.py  var/lib/mailman/Mailman/Archiver/__init__.py
-var/lib/mailman/.INST/Mailman/Archiver/Archiver.py  var/lib/mailman/Mailman/Archiver/Archiver.py
-var/lib/mailman/.INST/Mailman/Archiver/HyperArch.py  var/lib/mailman/Mailman/Archiver/HyperArch.py
-var/lib/mailman/.INST/Mailman/Archiver/HyperDatabase.py  var/lib/mailman/Mailman/Archiver/HyperDatabase.py
-var/lib/mailman/.INST/Mailman/Archiver/pipermail.py  var/lib/mailman/Mailman/Archiver/pipermail.py
-var/lib/mailman/.INST/Mailman/Handlers/Acknowledge.py  var/lib/mailman/Mailman/Handlers/Acknowledge.py
-var/lib/mailman/.INST/Mailman/Handlers/AfterDelivery.py  var/lib/mailman/Mailman/Handlers/AfterDelivery.py
-var/lib/mailman/.INST/Mailman/Handlers/Approve.py  var/lib/mailman/Mailman/Handlers/Approve.py
-var/lib/mailman/.INST/Mailman/Handlers/AvoidDuplicates.py  var/lib/mailman/Mailman/Handlers/AvoidDuplicates.py
-var/lib/mailman/.INST/Mailman/Handlers/CalcRecips.py  var/lib/mailman/Mailman/Handlers/CalcRecips.py
-var/lib/mailman/.INST/Mailman/Handlers/Cleanse.py  var/lib/mailman/Mailman/Handlers/Cleanse.py
-var/lib/mailman/.INST/Mailman/Handlers/CookHeaders.py  var/lib/mailman/Mailman/Handlers/CookHeaders.py
-var/lib/mailman/.INST/Mailman/Handlers/Decorate.py  var/lib/mailman/Mailman/Handlers/Decorate.py
-var/lib/mailman/.INST/Mailman/Handlers/Emergency.py  var/lib/mailman/Mailman/Handlers/Emergency.py
-var/lib/mailman/.INST/Mailman/Handlers/FileRecips.py  var/lib/mailman/Mailman/Handlers/FileRecips.py
-var/lib/mailman/.INST/Mailman/Handlers/Hold.py  var/lib/mailman/Mailman/Handlers/Hold.py
-var/lib/mailman/.INST/Mailman/Handlers/MimeDel.py  var/lib/mailman/Mailman/Handlers/MimeDel.py
-var/lib/mailman/.INST/Mailman/Handlers/Moderate.py  var/lib/mailman/Mailman/Handlers/Moderate.py
-var/lib/mailman/.INST/Mailman/Handlers/OwnerRecips.py  var/lib/mailman/Mailman/Handlers/OwnerRecips.py
-var/lib/mailman/.INST/Mailman/Handlers/Replybot.py  var/lib/mailman/Mailman/Handlers/Replybot.py
-var/lib/mailman/.INST/Mailman/Handlers/SMTPDirect.py  var/lib/mailman/Mailman/Handlers/SMTPDirect.py
-var/lib/mailman/.INST/Mailman/Handlers/Scrubber.py  var/lib/mailman/Mailman/Handlers/Scrubber.py
-var/lib/mailman/.INST/Mailman/Handlers/Sendmail.py  var/lib/mailman/Mailman/Handlers/Sendmail.py
-var/lib/mailman/.INST/Mailman/Handlers/SpamDetect.py  var/lib/mailman/Mailman/Handlers/SpamDetect.py
-var/lib/mailman/.INST/Mailman/Handlers/Tagger.py  var/lib/mailman/Mailman/Handlers/Tagger.py
-var/lib/mailman/.INST/Mailman/Handlers/ToArchive.py  var/lib/mailman/Mailman/Handlers/ToArchive.py
-var/lib/mailman/.INST/Mailman/Handlers/ToDigest.py  var/lib/mailman/Mailman/Handlers/ToDigest.py
-var/lib/mailman/.INST/Mailman/Handlers/ToOutgoing.py  var/lib/mailman/Mailman/Handlers/ToOutgoing.py
-var/lib/mailman/.INST/Mailman/Handlers/ToUsenet.py  var/lib/mailman/Mailman/Handlers/ToUsenet.py
-var/lib/mailman/.INST/Mailman/Handlers/__init__.py  var/lib/mailman/Mailman/Handlers/__init__.py
-var/lib/mailman/.INST/Mailman/Queue/ArchRunner.py  var/lib/mailman/Mailman/Queue/ArchRunner.py
-var/lib/mailman/.INST/Mailman/Queue/BounceRunner.py  var/lib/mailman/Mailman/Queue/BounceRunner.py
-var/lib/mailman/.INST/Mailman/Queue/CommandRunner.py  var/lib/mailman/Mailman/Queue/CommandRunner.py
-var/lib/mailman/.INST/Mailman/Queue/IncomingRunner.py  var/lib/mailman/Mailman/Queue/IncomingRunner.py
-var/lib/mailman/.INST/Mailman/Queue/MaildirRunner.py  var/lib/mailman/Mailman/Queue/MaildirRunner.py
-var/lib/mailman/.INST/Mailman/Queue/NewsRunner.py  var/lib/mailman/Mailman/Queue/NewsRunner.py
-var/lib/mailman/.INST/Mailman/Queue/OutgoingRunner.py  var/lib/mailman/Mailman/Queue/OutgoingRunner.py
-var/lib/mailman/.INST/Mailman/Queue/RetryRunner.py  var/lib/mailman/Mailman/Queue/RetryRunner.py
-var/lib/mailman/.INST/Mailman/Queue/Runner.py  var/lib/mailman/Mailman/Queue/Runner.py
-var/lib/mailman/.INST/Mailman/Queue/Switchboard.py  var/lib/mailman/Mailman/Queue/Switchboard.py
-var/lib/mailman/.INST/Mailman/Queue/VirginRunner.py  var/lib/mailman/Mailman/Queue/VirginRunner.py
-var/lib/mailman/.INST/Mailman/Queue/__init__.py  var/lib/mailman/Mailman/Queue/__init__.py
-var/lib/mailman/.INST/Mailman/Queue/sbcache.py  var/lib/mailman/Mailman/Queue/sbcache.py
-var/lib/mailman/.INST/Mailman/Bouncers/BouncerAPI.py  var/lib/mailman/Mailman/Bouncers/BouncerAPI.py
-var/lib/mailman/.INST/Mailman/Bouncers/Caiwireless.py  var/lib/mailman/Mailman/Bouncers/Caiwireless.py
-var/lib/mailman/.INST/Mailman/Bouncers/Compuserve.py  var/lib/mailman/Mailman/Bouncers/Compuserve.py
-var/lib/mailman/.INST/Mailman/Bouncers/DSN.py  var/lib/mailman/Mailman/Bouncers/DSN.py
-var/lib/mailman/.INST/Mailman/Bouncers/Exchange.py  var/lib/mailman/Mailman/Bouncers/Exchange.py
-var/lib/mailman/.INST/Mailman/Bouncers/Exim.py  var/lib/mailman/Mailman/Bouncers/Exim.py
-var/lib/mailman/.INST/Mailman/Bouncers/GroupWise.py  var/lib/mailman/Mailman/Bouncers/GroupWise.py
-var/lib/mailman/.INST/Mailman/Bouncers/LLNL.py  var/lib/mailman/Mailman/Bouncers/LLNL.py
-var/lib/mailman/.INST/Mailman/Bouncers/Microsoft.py  var/lib/mailman/Mailman/Bouncers/Microsoft.py
-var/lib/mailman/.INST/Mailman/Bouncers/Netscape.py  var/lib/mailman/Mailman/Bouncers/Netscape.py
-var/lib/mailman/.INST/Mailman/Bouncers/Postfix.py  var/lib/mailman/Mailman/Bouncers/Postfix.py
-var/lib/mailman/.INST/Mailman/Bouncers/Qmail.py  var/lib/mailman/Mailman/Bouncers/Qmail.py
-var/lib/mailman/.INST/Mailman/Bouncers/SMTP32.py  var/lib/mailman/Mailman/Bouncers/SMTP32.py
-var/lib/mailman/.INST/Mailman/Bouncers/SimpleMatch.py  var/lib/mailman/Mailman/Bouncers/SimpleMatch.py
-var/lib/mailman/.INST/Mailman/Bouncers/SimpleWarning.py  var/lib/mailman/Mailman/Bouncers/SimpleWarning.py
-var/lib/mailman/.INST/Mailman/Bouncers/Sina.py  var/lib/mailman/Mailman/Bouncers/Sina.py
-var/lib/mailman/.INST/Mailman/Bouncers/Yahoo.py  var/lib/mailman/Mailman/Bouncers/Yahoo.py
-var/lib/mailman/.INST/Mailman/Bouncers/Yale.py  var/lib/mailman/Mailman/Bouncers/Yale.py
-var/lib/mailman/.INST/Mailman/Bouncers/__init__.py  var/lib/mailman/Mailman/Bouncers/__init__.py
-var/lib/mailman/.INST/Mailman/MTA/Manual.py  var/lib/mailman/Mailman/MTA/Manual.py
-var/lib/mailman/.INST/Mailman/MTA/Postfix.py  var/lib/mailman/Mailman/MTA/Postfix.py
-var/lib/mailman/.INST/Mailman/MTA/Utils.py  var/lib/mailman/Mailman/MTA/Utils.py
-var/lib/mailman/.INST/Mailman/MTA/__init__.py  var/lib/mailman/Mailman/MTA/__init__.py
-var/lib/mailman/.INST/Mailman/Gui/Archive.py  var/lib/mailman/Mailman/Gui/Archive.py
-var/lib/mailman/.INST/Mailman/Gui/Autoresponse.py  var/lib/mailman/Mailman/Gui/Autoresponse.py
-var/lib/mailman/.INST/Mailman/Gui/Bounce.py  var/lib/mailman/Mailman/Gui/Bounce.py
-var/lib/mailman/.INST/Mailman/Gui/ContentFilter.py  var/lib/mailman/Mailman/Gui/ContentFilter.py
-var/lib/mailman/.INST/Mailman/Gui/Digest.py  var/lib/mailman/Mailman/Gui/Digest.py
-var/lib/mailman/.INST/Mailman/Gui/GUIBase.py  var/lib/mailman/Mailman/Gui/GUIBase.py
-var/lib/mailman/.INST/Mailman/Gui/General.py  var/lib/mailman/Mailman/Gui/General.py
-var/lib/mailman/.INST/Mailman/Gui/Language.py  var/lib/mailman/Mailman/Gui/Language.py
-var/lib/mailman/.INST/Mailman/Gui/Membership.py  var/lib/mailman/Mailman/Gui/Membership.py
-var/lib/mailman/.INST/Mailman/Gui/NonDigest.py  var/lib/mailman/Mailman/Gui/NonDigest.py
-var/lib/mailman/.INST/Mailman/Gui/Passwords.py  var/lib/mailman/Mailman/Gui/Passwords.py
-var/lib/mailman/.INST/Mailman/Gui/Privacy.py  var/lib/mailman/Mailman/Gui/Privacy.py
-var/lib/mailman/.INST/Mailman/Gui/Topics.py  var/lib/mailman/Mailman/Gui/Topics.py
-var/lib/mailman/.INST/Mailman/Gui/Usenet.py  var/lib/mailman/Mailman/Gui/Usenet.py
-var/lib/mailman/.INST/Mailman/Gui/__init__.py  var/lib/mailman/Mailman/Gui/__init__.py
-var/lib/mailman/.INST/Mailman/Commands/__init__.py  var/lib/mailman/Mailman/Commands/__init__.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_confirm.py  var/lib/mailman/Mailman/Commands/cmd_confirm.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_echo.py  var/lib/mailman/Mailman/Commands/cmd_echo.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_end.py  var/lib/mailman/Mailman/Commands/cmd_end.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_help.py  var/lib/mailman/Mailman/Commands/cmd_help.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_info.py  var/lib/mailman/Mailman/Commands/cmd_info.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_join.py  var/lib/mailman/Mailman/Commands/cmd_join.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_leave.py  var/lib/mailman/Mailman/Commands/cmd_leave.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_lists.py  var/lib/mailman/Mailman/Commands/cmd_lists.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_password.py  var/lib/mailman/Mailman/Commands/cmd_password.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_remove.py  var/lib/mailman/Mailman/Commands/cmd_remove.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_set.py  var/lib/mailman/Mailman/Commands/cmd_set.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_stop.py  var/lib/mailman/Mailman/Commands/cmd_stop.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_subscribe.py  var/lib/mailman/Mailman/Commands/cmd_subscribe.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_unsubscribe.py  var/lib/mailman/Mailman/Commands/cmd_unsubscribe.py
-var/lib/mailman/.INST/Mailman/Commands/cmd_who.py  var/lib/mailman/Mailman/Commands/cmd_who.py
-var/lib/mailman/.INST/Mailman/Autoresponder.py  var/lib/mailman/Mailman/Autoresponder.py
-var/lib/mailman/.INST/Mailman/Bouncer.py  var/lib/mailman/Mailman/Bouncer.py
-var/lib/mailman/.INST/Mailman/Defaults.py  var/lib/mailman/Mailman/Defaults.py
-var/lib/mailman/.INST/Mailman/Deliverer.py  var/lib/mailman/Mailman/Deliverer.py
-var/lib/mailman/.INST/Mailman/Digester.py  var/lib/mailman/Mailman/Digester.py
-var/lib/mailman/.INST/Mailman/Errors.py  var/lib/mailman/Mailman/Errors.py
-var/lib/mailman/.INST/Mailman/GatewayManager.py  var/lib/mailman/Mailman/GatewayManager.py
-var/lib/mailman/.INST/Mailman/HTMLFormatter.py  var/lib/mailman/Mailman/HTMLFormatter.py
-var/lib/mailman/.INST/Mailman/ListAdmin.py  var/lib/mailman/Mailman/ListAdmin.py
-var/lib/mailman/.INST/Mailman/LockFile.py  var/lib/mailman/Mailman/LockFile.py
-var/lib/mailman/.INST/Mailman/MailList.py  var/lib/mailman/Mailman/MailList.py
-var/lib/mailman/.INST/Mailman/Mailbox.py  var/lib/mailman/Mailman/Mailbox.py
-var/lib/mailman/.INST/Mailman/MemberAdaptor.py  var/lib/mailman/Mailman/MemberAdaptor.py
-var/lib/mailman/.INST/Mailman/Message.py  var/lib/mailman/Mailman/Message.py
-var/lib/mailman/.INST/Mailman/OldStyleMemberships.py  var/lib/mailman/Mailman/OldStyleMemberships.py
-var/lib/mailman/.INST/Mailman/Pending.py  var/lib/mailman/Mailman/Pending.py
-var/lib/mailman/.INST/Mailman/Post.py  var/lib/mailman/Mailman/Post.py
-var/lib/mailman/.INST/Mailman/SafeDict.py  var/lib/mailman/Mailman/SafeDict.py
-var/lib/mailman/.INST/Mailman/SecurityManager.py  var/lib/mailman/Mailman/SecurityManager.py
-var/lib/mailman/.INST/Mailman/Site.py  var/lib/mailman/Mailman/Site.py
-var/lib/mailman/.INST/Mailman/TopicMgr.py  var/lib/mailman/Mailman/TopicMgr.py
-var/lib/mailman/.INST/Mailman/UserDesc.py  var/lib/mailman/Mailman/UserDesc.py
-var/lib/mailman/.INST/Mailman/Utils.py  var/lib/mailman/Mailman/Utils.py
-var/lib/mailman/.INST/Mailman/Version.py  var/lib/mailman/Mailman/Version.py
-var/lib/mailman/.INST/Mailman/__init__.py  var/lib/mailman/Mailman/__init__.py
-var/lib/mailman/.INST/Mailman/htmlformat.py  var/lib/mailman/Mailman/htmlformat.py
-var/lib/mailman/.INST/Mailman/i18n.py  var/lib/mailman/Mailman/i18n.py
-var/lib/mailman/.INST/Mailman/versions.py  var/lib/mailman/Mailman/versions.py
-var/lib/mailman/.INST/Mailman/Debian/__init__.py  var/lib/mailman/Mailman/Debian/__init__.py
-var/lib/mailman/.INST/Mailman/Debian/helpers.py  var/lib/mailman/Mailman/Debian/helpers.py
-var/lib/mailman/.INST/Mailman/Debian/templates.py  var/lib/mailman/Mailman/Debian/templates.py
-var/lib/mailman/.INST/Mailman/Debian/cf_db.py  var/lib/mailman/Mailman/Debian/cf_db.py
-var/lib/mailman/.INST/cron/crontab.in  var/lib/mailman/cron/crontab.in
-var/lib/mailman/.INST/cron/checkdbs  var/lib/mailman/cron/checkdbs
-var/lib/mailman/.INST/cron/mailpasswds  var/lib/mailman/cron/mailpasswds
-var/lib/mailman/.INST/cron/senddigests  var/lib/mailman/cron/senddigests
-var/lib/mailman/.INST/cron/gate_news  var/lib/mailman/cron/gate_news
-var/lib/mailman/.INST/cron/nightly_gzip  var/lib/mailman/cron/nightly_gzip
-var/lib/mailman/.INST/cron/bumpdigests  var/lib/mailman/cron/bumpdigests
-var/lib/mailman/.INST/cron/disabled  var/lib/mailman/cron/disabled
-var/lib/mailman/.INST/cron/paths.py  var/lib/mailman/cron/paths.py

Deleted: branches/pkg-split/core/debian/logrotate
===================================================================
--- branches/pkg-split/core/debian/logrotate	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/logrotate	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,131 +0,0 @@
-/var/log/mailman/bounce {
-	weekly
-	missingok
-	create 0664 list list
-	rotate 4
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/digest {
-	monthly
-	missingok
-	create 0664 list list
-	rotate 4
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/error {
-	weekly
-	missingok
-	create 0664 list list
-	rotate 4
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/post {
-	monthly
-	missingok
-	create 0664 list list
-	rotate 12
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/smtp-failure {
-	daily
-	missingok
-	create 0664 list list
-	rotate 7
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/smtp {
-	daily
-	missingok
-	create 0664 list list
-	rotate 7
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/locks {
-	daily
-	missingok
-	create 0664 list list
-	rotate 7
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/fromusenet {
-	daily
-	missingok
-	create 0664 list list
-	rotate 7
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/qrunner {
-	daily
-	missingok
-	create 0664 list list
-	rotate 7
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/subscribe {
-	monthly
-	missingok
-	create 0664 list list
-	rotate 12
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}
-
-/var/log/mailman/vette {
-	weekly
-	missingok
-	create 0664 list list
-	rotate 4
-	compress
-	delaycompress
-        postrotate
-            [ -f '/var/run/mailman.pid' ] && kill -HUP $(cat /var/run/mailman.pid) || exit 0
-        endscript
-}

Copied: branches/pkg-split/core/debian/mailman.config (from rev 117, branches/pkg-split/core/debian/config)

Copied: branches/pkg-split/core/debian/mailman.dirs (from rev 104, branches/pkg-split/core/debian/dirs)

Copied: branches/pkg-split/core/debian/mailman.docs (from rev 104, branches/pkg-split/core/debian/docs)

Copied: branches/pkg-split/core/debian/mailman.install (from rev 116, branches/pkg-split/core/debian/install)

Copied: branches/pkg-split/core/debian/mailman.links (from rev 108, branches/pkg-split/core/debian/links)

Copied: branches/pkg-split/core/debian/mailman.logrotate (from rev 104, branches/pkg-split/core/debian/logrotate)

Copied: branches/pkg-split/core/debian/mailman.postinst (from rev 120, branches/pkg-split/core/debian/postinst)

Copied: branches/pkg-split/core/debian/mailman.postrm (from rev 109, branches/pkg-split/core/debian/postrm)

Copied: branches/pkg-split/core/debian/mailman.preinst (from rev 104, branches/pkg-split/core/debian/preinst)

Copied: branches/pkg-split/core/debian/mailman.prerm (from rev 104, branches/pkg-split/core/debian/prerm)

Copied: branches/pkg-split/core/debian/mailman.templates (from rev 104, branches/pkg-split/core/debian/templates)

Modified: branches/pkg-split/core/debian/po/POTFILES.in
===================================================================
--- branches/pkg-split/core/debian/po/POTFILES.in	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/po/POTFILES.in	2004-05-07 18:18:03 UTC (rev 121)
@@ -1 +1,3 @@
-[type: gettext/rfc822deb] templates
+[type: gettext/rfc822deb] mailman.templates
+[type: gettext/rfc822deb] mailman-en.templates
+[type: gettext/rfc822deb] mailman-i18n.templates

Deleted: branches/pkg-split/core/debian/postinst
===================================================================
--- branches/pkg-split/core/debian/postinst	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/postinst	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,276 +0,0 @@
-#! /usr/bin/python -O
-# $URL$
-# $Id$
-
-"""
-
-Fooling lintian that complains about not sourcing confmodule:
-. /usr/share/debconf/confmodule
-"""
-
-
-import sys, os
-
-
-# Argl, if the debconf Python interface were well designed, sth like
-#   from debconf import instance as db
-# should be sufficient here.  As it is, must work around it's flaws.
-def get_debconf_interface(title=''):
-    """Get an debconf interface instance, starting a frontend if
-    none is available.
-    """#
-    from debconf import Debconf, _frontEndProgram
-    try:             junk = os.environ['DEBIAN_HAS_FRONTEND']
-    except KeyError: os.execv(_frontEndProgram, [_frontEndProgram]+sys.argv)
-    return Debconf(title)
-db = get_debconf_interface() ; del get_debconf_interface
-#  Exception class and convenience constants
-from debconf import DebconfError, LOW, MEDIUM, HIGH, CRITICAL
-
-
-MM_HOME = '/var/lib/mailman'
-MM_BIN  = os.path.join(MM_HOME, 'bin')
-MM_INST = '/usr/share/mailman'
-
-sys.path.insert(0, MM_HOME)
-
-from Mailman.Debian import DebuggingLogger, CommandRunner, cfdb
-from errno import ENOENT
-
-
-
-def ucf_to_cfdb():
-    """Import templates under ucf control.
-
-    All Debian releases up to now that used ucf have only registered
-    files under /etc/mailman/LANG and /etc/mailman/qmail-to-mailman.py
-    with ucf, allowing this simplistic approach at moving to our own
-    conffile database.
-    """#
-    from Mailman.Debian import mm_languages
-
-    UCF_CACHE = '/var/lib/ucf/cache'
-    ETC_DIR   = '/etc/mailman/'
-    ETC_LEN   = len(ETC_DIR)
-
-    prev_lang = None
-
-    ucf_list = [ fn for fn in os.listdir(UCF_CACHE)
-                 if fn.startswith(':etc:mailman:') ]
-    if not ucf_list: return
-    
-    log('Moving files out of ucf control ', nl='')
-
-    for cached in ucf_list:
-        path = '/'.join(cached.split(':'))
-        ucf_cached = os.path.join(UCF_CACHE, cached)
-        tmpl = open(ucf_cached).read()
-        try:
-            reg_key = path[ETC_LEN:]
-            lang, tmpl = reg_key.split('/')
-            if lang in mm_languages:
-                if lang != prev_lang:
-                    if prev_lang: cfdb.sync()
-                    prev_lang = lang
-                cfdb.register(reg_key, tmpl)
-        except ValueError:
-            cfdb.register(path, tmpl)
-
-        os.system('ucf --purge --three-way %(path)s' % locals())
-        os.remove(ucf_cached)
-        log('.', nl='')
-
-    cfdb.sync()
-    log(' done.')
-
-
-def compile_modules(directory):
-    """Compiles all python modules in the specified directory.
-
-    
-    """#
-    from compileall import compile_dir
-    ca_script = sys.modules['compileall'].__file__
-    opt = ca_script[-1] == 'o'
-    ca_script = ca_script[:-1]
-    flag, _int, ext  = (opt and ('', ' optimized', '')
-                        or (' -O', '', ' optimized'))
-    log('Compiling%(_int)s modules ...' % locals(), nl='')
-    compile_dir(directory, force=True, quiet=True)
-    log(' done.')
-    log('Compiling%(ext)s modules ...' % locals(), nl='')
-    cmd = 'python%(flag)s %(ca_script)s -f -q %(directory)s' % locals()
-    log('\n%r' % cmd, lvl=2, nl='\n... ')
-    os.system(cmd)
-    log(' done.')
-
-
-def create_mm_cfg():
-    """Create an initial /etc/mailman/mm_cfg.py
-
-    This works only for a first time install.
-    """#
-    try:
-        gbls = globals().copy()
-
-        from Mailman.Debian import mm_cfg_defaults, mm_cfg_fillin
-        mm_cfg_fl = open('/etc/mailman/mm_cfg.py', 'w')
-        # Writing a constant prefix (including the import from Defaults)
-        # beforehand makes sure there is a formally working mm_cfg.
-        mm_cfg_fl.write(mm_cfg_defaults)
-        mm_cfg_fl.flush()
-
-        exec 'from Mailman.Defaults import *' in gbls
-
-        email_host = db.get('mailman/email_host')
-        gbls['DEFAULT_EMAIL_HOST'] = email_host
-        log('DEBCONF email_host=%(DEFAULT_EMAIL_HOST)r' % gbls, lvl=2)
-        url_host = db.get('mailman/url_host') or 'www.'+email_host
-        gbls['DEFAULT_URL_HOST']   = url_host
-        log('DEBCONF url_host=%(DEFAULT_URL_HOST)r' % gbls, lvl=2)
-        mm_cfg_fl.write(mm_cfg_fillin % gbls)
-        mm_cfg_fl.close()
-    except DebconfError, exc:
-        log.exception()
-
-
-def update_cron():
-    """Update mailman crontab according to debconf setting.
-
-    Additionally, if we are upgrading from a MM version using
-    /usr/lib/mailman, change pathes in crontab to
-    /var/lib/mailman.
-    """#
-    from Mailman.Debian import mm_crontab
-
-    gate_news = db.getBoolean('mailman/gate_news')
-    log('DEBCONF gate_news=%(gate_news)r' % locals(), lvl=2)
-    cron_tab = '/etc/cron.d/mailman'
-
-    try:
-        old_crontab = open(cron_tab).read()
-        cur_crontab = fix_pathes(old_crontab)
-        if cur_crontab != old_crontab:
-            open(cron_tab, 'w').write(cur_crontab)
-            log('Fixed pathes in %(cron_tab)r.' % locals())
-            old_crontab = cur_crontab
-        cur_crontab = apply_gate_news(old_crontab, gate_news)
-        if cur_crontab != old_crontab:
-            open(cron_tab, 'w').write(cur_crontab)
-    except IOError, err:
-        if err.errno != ENOENT: raise
-
-    new_crontab = apply_gate_news(mm_crontab, gate_news)
-
-    # Make sure cfdb comparision use identical gate_news settings
-    if cfdb.has_key(cron_tab):
-        cfdb[cron_tab] = apply_gate_news(cfdb[cron_tab], gate_news)
-    else:
-        cfdb.register(cron_tab, new_crontab)
-
-    msg = cfdb.update(cron_tab, data=new_crontab)
-    log(msg, lvl=2)
-
-
-
-def fix_pathes(crontab):
-    """Fix obsolete /usr/lib/mailman/cron pathes"""
-    lines = crontab.split('\n')
-    cron_lines = []
-    for line in lines:
-        pos = line.find('/usr/lib/mailman')
-        if pos >= 0:
-            line = line[:pos] + '/var' + line[pos+4:]
-        cron_lines.append(line)
-    return '\n'.join(cron_lines)
-
-
-def apply_gate_news(crontab, gate_news):
-    """Apply gate_news setting to crontab string"""
-    lines = crontab.split('\n')
-    cron_lines = []
-    for line in lines:
-        if line.find('/var/lib/mailman/cron/gate_news') > 0:
-            prefix = (gate_news and [''] or ['# '])[0]
-            line = prefix + uncomment(line)
-        cron_lines.append(line)
-    return '\n'.join(cron_lines)
-
-
-def uncomment(line):
-    line = line.lstrip()
-    while line[0] == '#':
-        line = line[1:].lstrip()
-    return line
-
-
-def fix_perms():
-    """Fix directory permissions to allow write access to group list.
-    """#
-    log('Fixing permissions ...', nl='', lvl=2)
-    check_perms = os.path.join(MM_BIN, 'check_perms')
-    rc = CommandRunner(MM_BIN).run(check_perms, '-f', '-q')
-    if rc:
-        log(' done, rc=%r.' % rc, lvl=2)
-    else:
-        log(' done.', lvl=2)
-    return rc
-
-
-def update_lists():
-    """Update mailing list configurations.
-    """#
-    log('Updating existing mailing lists ...', nl='', lvl=2)
-    update = os.path.join(MM_BIN, 'update')
-    rc = CommandRunner(MM_BIN).run(update)
-    if rc:
-        log(' done, rc=%r.' % rc, lvl=2)
-    else:
-        log(' done.', lvl=2)
-    return rc
-
-
-def run_debhelper_additions():
-    from Mailman import mm_cfg
-    help = os.path.join(mm_cfg.TEMPLATE_DIR,
-                        mm_cfg.DEFAULT_SERVER_LANGUAGE,
-                        'help.txt')
-    log(os.path.isfile(help) and 'Will start daemon.'
-        or 'Will not start daemon.', lvl=2)
-    enabled = os.path.isfile(help) and '+x' or '-x'
-    from popen2 import Popen4
-    runner = Popen4('/bin/sh -e')
-    runner.tochild.write("""\
-chmod %s /var/lib/mailman/bin/mailmanctl
-#DEBHELPER#""" % enabled)
-    runner.tochild.close()
-    while True:
-        rc = runner.poll()
-        if rc != -1: break
-        log(runner.fromchild.readline(), nl='')
-    log(runner.fromchild.read(), nl='')
-    if rc != 0:
-        raise SystemExit(1)
-
-
-def setup():
-    compile_modules(MM_HOME)
-    ucf_to_cfdb()
-    create_mm_cfg()
-    update_cron()
-    update_lists()
-    fix_perms()
-    run_debhelper_additions()
-
-
-if __name__ == '__main__':
-    log = DebuggingLogger('MM_MAINT')
-    try:
-        function    = sys.argv[1]
-        inst_version = sys.argv[2]
-        if function in ('configure',):
-            setup()
-    finally:
-        # When things break, this information might be useful
-        log.sys_info()
-

Deleted: branches/pkg-split/core/debian/postrm
===================================================================
--- branches/pkg-split/core/debian/postrm	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/postrm	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,13 +0,0 @@
-#! /bin/sh -e
-# $URL$
-# $Id$
-
-#DEBHELPER#
-
-if [ "$1" = purge ]; then
-  rm -f /etc/cron.d/mailman 
-  rm -rf /etc/mailman
-  rm -rf /var/log/mailman
-  rm -f /var/lib/mailman/data/debcf.db
-#  rm -rf /var/lib/mailman
-fi

Deleted: branches/pkg-split/core/debian/preinst
===================================================================
--- branches/pkg-split/core/debian/preinst	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/preinst	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,62 +0,0 @@
-#!/bin/sh -e
-# $URL$
-# $Id$
-
-if [ "$1" = "install" ]; then
-	if ! id -g list > /dev/null 2>&1 ; then
-		addgroup --system list
-	fi
-	if ! id -u list > /dev/null 2>&1 ; then
-		adduser --system --home /var/list --ingroup list list
-		chsh -s /bin/sh list
-	fi
-fi
-
-if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
-	if [ -d /var/lib/mailman/logs ] && [ ! -L /var/lib/mailman/logs ] ; then
-		echo "New logs will be generated in /var/log/mailman"
-	fi
-fi
-
-if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 2.1; then
-    # upgrading, make sure the qfiles directory is empty.
-    if ls /var/lib/mailman/qfiles 2>/dev/null | grep -q '.*' ; then
-        # uh-oh.
-        echo "Queue not cleared, please flush mailman queue and retry upgrade"
-        exit 1
-    fi
-fi
-
-mm_home=/var/lib/mailman
-pythonlib=${mm_home}/pythonlib
-
-if [ -d ${pythonlib} ] && [ "$(ls -A ${pythonlib})" != "" ] ; then
-    cat <<EOF 
-You have a non-empty ${pythonlib}, possibly caused by an incomplete
-removal of an ancient mailman version.  In any case it's contents may
-lead to mailman failing in obscure ways.
-
-If you want it to be moved to ${pythonlib}.obsolete.$$ now, answer Y
-to the following question, any other response will abort installation
-and give you the opportunity to examine the situation.
-EOF
-    read -p "Move ${pythonlib} out of the way? [yN] " ans
-    case $ans in
-        y|Y)  mv ${pythonlib} ${pythonlib}.obsolete.$$
-            ;;
-        *) exit 1
-            ;;
-    esac
-fi
-
-# Before unpacking make sure no symlink cruft is left in ${mm_home}
-for d in Mailman bin cron mail pythonlib scripts ; do
-    if [ -L ${mm_home}/${d} ]; then
-        rm -f ${mm_home}/${d}
-    fi
-done
-
-
-#DEBHELPER#
-
-exit 0

Deleted: branches/pkg-split/core/debian/prerm
===================================================================
--- branches/pkg-split/core/debian/prerm	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/prerm	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,43 +0,0 @@
-#! /bin/sh -e
-#
-# prerm script for Debian python packages.
-# Written 1998 by Gregor Hoffleit <flight at debian.org>.
-#
-# $URL$
-# $Id$
-
-# Hack to allow upgrade from broken 2.1.1 installs where stopping
-# mailman will fail.  This hack can be removed after sarge+1 is released.
-
-if [ "$1" = "failed-upgrade" -a \( "$2" = "2.1.1-1" -o \
-     "$2" = "2.1.1-2" -o "$2" = "2.1.1-3" \) ]; then
-  if [ -x "/etc/init.d/mailman" ]; then
-    if [ -x /usr/sbin/invoke-rc.d ] ; then
-   	  invoke-rc.d mailman stop || true
-    else
-      /etc/init.d/mailman stop || true
-    fi
-  fi
-  chmod -x /usr/lib/mailman/bin/mailmanctl
-fi
-
-if [ "$1" = "failed-upgrade" ] && dpkg --compare-versions "$2" gt "2.1.4-2" ; then
-  if [ -x "/etc/init.d/mailman" ]; then
-    if [ -x /usr/sbin/invoke-rc.d ] ; then
-      invoke-rc.d mailman stop || true
-    else
-      /etc/init.d/mailman stop || true
-    fi
-  fi
-  chmod -x /usr/lib/mailman/bin/mailmanctl
-fi
-
-#DEBHELPER#
-
-PACKAGE=mailman
-
-# dh_python doesn't do TRT[tm], do it manually
-# We have created symlinks and compiled .py files in the postinst, undo now.
-dpkg --listfiles $PACKAGE |
-    awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
-    xargs rm -f >&2

Deleted: branches/pkg-split/core/debian/templates
===================================================================
--- branches/pkg-split/core/debian/templates	2004-05-07 18:08:24 UTC (rev 120)
+++ branches/pkg-split/core/debian/templates	2004-05-07 18:18:03 UTC (rev 121)
@@ -1,69 +0,0 @@
-# $URL$
-# $Id$
-Template: mailman/site_languages
-Type: multiselect
-__Choices: big5, ca, cs, da, de, en, es, et, eu, fi, fr, gb, hr, hu, it, ja, ko, lt, nl, no, pl, pt, pt_BR, ro, ru, sl, sr, sv, uk
-Default: en
-_Description: Which languages to support?  
- For each supported language Debian Mailman stores default language
- specific texts in /etc/mailman/LANG/ giving them conffile like
- treatment with the help of ucf.  This means approximately 150kB for
- each supported language on the root FS.
- .
- If you need a different set of languages at a later time, just run
- dpkg-reconfigure mailman.
- .
- NOTE: Languages enabled on existing mailing lists are forcibly
- reenabled when deselected and mailman needs at least one language for
- displaying it's messages.
-
-Template: mailman/used_languages
-Type: string
-Description: Internal holding result of scan
-
-Template: mailman/gate_news
-Type: boolean
-Default: false
-_Description: Gate news to mail?
- Do you want to gate news to mail, that is, send all the messages which
- appear in a newsgroup to a mailing list.
- .
- Most people won't need this.
-
-Template: mailman/create_site_list
-Type: note
-_Description: Missing site list
- Mailman needs a so-called "site list", which is the list from which
- password reminders and such are sent out from.  This list needs to be
- created before mailman will start.
- .
- To create the list, run "newlist mailman" and follow the instructions
- on-screen.  Note that you also need to start mailman after that,
- using /etc/init.d/mailman start.
-
-Template: mailman/default_server_language
-Type: select
-Choices: ${site_languages}
-_Description: Which language should be the default for Mailman?
- The web page will be shown in this language, and in general, Mailman
- will use this language to communicate with the user.
-
-Template: mailman/email_host
-Type: string
-Default: localhost
-_Description: What will be the domain part of mailing list addresses?
- Either use the default from /etc/mailname or you might prefer to
- devote a full subdomain like lists.doma.in for use by mailman.
- .
- In any case your mail transfer agent (MTA) must be configured to
- accept mail for that domain.
-
-Template: mailman/url_host
-Type: string
-Default: localhost
-_Description: What will be the host part of mailing list URLs?
- Either use the default derived from /etc/mailname or you might prefer
- to devote a full subdomain like lists.doma.in for use by mailman.
- .
- In any case if this isn't the FQDN of this host, you must configure
- it as a virtual host in your web server.




More information about the Pkg-mailman-hackers mailing list