From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SLH73-0005g0-4r for openembedded-core@lists.openembedded.org; Fri, 20 Apr 2012 18:55:13 +0200 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 20 Apr 2012 09:45:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="156167891" Received: from unknown (HELO swold-mobl.bigsur.com) ([10.255.12.163]) by fmsmga002.fm.intel.com with ESMTP; 20 Apr 2012 09:45:41 -0700 From: Saul Wold To: openembedded-core@lists.openembedded.org Date: Fri, 20 Apr 2012 09:45:14 -0700 Message-Id: X-Mailer: git-send-email 1.7.7.6 In-Reply-To: References: In-Reply-To: References: Subject: [CONSOLIDATED PULL 23/43] lrzsz: Use update-alternatives to set provides X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2012 16:55:13 -0000 From: Mark Hatle Use the update-alternatives and MANUAL_ALTERNATIVE_LINKS to ensure the package gets the proper provides setup automatically. Signed-by: Mark Hatle --- meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb index 7f86157..0f858f7 100644 --- a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb +++ b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb @@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ file://src/lrz.c;beginline=1;endline=10;md5=5276956373ff7d8758837f6399a1045f" SECTION = "console/network" DEPENDS = "" -PR = "r4" +PR = "r5" SRC_URI = "http://www.ohse.de/uwe/releases/lrzsz-${PV}.tar.gz \ file://autotools.patch \ @@ -20,7 +20,14 @@ SRC_URI = "http://www.ohse.de/uwe/releases/lrzsz-${PV}.tar.gz \ SRC_URI[md5sum] = "b5ce6a74abc9b9eb2af94dffdfd372a4" SRC_URI[sha256sum] = "c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1" -inherit autotools gettext +inherit autotools gettext update-alternatives + +MANUAL_ALTERNATIVE_LINKS = "${bindir}/rz:${bindir}/lrz" +MANUAL_ALTERNATIVE_LINKS += "${bindir}/rx:${bindir}/lrz" +MANUAL_ALTERNATIVE_LINKS += "${bindir}/rb:${bindir}/lrz" +MANUAL_ALTERNATIVE_LINKS += "${bindir}/sz:${bindir}/lsz" +MANUAL_ALTERNATIVE_LINKS += "${bindir}/sx:${bindir}/lsz" +MANUAL_ALTERNATIVE_LINKS += "${bindir}/sb:${bindir}/lsz" do_install() { install -d ${D}${bindir}/ -- 1.7.7.6