summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/msmtp
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2015-02-16 10:41:14 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-16 17:42:04 +0000
commit4851a67e6cf042bc2475259dfa390fbd3c725bc8 (patch)
treedb0aa7c1ff91b52f342d1c80e74bf74977fa9c77 /meta/recipes-extended/msmtp
parent03ba0b70de8517f21598c5fb13b3bad786731394 (diff)
downloadpoky-4851a67e6cf042bc2475259dfa390fbd3c725bc8.tar.gz
msmtp: add link file /usr/lib/sendmail
Link file /usr/lib/sendmail points to /usr/sbin/sendmail is required by LSB core test according to Linux FHS: "For historical reasons, /usr/lib/sendmail must be a symbolic link to /usr/sbin/sendmail if the latter exists." Create the link file /usr/lib/sendmail if it doesn't exist. Refs: 1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/normativerefs.html#STD.LSB 2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13 (From OE-Core rev: 9b25de34f084076b8c8db0e938696c4f630d366b) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/msmtp')
-rw-r--r--meta/recipes-extended/msmtp/msmtp_1.6.1.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
index c9ad1da253..d6f3a1516f 100644
--- a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
+++ b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
@@ -23,3 +23,8 @@ ALTERNATIVE_${PN} = "sendmail"
23ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp" 23ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp"
24ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" 24ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
25ALTERNATIVE_PRIORITY = "100" 25ALTERNATIVE_PRIORITY = "100"
26
27pkg_postinst_${PN}_linuxstdbase () {
28 # /usr/lib/sendmial is required by LSB core test
29 [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/
30}