From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mx1.pokylinux.org (Postfix) with ESMTP id C612D4C805A8 for ; Fri, 18 Mar 2011 04:02:37 -0500 (CDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id p2I92Z81010391 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 18 Mar 2011 02:02:35 -0700 (PDT) Received: from [128.224.163.157] (128.224.163.157) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.1.255.0; Fri, 18 Mar 2011 02:02:34 -0700 Message-ID: <4D831F31.3000004@windriver.com> Date: Fri, 18 Mar 2011 17:00:33 +0800 From: Kang Kai User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Richard Purdie References: <3404b336e81764d15f546279aa594bd30587836f.1300411762.git.kai.kang@windriver.com> <1300412699.30423.2180.camel@rex> In-Reply-To: <1300412699.30423.2180.camel@rex> X-Originating-IP: [128.224.163.157] Cc: poky@yoctoproject.org Subject: Re: [PATCH 1/1] msmtp: add link sendmail for lsb command check X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 09:02:38 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit From: Kang Kai LSB command check will test the exist of sendmail, so make sendmail link to msmtp in order to pass the test. Related to [YOCTO #520] Signed-off-by: Kang Kai --- meta/recipes-extended/msmtp/msmtp_1.4.23.bb | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/meta/recipes-extended/msmtp/msmtp_1.4.23.bb b/meta/recipes-extended/msmtp/msmtp_1.4.23.bb index cb3d83c..b3500d0 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 @@ -19,3 +19,11 @@ SRC_URI[md5sum] = "5fb7ae88186624cdb125d3efad3fdc16" SRC_URI[sha256sum] = "269cd30eeb867167c6a599e23399f4fc24196fcdef3bac5b120d806b3b421810" inherit gettext autotools + +pkg_postinst_${PN} () { + update-alternatives --install ${sbindir}/sendmail sendmail ${bindir}/msmtp 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove sendmail ${bindir}/msmtp +} -- 1.7.1