From 757db8a21b9b1a20fd9f8af8161d4b9fd7022c4f Mon Sep 17 00:00:00 2001 From: Scott Garman Date: Sun, 5 Jun 2011 17:02:39 -0700 Subject: grep: upgrade to v2.8 (From OE-Core rev: 40030433662c8a43c89e20099330aa5172ac0c27) Signed-off-by: Scott Garman Signed-off-by: Richard Purdie --- meta/recipes-extended/grep/grep_2.7.bb | 41 --------------------------------- meta/recipes-extended/grep/grep_2.8.bb | 42 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 41 deletions(-) delete mode 100644 meta/recipes-extended/grep/grep_2.7.bb create mode 100644 meta/recipes-extended/grep/grep_2.8.bb diff --git a/meta/recipes-extended/grep/grep_2.7.bb b/meta/recipes-extended/grep/grep_2.7.bb deleted file mode 100644 index c3e098688e..0000000000 --- a/meta/recipes-extended/grep/grep_2.7.bb +++ /dev/null @@ -1,41 +0,0 @@ -DESCRIPTION = "grep GNU utility" -HOMEPAGE = "http://savannah.gnu.org/projects/grep/" -BUGTRACKER = "http://savannah.gnu.org/bugs/?group=grep" -SECTION = "console/utils" -LICENSE = "GPLv3" -LIC_FILES_CHKSUM = "file://COPYING;md5=8006d9c814277c1bfc4ca22af94b59ee" - -PR = "r0" - -SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.gz" - -SRC_URI[md5sum] = "e848f07e3e79aa7899345d17c7e4115e" -SRC_URI[sha256sum] = "ad14831015a79cea36785aa47415f6c0653a6ac4eaf9c15456f0d9d09c9e1bad" - -inherit autotools gettext - -EXTRA_OECONF = "--disable-perl-regexp" - -do_configure_prepend () { - rm -f ${S}/m4/init.m4 -} - -do_install () { - autotools_do_install - install -d ${D}${base_bindir} - mv ${D}${bindir}/grep ${D}${base_bindir}/grep.${PN} - mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep.${PN} - mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep.${PN} -} - -pkg_postinst_${PN} () { - update-alternatives --install ${base_bindir}/grep grep grep.${PN} 100 - update-alternatives --install ${base_bindir}/egrep egrep egrep.${PN} 100 - update-alternatives --install ${base_bindir}/fgrep fgrep fgrep.${PN} 100 -} - -pkg_prerm_${PN} () { - update-alternatives --remove grep grep.${PN} - update-alternatives --remove egrep egrep.${PN} - update-alternatives --remove fgrep fgrep.${PN} -} diff --git a/meta/recipes-extended/grep/grep_2.8.bb b/meta/recipes-extended/grep/grep_2.8.bb new file mode 100644 index 0000000000..7e58ff8539 --- /dev/null +++ b/meta/recipes-extended/grep/grep_2.8.bb @@ -0,0 +1,42 @@ +DESCRIPTION = "GNU grep utility" +HOMEPAGE = "http://savannah.gnu.org/projects/grep/" +BUGTRACKER = "http://savannah.gnu.org/bugs/?group=grep" +SECTION = "console/utils" +PRIORITY = "optional" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=8006d9c814277c1bfc4ca22af94b59ee" + +PR = "r0" + +SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.gz" + +SRC_URI[md5sum] = "cb2dfc502c5afc7a4a6e5f6cefd6850e" +SRC_URI[sha256sum] = "da48d0e20bceaacc7d05bfcbccb34c3dee0c50bd7e80de5222fd5e319809af27" + +inherit autotools gettext + +EXTRA_OECONF = "--disable-perl-regexp" + +do_configure_prepend () { + rm -f ${S}/m4/init.m4 +} + +do_install () { + autotools_do_install + install -d ${D}${base_bindir} + mv ${D}${bindir}/grep ${D}${base_bindir}/grep.${PN} + mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep.${PN} + mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${base_bindir}/grep grep grep.${PN} 100 + update-alternatives --install ${base_bindir}/egrep egrep egrep.${PN} 100 + update-alternatives --install ${base_bindir}/fgrep fgrep fgrep.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove grep grep.${PN} + update-alternatives --remove egrep egrep.${PN} + update-alternatives --remove fgrep fgrep.${PN} +} -- cgit v1.2.3-54-g00ecf