summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-08-11 15:36:34 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-11 15:36:34 +0000
commit56bf549bcf6204d7e064d7333bcb5de15180e26f (patch)
treee8e45e7f2ae745d9973276ce55c835eac089f381
parentcc859ba26918afccffb898fc4920c0ebccba0ce8 (diff)
Update postfix to use u-a for /usr/sbin/sendmail (Conflict with ssmtp)
-rw-r--r--packages/postfix/postfix_2.0.20.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/postfix/postfix_2.0.20.bb b/packages/postfix/postfix_2.0.20.bb
index a23ac2f3e2..4ef569b309 100644
--- a/packages/postfix/postfix_2.0.20.bb
+++ b/packages/postfix/postfix_2.0.20.bb
@@ -1,7 +1,7 @@
SECTION = "console/network"
DEPENDS = "db3 pcre postfix-native"
LICENSE = "IPL"
-PR = "r3"
+PR = "r4"
SRC_URI = "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \
file://${FILESDIR}/makedefs.patch;patch=1 \
@@ -37,6 +37,7 @@ do_install () {
install -m 755 ${WORKDIR}/main.cf_2.0 ${D}/var/tmp/main_cf.sh
install -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/01_postfix
install -m 755 ${WORKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
+ mv ${D}${sbindir}/sendmail ${D}${sbindir}/sendmail.${PN}
}
pkg_postinst () {
@@ -55,5 +56,9 @@ pkg_postinst () {
/etc/init.d/populate-volatile.sh
touch /etc/aliases
newaliases
+ update-alternatives --install sendmail sendmail ${sbindir}/sendmail.${PN} 40
}
+pkg_postrm () {
+ update-alternatives --remove sendmail ${sbindir}/sendmail
+}