summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2011-03-21 10:46:11 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-21 15:55:17 +0000
commit97b71119d716eab86b8afcbac204f38a00b88cf3 (patch)
treea46b207b9616b2fd6509bfc399844a716f83aed1 /meta
parent6d186d7144c781ee1985654e808f39ce2f6b1be7 (diff)
downloadopenembedded-core-97b71119d716eab86b8afcbac204f38a00b88cf3.tar.gz
openembedded-core-97b71119d716eab86b8afcbac204f38a00b88cf3.tar.bz2
openembedded-core-97b71119d716eab86b8afcbac204f38a00b88cf3.tar.xz
openembedded-core-97b71119d716eab86b8afcbac204f38a00b88cf3.zip
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] Signed-off-by: Kang Kai <kai.kang@windriver.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/msmtp/msmtp_1.4.23.bb9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-extended/msmtp/msmtp_1.4.23.bb b/meta/recipes-extended/msmtp/msmtp_1.4.23.bb
index cb3d83c71..d48881ace 100644
--- a/meta/recipes-extended/msmtp/msmtp_1.4.23.bb
+++ b/meta/recipes-extended/msmtp/msmtp_1.4.23.bb
@@ -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"