[Fusionforge-commits] r8108 - in branches/Branch_4_8/gforge: deb-specific debian

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Sep 4 19:17:14 CEST 2009


Author: lolando
Date: 2009-09-04 19:17:14 +0200 (Fri, 04 Sep 2009)
New Revision: 8108

Modified:
   branches/Branch_4_8/gforge/deb-specific/install-postfix.sh
   branches/Branch_4_8/gforge/debian/changelog
Log:
Fixed Postfix configuration for mailing lists.

Modified: branches/Branch_4_8/gforge/deb-specific/install-postfix.sh
===================================================================
--- branches/Branch_4_8/gforge/deb-specific/install-postfix.sh	2009-09-04 16:39:55 UTC (rev 8107)
+++ branches/Branch_4_8/gforge/deb-specific/install-postfix.sh	2009-09-04 17:17:14 UTC (rev 8108)
@@ -46,10 +46,18 @@
 while (($l = <>) !~ /^\s*mydestination/) { print $l; };
 chomp $l;
 $l .= ", users.$domain_name" unless ($l =~ /^[^#]*users.$domain_name/);
+print "$l\n";
+while ($l = <>) { print $l; };
+' < /etc/postfix/main.cf.gforge-new > $tmp1
+	perl -i -e '
+require ("/etc/gforge/local.pl") ;
+my $l;
+while (($l = <>) !~ /^\s*relay_domains/) { print $l; };
+chomp $l;
 $l .= ", $sys_lists_host" unless ($l =~ /^[^#]*$sys_lists_host/);
 print "$l\n";
 while ($l = <>) { print $l; };
-' < /etc/postfix/main.cf.gforge-new > $tmp1
+' $tmp1
 	tmp2=$(mktemp /tmp/$pattern)
 	# Second, insinuate our forwarding rules in the directors section
 	perl -e '
@@ -169,6 +177,20 @@
 print "$l\n" ;
 while ($l = <>) { print $l; };
 ' < /etc/postfix/main.cf.gforge-new > $tmp1
+	perl -i -e '
+require ("/etc/gforge/local.pl") ;
+while (($l = <>) !~ /^\s*relay_domains/) {
+  print $l;
+};
+chomp $l ;
+$l =~ /^(\s*relay_domains\s*=\s*)(\S.*)/ ;
+$head = $1 ;
+$dests = $2 ;
+$dests =~ s/, $sys_lists_host// ;
+$l = $head . $dests ;
+print "$l\n" ;
+while ($l = <>) { print $l; };
+' $tmp1
 	tmp2=$(mktemp /tmp/$pattern)
 	# Second, kill our forwarding rules
 	perl -e '

Modified: branches/Branch_4_8/gforge/debian/changelog
===================================================================
--- branches/Branch_4_8/gforge/debian/changelog	2009-09-04 16:39:55 UTC (rev 8107)
+++ branches/Branch_4_8/gforge/debian/changelog	2009-09-04 17:17:14 UTC (rev 8108)
@@ -1,3 +1,9 @@
+gforge (4.8-3+1) UNRELEASED; urgency=low
+
+  * Fixed Postfix configuration for mailing lists.
+
+ -- Roland Mas <lolando at debian.org>  Fri, 04 Sep 2009 19:15:03 +0200
+
 gforge (4.8-3) unstable; urgency=low
 
   * New upstream snapshot as of SVN r7960.




More information about the Fusionforge-commits mailing list