[Pkg-mailman-hackers] Pkg-mailman commit - rev 249 - trunk/debian

Lionel Elie Mamane lmamane at costa.debian.org
Thu Dec 8 20:11:11 UTC 2005


Author: lmamane
Date: 2005-12-08 20:11:10 +0000 (Thu, 08 Dec 2005)
New Revision: 249

Modified:
   trunk/debian/changelog
   trunk/debian/postinst
   trunk/debian/templates
Log:
Bug #340503: Warn admin that aliases need updating, or just do it.


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2005-11-26 09:03:46 UTC (rev 248)
+++ trunk/debian/changelog	2005-12-08 20:11:10 UTC (rev 249)
@@ -1,3 +1,9 @@
+mailman (2.1.5-11) UNRELEASED; urgency=low
+
+  * Run genaliases (or direct admin to do it) on upgrade from 2.0 (closes: #340503)
+
+ -- Lionel Elie Mamane <lmamane at debian.org>  Thu,  8 Dec 2005 21:05:03 +0100
+
 mailman (2.1.5-10) unstable; urgency=low
 
   * Merge with 2.1.5-8ubuntu2:

Modified: trunk/debian/postinst
===================================================================
--- trunk/debian/postinst	2005-11-26 09:03:46 UTC (rev 248)
+++ trunk/debian/postinst	2005-12-08 20:11:10 UTC (rev 249)
@@ -27,6 +27,23 @@
     mm_etc=/etc/mailman
     mm_dist=/usr/share/mailman
 
+    if [ "$2" != "" ] && dpkg --compare-versions "$2" lt "2.1"; then
+	# We need to update the aliases
+	mm_MTA=`grep ^MTA "/etc/mailman/mm_cfg.py" | sed "s/^MTA[[:space:]]*=[[:space:]]*'\\?\\(None\|Manual\|Postfix\\).*/\1/"`
+	case $mm_MTA in
+	    Postfix)
+		/var/lib/mailman/genaliases
+		;;
+	    None)
+	        # nothing to do
+		;;
+	    Manual)
+		db_input critical mailman/update_aliases || true
+		db_go
+		;;
+	esac
+    fi
+
     # Install only languages selected by the administrator
     # forcing used languages to be always available.
     db_get mailman/site_languages

Modified: trunk/debian/templates
===================================================================
--- trunk/debian/templates	2005-11-26 09:03:46 UTC (rev 248)
+++ trunk/debian/templates	2005-12-08 20:11:10 UTC (rev 249)
@@ -56,3 +56,13 @@
  (by way of mailmanctl start, then stopping it and redoing the upgrade
  when it is finished) or remove those files.  Note that removing the
  files will lose some emails sent to lists.
+
+Template: mailman/update_aliases
+Type: note
+_Description: Administrator must update aliases
+ The aliases you need for mailman in your MTA's configuration have
+ changed. Please run /var/lib/mailman/bin/genaliases to see the new
+ aliases you need.
+ .
+ Until you do that, some features will stop working and mails will go
+ out with an invalid Return-Path.




More information about the Pkg-mailman-hackers mailing list