diff options
| -rw-r--r-- | meta/recipes-extended/sed/sed_4.1.2.bb | 16 |
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+" | |||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 4 | LIC_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" |
| 6 | SECTION = "console/utils" | 6 | SECTION = "console/utils" |
| 7 | PR = "r3" | 7 | PR = "r4" |
| 8 | 8 | ||
| 9 | DEPENDS = "gettext" | 9 | DEPENDS = "gettext" |
| 10 | 10 | ||
| 11 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ | 11 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ |
| 12 | file://fix_return_type.patch" | 12 | file://fix_return_type.patch" |
| 13 | 13 | ||
| 14 | inherit autotools | 14 | inherit autotools update-alternatives |
| 15 | 15 | ||
| 16 | do_install () { | 16 | do_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 | 22 | ALTERNATIVE_NAME = "sed" | |
| 23 | pkg_postinst_${PN} () { | 23 | ALTERNATIVE_PATH = "sed.${PN}" |
| 24 | update-alternatives --install ${base_bindir}/sed sed sed.${PN} 100 | 24 | ALTERNATIVE_PRIORITY = "100" |
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | pkg_prerm_${PN} () { | ||
| 29 | update-alternatives --remove sed sed.${PN} | ||
| 30 | } | ||
| 31 | 25 | ||
| 32 | BBCLASSEXTEND = "native" | 26 | BBCLASSEXTEND = "native" |
