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 12:17:18 +0100 |
commit | 0a433802a9b7a41ab6732bc1915571b7a190985f (patch) | |
tree | 1e39592e7787b19bfc46dd816ba67708d0bad9c1 /meta/recipes-extended/msmtp | |
parent | b507793f4adde0c60588b06520d7d0b70acfd82a (diff) | |
download | openembedded-core-contrib-0a433802a9b7a41ab6732bc1915571b7a190985f.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.
Signed-off-by: Chen Qi <Qi.Chen@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.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 EXTRA_OECONF += "--without-libsecret --without-libgsasl --without-libidn" ALTERNATIVE_${PN} = "sendmail" +# /usr/lib/sendmial is required by LSB core test +ALTERNATIVE_${PN}_linuxstdbase = "sendmail usr-lib-sendmail" ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp" ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" +ALTERNATIVE_TARGET[usr-lib-sendmail] = "${bindir}/msmtp" +ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail" ALTERNATIVE_PRIORITY = "100" - -pkg_postinst_${PN}_linuxstdbase () { - # /usr/lib/sendmial is required by LSB core test - [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/ -} |