summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sed
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-09-01 11:16:05 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-02 09:50:50 +0100
commit8232e014379dcb51938b5328c30630997da05f38 (patch)
tree3c0e7c4abb6d1d049bb8f479a1edd40dfdfd37bf /meta/recipes-extended/sed
parentc56bab6b25350df34b3dd9b191d368c05ac7f96e (diff)
downloadpoky-8232e014379dcb51938b5328c30630997da05f38.tar.gz
sed: Inherit update-altenatives to handle the install priority
This method is simple and preferred by poky Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-extended/sed')
-rw-r--r--meta/recipes-extended/sed/sed_4.1.2.bb16
1 files changed, 5 insertions, 11 deletions
diff --git a/meta/recipes-extended/sed/sed_4.1.2.bb b/meta/recipes-extended/sed/sed_4.1.2.bb
index 09bd3e18cc..e243f3e25f 100644
--- a/meta/recipes-extended/sed/sed_4.1.2.bb
+++ b/meta/recipes-extended/sed/sed_4.1.2.bb
@@ -4,14 +4,14 @@ LICENSE = "GPLv2+"
4LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ 4LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
5 file://sed/sed.h;beginline=1;endline=17;md5=e00ffd1837f298439a214fd197f6a407" 5 file://sed/sed.h;beginline=1;endline=17;md5=e00ffd1837f298439a214fd197f6a407"
6SECTION = "console/utils" 6SECTION = "console/utils"
7PR = "r3" 7PR = "r4"
8 8
9DEPENDS = "gettext" 9DEPENDS = "gettext"
10 10
11SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ 11SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \
12 file://fix_return_type.patch" 12 file://fix_return_type.patch"
13 13
14inherit autotools 14inherit autotools update-alternatives
15 15
16do_install () { 16do_install () {
17 autotools_do_install 17 autotools_do_install
@@ -19,14 +19,8 @@ do_install () {
19 mv ${D}${bindir}/sed ${D}${base_bindir}/sed.${PN} 19 mv ${D}${bindir}/sed ${D}${base_bindir}/sed.${PN}
20} 20}
21 21
22 22ALTERNATIVE_NAME = "sed"
23pkg_postinst_${PN} () { 23ALTERNATIVE_PATH = "sed.${PN}"
24 update-alternatives --install ${base_bindir}/sed sed sed.${PN} 100 24ALTERNATIVE_PRIORITY = "100"
25}
26
27
28pkg_prerm_${PN} () {
29 update-alternatives --remove sed sed.${PN}
30}
31 25
32BBCLASSEXTEND = "native" 26BBCLASSEXTEND = "native"