tags 543472 + patch
thanks
Here is a patch to do it.
diff -ur postfix-2.6.3/debian/init.d postfix-2.6.3-pere/debian/init.d
--- postfix-2.6.3/debian/init.d 2009-08-25 12:37:19.000000000 +0200
+++ postfix-2.6.3-pere/debian/init.d 2009-08-25 12:38:39.455174603 +0200
@@ -9,8 +9,8 @@
# Provides: postfix mail-transport-agent
# Required-Start: $local_fs $remote_fs $syslog $named $network $time
# Required-Stop: $local_fs $remote_fs $syslog $named $network
-# Should-Start: postgresql mysql clamav-daemon postgrey spamassassin
-# Should-Stop: postgresql mysql clamav-daemon postgrey spamassassin
+# Should-Start: postgresql mysql clamav-daemon postgrey spamassassin
saslauthd dovecote
+# Should-Stop: postgresql mysql clamav-daemon postgrey spamassassin
saslauthd dovecote
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop the Postfix Mail Transport Agent
The mail-transport-agent provide in the init.d script should not be
used, as it will give installation problem when switching to or from
xmail. I suggest making a new virtual provide $mail-transport-agent
instead, and listing this in the insserv.conf.d directory. Here is an
untested patch to make that happen.
diff -uNr postfix-2.6.3/debian/init.d postfix-2.6.3-pere/debian/init.d
--- postfix-2.6.3/debian/init.d 2009-08-25 12:37:19.000000000 +0200
+++ postfix-2.6.3-pere/debian/init.d 2009-08-25 12:41:56.798914411 +0200
@@ -6,7 +6,7 @@
# based on sendmail's init.d script
### BEGIN INIT INFO
-# Provides: postfix mail-transport-agent
+# Provides: postfix
# Required-Start: $local_fs $remote_fs $syslog $named $network $time
# Required-Stop: $local_fs $remote_fs $syslog $named $network
# Should-Start: postgresql mysql clamav-daemon postgrey spamassassin
diff -uNr postfix-2.6.3/debian/postfix.dirs
postfix-2.6.3-pere/debian/postfix.dirs
--- postfix-2.6.3/debian/postfix.dirs 2009-08-25 12:37:19.000000000 +0200
+++ postfix-2.6.3-pere/debian/postfix.dirs 2009-08-25 12:45:01.225362312
+0200
@@ -1,5 +1,6 @@
DEBIAN
etc/init.d
+etc/insserv.conf.d
etc/ppp/ip-up.d
etc/ppp/ip-down.d
etc/network/if-up.d
diff -uNr postfix-2.6.3/debian/postfix.insserv.conf
postfix-2.6.3-pere/debian/postfix.insserv.conf
--- postfix-2.6.3/debian/postfix.insserv.conf 1970-01-01 01:00:00.000000000
+0100
+++ postfix-2.6.3-pere/debian/postfix.insserv.conf 2009-08-25
12:42:45.055741452 +0200
@@ -0,0 +1 @@
+$mail-transport-agent postfix
diff -uNr postfix-2.6.3/debian/rules postfix-2.6.3-pere/debian/rules
--- postfix-2.6.3/debian/rules 2009-08-25 12:37:19.000000000 +0200
+++ postfix-2.6.3-pere/debian/rules 2009-08-25 12:44:01.427380791 +0200
@@ -133,6 +133,7 @@
install -m 0644 conf/main.cf.tls $(sharedir)/main.cf.tls
install -m644 debian/postfix.ufw.profile
debian/postfix/etc/ufw/applications.d/postfix
install -m644 debian/rsyslog.conf
debian/postfix/etc/rsyslog.d/postfix.conf
+ install -m644 debian/postfix.insserv.conf
debian/postfix/etc/insserv.conf.d/postfix
install man/man1/*.1 ${base}/usr/share/man/man1
install man/man5/*.5 ${base}/usr/share/man/man5
With this patch in place, packages wanting to start after the MTA is
started can depend on $mail-transport-agent, and the different MTAs
should not block migration between them because of duplicate provides.
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]