[OE-core] [PATCH 4/4] msmtp: add link to ${libdir}/sendmail

Kang Kai kai.kang at windriver.com
Wed Nov 21 09:38:44 UTC 2012


LSB tests check file ${libdir}/sendmail, and the file was created by
package lsbsetup. Because lsbsetup is dropped, create the link in msmtp.

Signed-off-by: Kang Kai <kai.kang at windriver.com>
---
 meta/recipes-extended/msmtp/msmtp_1.4.24.bb |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-extended/msmtp/msmtp_1.4.24.bb b/meta/recipes-extended/msmtp/msmtp_1.4.24.bb
index 13de167..5a290a4 100644
--- a/meta/recipes-extended/msmtp/msmtp_1.4.24.bb
+++ b/meta/recipes-extended/msmtp/msmtp_1.4.24.bb
@@ -5,7 +5,7 @@ SECTION = "console/network"
 
 LICENSE = "GPLv3"
 DEPENDS = "zlib gnutls"
-PR = "r4"
+PR = "r5"
 
 
 #COPYING or Licence
@@ -25,3 +25,10 @@ ALTERNATIVE_${PN} = "sendmail"
 ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp"
 ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
 ALTERNATIVE_PRIORITY = "100"
+
+do_install_append_linuxstdbase() {
+	install -d ${D}${libdir}/
+	ln -sf ${sbindir}/sendmail ${D}/${libdir}/sendmail
+}
+
+FILES_${PN}_append_linuxstdbase += "${libdir}/sendmail"
-- 
1.7.5.4





More information about the Openembedded-core mailing list