summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons
diff options
context:
space:
mode:
authorMingli Yu <Mingli.Yu@windriver.com>2018-09-05 17:55:57 +0800
committerKhem Raj <raj.khem@gmail.com>2018-09-05 13:59:16 -0700
commitdb25be4f4c6f0056cc271377712e5530304568c5 (patch)
tree0f1f02a7a52b9904c6924c9a1e05ca9c887fbad7 /meta-networking/recipes-daemons
parent1d26140980eb31d75e25602d2be6a1f5a32b271d (diff)
downloadmeta-openembedded-db25be4f4c6f0056cc271377712e5530304568c5.tar.gz
postfix: add sendmail to ALTERNATIVE_${PN}
There are several packages provide ${sbindir}/sendmail and should add sendmail to ALTERNATIVE_${PN} to make it work well. And the sendmail is removed from ALTERNATIVE_${PN} in below commit: === commit 7b500488115c67d657312135b48027a1c26e0955 Author: Lei Maohui <leimaohui@cn.fujitsu.com> Date: Fri Aug 17 18:19:53 2018 -0700 postfix,esmtp: Fix confilct error in do_rootfs Error: Transaction check error: file /usr/bin/mailq conflicts between attempted installs of esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64 file /usr/bin/newaliases conflicts between attempted installs of esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64 Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> === Add it back to make sendmail works normally before adding it back: # mime-construct --to root --subject mail-20826 --encoding 7bit --string mail_content sendmail: account default not found: no configuration file available Error closing sendmail: non-zero exit (78) at /usr/bin/mime-construct line 572. # echo $? 78 After adding it back: # mime-construct --to root --subject mail-20826 --encoding 7bit --string mail_content # echo $? 0 Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r--meta-networking/recipes-daemons/postfix/postfix.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc
index 389136b52..49f9f7b1f 100644
--- a/meta-networking/recipes-daemons/postfix/postfix.inc
+++ b/meta-networking/recipes-daemons/postfix/postfix.inc
@@ -214,9 +214,11 @@ do_install_append_class-native() {
214 ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq 214 ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq
215} 215}
216 216
217ALTERNATIVE_${PN} += "mailq newaliases" 217ALTERNATIVE_${PN} += "sendmail mailq newaliases"
218ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" 218ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq"
219ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" 219ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases"
220ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix"
221ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
220 222
221ALTERNATIVE_PRIORITY = "120" 223ALTERNATIVE_PRIORITY = "120"
222 224