diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-07-15 16:35:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-16 13:53:16 +0100 |
commit | 2552109842383658991db0b5176f6c288f82c234 (patch) | |
tree | 62a004f45335422aad5b7537d51408fe51b48c97 | |
parent | 8af95f0ee7eb8bd97b08aba8596aa6930ea13e82 (diff) | |
download | poky-2552109842383658991db0b5176f6c288f82c234.tar.gz |
msmtp: use alternatives to manage /usr/lib/sendmail
There are several packages which all provide /usr/lib/sendmail
when lsb is enabled. So use alternative to manage it.
(From OE-Core rev: 0a433802a9b7a41ab6732bc1915571b7a190985f)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/msmtp/msmtp_1.8.4.bb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/recipes-extended/msmtp/msmtp_1.8.4.bb b/meta/recipes-extended/msmtp/msmtp_1.8.4.bb index 888c1bbb5a..0f10500b38 100644 --- a/meta/recipes-extended/msmtp/msmtp_1.8.4.bb +++ b/meta/recipes-extended/msmtp/msmtp_1.8.4.bb | |||
@@ -19,11 +19,10 @@ inherit gettext autotools update-alternatives pkgconfig | |||
19 | EXTRA_OECONF += "--without-libsecret --without-libgsasl --without-libidn" | 19 | EXTRA_OECONF += "--without-libsecret --without-libgsasl --without-libidn" |
20 | 20 | ||
21 | ALTERNATIVE_${PN} = "sendmail" | 21 | ALTERNATIVE_${PN} = "sendmail" |
22 | # /usr/lib/sendmial is required by LSB core test | ||
23 | ALTERNATIVE_${PN}_linuxstdbase = "sendmail usr-lib-sendmail" | ||
22 | ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp" | 24 | ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp" |
23 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" | 25 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" |
26 | ALTERNATIVE_TARGET[usr-lib-sendmail] = "${bindir}/msmtp" | ||
27 | ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail" | ||
24 | ALTERNATIVE_PRIORITY = "100" | 28 | ALTERNATIVE_PRIORITY = "100" |
25 | |||
26 | pkg_postinst_${PN}_linuxstdbase () { | ||
27 | # /usr/lib/sendmial is required by LSB core test | ||
28 | [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/ | ||
29 | } | ||