Hi, this is a preliminary patch for mailman, that gives a first round of things for the mailman transition to the new policy.
as mailman is a daemon, it will also need to use rtupdates to be stopped when a /usr/bin/python change is triggered, and restarted when it's updated again: * in the pre-rtupdate mailman has to be stopped ; [ * inbetween on rtupdate pysupport will byte compile mailman again ] * in the post-rtupdate mailman has to be started again. See [1] or [2] for more details about it. [1] http://madism.org/~madcoder/policy/x608.html [2] http://people.debian.org/~doko/tmp/python-rtupdate.txt -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
diff -u mailman-2.1.8/debian/control mailman-2.1.8/debian/control
--- mailman-2.1.8/debian/control
+++ mailman-2.1.8/debian/control
@@ -3,16 +3,16 @@
Priority: optional
Maintainer: Mailman for Debian <[EMAIL PROTECTED]>
Uploaders: Tollef Fog Heen <[EMAIL PROTECTED]>, Lionel Elie Mamane <[EMAIL
PROTECTED]>
-Build-Depends: debhelper (>= 4.1.16), autoconf, python-dev, dpatch (>= 2.0.9)
-Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 4.1.16), autoconf, python-dev, dpatch (>= 2.0.9),
python-support (>= 0.4)
+Standards-Version: 3.7.2
Package: mailman
Architecture: any
Pre-Depends: debconf (>= 1.4.16) | debconf-2.0
-Depends: ${shlibs:Depends}, python (>= 2.2.2.91-1), logrotate, cron (>=
3.0pl1-42), exim4 | mail-transport-agent, apache | httpd, ucf (>= 0.28), pwgen,
adduser
+Depends: ${shlibs:Depends}, ${python:Depends}, logrotate, cron (>= 3.0pl1-42),
exim4 | mail-transport-agent, apache | httpd, ucf (>= 0.28), pwgen, adduser
Conflicts: suidmanager (<< 0.50), sendmail (<< 8.12.6)
Recommends: base-passwd (>= 1.3.0)
-Suggests: spamassassin, python2.3-korean-codecs | python2.2-korean-codecs,
python-japanese-codecs, listadmin
+Suggests: spamassassin, python-korean-codecs, python-japanese-codecs, listadmin
Description: Powerful, web-based mailing list manager
The GNU Mailing List Manager, which manages email discussion lists
much like Majordomo and Smartmail. Unlike most similar products,
diff -u mailman-2.1.8/debian/postinst mailman-2.1.8/debian/postinst
--- mailman-2.1.8/debian/postinst
+++ mailman-2.1.8/debian/postinst
@@ -305,16 +305,6 @@
case "$1" in
configure|abort-upgrade|abort-remove|abort-deconfigure)
- if [ -x /usr/bin/python ]; then
- for i in $DIRLIST; do
- python -O $PYLIBDIR/compileall.py -q $i
- python $PYLIBDIR/compileall.py -q $i
- rm -f /usr/lib/$PACKAGE/Mailman/mm_cfg.pyc
- rm -f /usr/lib/$PACKAGE/Mailman/mm_cfg.pyo
- chmod -R go=rX $i
- done
- fi
-
if [ -e /etc/mailname ]
then
DOMAIN=$(head -n 1 /etc/mailname)
diff -u mailman-2.1.8/debian/prerm mailman-2.1.8/debian/prerm
--- mailman-2.1.8/debian/prerm
+++ mailman-2.1.8/debian/prerm
@@ -37,5 +36,0 @@
-PACKAGE=mailman
-
-dpkg --listfiles $PACKAGE |
- awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
- xargs rm -f >&2
diff -u mailman-2.1.8/debian/changelog mailman-2.1.8/debian/changelog
--- mailman-2.1.8/debian/changelog
+++ mailman-2.1.8/debian/changelog
@@ -1,3 +1,14 @@
+mailman (0:2.1.8-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Update package to the new python policy (Closes: #380876):
+ + use python-support (before dh_installinit).
+ + remove the custom byte-compilation hooks from postinst and prerm.
+ + use dh_pysupport to generate substvars (needs >= 0.4.0).
+ + set debian/pyversion to 2.3- (defensive versionning).
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]> Thu, 10 Aug 2006 00:44:14 +0200
+
mailman (0:2.1.8-1) unstable; urgency=low
* New upstream release
diff -u mailman-2.1.8/debian/rules mailman-2.1.8/debian/rules
--- mailman-2.1.8/debian/rules
+++ mailman-2.1.8/debian/rules
@@ -131,6 +131,7 @@
do dh_link usr/lib/$(package)/bin/$$bin usr/sbin/$$bin; done
mv debian/mailman/usr/sbin/arch debian/mailman/usr/sbin/mmarch
dh_installman
+ dh_pysupport
dh_installinit
dh_installdebconf
dh_installexamples templates/* debian/mm_cfg.py \
only in patch2:
unchanged:
--- mailman-2.1.8.orig/debian/pyversions
+++ mailman-2.1.8/debian/pyversions
@@ -0,0 +1 @@
+2.3-
signature.asc
Description: Digital signature

