LSB command check will test the exist of sendmail, so make sendmail
link to msmtp using update-alternatives class in order to pass the test.
Related to [YOCTO #520]
Signed-off-by: Kang Kai <kai.kang@windriver.com>
PRIORITY = "required"
LICENSE = "GPLv3"
DEPENDS = "zlib gnutls"
-PR = "r0"
+PR = "r1"
#COPYING or Licence
SRC_URI[md5sum] = "5fb7ae88186624cdb125d3efad3fdc16"
SRC_URI[sha256sum] = "269cd30eeb867167c6a599e23399f4fc24196fcdef3bac5b120d806b3b421810"
-inherit gettext autotools
+inherit gettext autotools update-alternatives
+
+ALTERNATIVE_NAME = "sendmail"
+ALTERNATIVE_PATH = "${bindir}/msmtp"
+ALTERNATIVE_LINK = "${sbindir}/sendmail"
+ALTERNATIVE_PRIORITY = "100"