msmtp: add link sendmail to pass LSB test
cover msmtp: add link sendmail to pass LSB test
From: Kang Kai <[email protected]>
LSB command check will test the exist of sendmail, so make sendmail link to msmtp in order to pass the test.
Update patch using update-alternatives class.
Related to [YOCTO #520]
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: kangkai/distro01
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/distro01
Thanks,
Kang Kai <[email protected]>
---
Kang Kai (1):
msmtp: add link sendmail for lsb command check
meta/recipes-extended/msmtp/msmtp_1.4.23.bb | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
PATCH 1/1 msmtp: add link sendmail for lsb command check
From: Kang Kai <[email protected]>
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]
--- meta/recipes-extended/msmtp/msmtp_1.4.23.bb | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
meta/recipes-extended/msmtp/msmtp_1.4.23.bb +7 -2
@@ -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"
Signature · 1 line
1.7.1
Re: [PATCH 1/1] msmtp: add link sendmail for lsb command check
Quoted 8 lines · Kang Kai
From: Kang Kai<[email protected]>
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<[email protected]>
Untested, but this looks like a reasonable thing to do to me, and it beats installing postfix or exim!
Quoted 28 lines
--- meta/recipes-extended/msmtp/msmtp_1.4.23.bb | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)meta/recipes-extended/msmtp/msmtp_1.4.23.bb +7
-2@@ -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"
Signature · 3 lines
Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel