msmtp: add link sendmail for lsb command check

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]

(From OE-Core rev: 97b71119d716eab86b8afcbac204f38a00b88cf3)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Kang Kai 2011-03-21 10:46:11 +08:00 committed by Richard Purdie
parent 38a5f61233
commit ab44c22a38
1 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,7 @@ SECTION = "console/network"
PRIORITY = "required"
LICENSE = "GPLv3"
DEPENDS = "zlib gnutls"
PR = "r0"
PR = "r1"
#COPYING or Licence
@ -18,4 +18,9 @@ SRC_URI = "http://sourceforge.net/projects/msmtp/files/msmtp/${PV}/${BPN}-${PV}.
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"