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:50 +0100 |
commit | f0ff43baea876b09c27236c148095300d6d3f85d (patch) | |
tree | d7cc22f899031253fa57e5f4b71ebaf83ceaa2e6 /meta/recipes-extended/grep/grep_2.9.bb | |
parent | 51df60eb39b3d506571e9bcd3ec7010d255d6f69 (diff) | |
download | poky-f0ff43baea876b09c27236c148095300d6d3f85d.tar.gz |
grep: upgrade to 2.9
(From OE-Core rev: c11e8c6976903582b37b49ec27327f25e4218e34)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 @@ | |||
1 | DESCRIPTION = "GNU grep utility" | ||
2 | HOMEPAGE = "http://savannah.gnu.org/projects/grep/" | ||
3 | BUGTRACKER = "http://savannah.gnu.org/bugs/?group=grep" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv3" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8006d9c814277c1bfc4ca22af94b59ee" | ||
7 | |||
8 | PR = "r0" | ||
9 | |||
10 | SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.gz" | ||
11 | |||
12 | SRC_URI[md5sum] = "03e3451a38b0d615cb113cbeaf252dc0" | ||
13 | SRC_URI[sha256sum] = "e9118eac72ecc71191725a7566361ab7643edfd3364869a47b78dc934a357970" | ||
14 | |||
15 | inherit autotools gettext | ||
16 | |||
17 | EXTRA_OECONF = "--disable-perl-regexp" | ||
18 | |||
19 | do_configure_prepend () { | ||
20 | rm -f ${S}/m4/init.m4 | ||
21 | } | ||
22 | |||
23 | do_install () { | ||
24 | autotools_do_install | ||
25 | install -d ${D}${base_bindir} | ||
26 | mv ${D}${bindir}/grep ${D}${base_bindir}/grep.${PN} | ||
27 | mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep.${PN} | ||
28 | mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep.${PN} | ||
29 | } | ||
30 | |||
31 | pkg_postinst_${PN} () { | ||
32 | update-alternatives --install ${base_bindir}/grep grep grep.${PN} 100 | ||
33 | update-alternatives --install ${base_bindir}/egrep egrep egrep.${PN} 100 | ||
34 | update-alternatives --install ${base_bindir}/fgrep fgrep fgrep.${PN} 100 | ||
35 | } | ||
36 | |||
37 | pkg_prerm_${PN} () { | ||
38 | update-alternatives --remove grep grep.${PN} | ||
39 | update-alternatives --remove egrep egrep.${PN} | ||
40 | update-alternatives --remove fgrep fgrep.${PN} | ||
41 | } | ||