diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-10-24 18:44:38 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-27 08:29:20 +0100 |
commit | c11e8c6976903582b37b49ec27327f25e4218e34 (patch) | |
tree | b176ad8773d5316f39b2927284fb02e3e630da8b /meta/recipes-extended/grep/grep_2.9.bb | |
parent | 6d300745bb70dfab367b1d472d49b719b91ab9a1 (diff) | |
download | openembedded-core-contrib-c11e8c6976903582b37b49ec27327f25e4218e34.tar.gz |
grep: upgrade to 2.9
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/recipes-extended/grep/grep_2.9.bb')
-rw-r--r-- | meta/recipes-extended/grep/grep_2.9.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/grep/grep_2.9.bb b/meta/recipes-extended/grep/grep_2.9.bb new file mode 100644 index 0000000000..08ac527320 --- /dev/null +++ b/meta/recipes-extended/grep/grep_2.9.bb @@ -0,0 +1,41 @@ +DESCRIPTION = "GNU grep 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] = "03e3451a38b0d615cb113cbeaf252dc0" +SRC_URI[sha256sum] = "e9118eac72ecc71191725a7566361ab7643edfd3364869a47b78dc934a357970" + +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} +} |