diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/mailman.in | 54 | ||||
| -rw-r--r-- | data/paths.py.in | 90 |
2 files changed, 0 insertions, 144 deletions
diff --git a/data/mailman.in b/data/mailman.in deleted file mode 100644 index ac7d660d5..000000000 --- a/data/mailman.in +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -# -# mailman This shell script starts and stops GNU Mailman. -# -# Copyright (C) 2001-2011 by the Free Software Foundation, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Copy this file to /etc/init.d/ (or /etc/rc.d/init.d/ depending on -# your system) and activate it as such: -# -# On Debian, type "update-rc.d mailman defaults" -# On RedHat, and derivatives, install with "chkconfig --add mailman" -# -# chkconfig: 2345 98 12 -# description: Mailman is the GNU Mailing List Manager, a program that \ -# manages electronic mail discussion groups. For more \ -# on GNU Mailman see http://www.list.org -# processname: mailmanctl -# config: @prefix@/Mailman/mm_cfg.py -# pidfile: @prefix@/data/master-qrunner.pid - -PYTHON=@PYTHON@ -MAILMANHOME=@prefix@ -MAILMANCTL=$MAILMANHOME/bin/mailmanctl - -case "$1" in -'start') - #rm -f $MAILMANHOME/locks/* - $PYTHON $MAILMANCTL -s -q start - ;; - -'stop') - $PYTHON $MAILMANCTL -q stop - ;; - -'restart') - $PYTHON $MAILMANCTL -q restart - ;; - -esac -exit 0 diff --git a/data/paths.py.in b/data/paths.py.in deleted file mode 100644 index d1bd6347e..000000000 --- a/data/paths.py.in +++ /dev/null @@ -1,90 +0,0 @@ -# -*- python -*- - -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, -# USA. - -# configure turns this file into paths.py which is installed in the bin -# directory. By importing this module, sys.path gets `hacked' so that the -# $prefix/Mailman and $prefix/pythonlib directories are inserted at the start -# of that list. This file exports two attributes that other modules may use -# to get the absolute path to the installed Mailman distribution. -# -# Note that we can't use site.addsitedir() because that ends up appending -# directories to sys.path and we really need to add them to the front so that -# they override anything in the system Python. - -import os -import sys - -# Some scripts expect this attribute to be in this module -prefix = '@prefix@' -exec_prefix = '@exec_prefix@' - -# Work around a bogus autoconf 2.12 bug -if exec_prefix == '${prefix}': - exec_prefix = prefix - -pythonlib = os.path.join(prefix, 'pythonlib', 'lib', 'python') - -# Hack the path to include the parent directory of $prefix/Mailman -sys.path.insert(0, prefix) - -# Much of this is ripped off from site.py -paths = set() -for dirname in sys.path: - try: - if os.path.isdir(dirname): - paths.add(os.path.normcase(os.path.abspath(dirname))) - except TypeError: - pass - -extra_paths = [pythonlib] -for name in sorted(os.listdir(pythonlib)): - if os.path.splitext(name)[1] == '.pth': - filename = os.path.join(pythonlib, name) - try: - fp = open(filename, 'rU') - except IOError: - continue - try: - for line in fp: - if line.startswith('#'): - continue - if line.startswith('import'): - exec line - continue - line = line.rstrip() - path = os.path.abspath(os.path.join(pythonlib, line)) - path = os.path.normcase(path) - if not path in paths and os.path.exists(path): - # Here's what's different than site.py! - extra_paths.append(path) - paths.add(path) - finally: - fp.close() -# Add the new paths to the front of sys.path -sys.path[0:0] = extra_paths - - -# Arabic and Hebrew (RFC-1556) encoding aliases. (temporary solution) -import encodings.aliases -encodings.aliases.aliases.update({ - 'iso_8859_6_e': 'iso8859_6', - 'iso_8859_6_i': 'iso8859_6', - 'iso_8859_8_e': 'iso8859_8', - 'iso_8859_8_i': 'iso8859_8', - }) |
