diff options
author | Scott Garman <scott.a.garman@intel.com> | 2010-08-18 08:26:26 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 13:29:51 +0100 |
commit | dd30a64fc1e3f306421d38d3333b70a422759fd6 (patch) | |
tree | cdfa301b55879e113ccab38d94ed7b75759d6ef7 /meta/packages/grep/grep_2.5.1a.bb | |
parent | 119b69dd266c0e71d448815eb0722186d9f69c6d (diff) | |
download | poky-dd30a64fc1e3f306421d38d3333b70a422759fd6.tar.gz |
grep: new recipe v2.5.1a
This is the last GPLv2 version of grep. This recipe was dervied from
OpenEmbedded's version.
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/packages/grep/grep_2.5.1a.bb')
-rw-r--r-- | meta/packages/grep/grep_2.5.1a.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/packages/grep/grep_2.5.1a.bb b/meta/packages/grep/grep_2.5.1a.bb new file mode 100644 index 0000000000..d50d5a374e --- /dev/null +++ b/meta/packages/grep/grep_2.5.1a.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "grep GNU utility" | ||
2 | SECTION = "console/utils" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | ||
5 | |||
6 | PR = "r1" | ||
7 | |||
8 | SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.bz2 \ | ||
9 | file://uclibc-fix.patch" | ||
10 | |||
11 | SRC_URI[md5sum] = "52202fe462770fa6be1bb667bd6cf30c" | ||
12 | SRC_URI[sha256sum] = "38c8a2bb9223d1fb1b10bdd607cf44830afc92fd451ac4cd07619bf92bdd3132" | ||
13 | |||
14 | inherit autotools gettext | ||
15 | |||
16 | EXTRA_OECONF = "--disable-perl-regexp --disable-ncurses" | ||
17 | |||
18 | do_configure_prepend () { | ||
19 | rm -f ${S}/m4/init.m4 | ||
20 | } | ||
21 | |||
22 | do_install () { | ||
23 | autotools_do_install | ||
24 | install -d ${D}${base_bindir} | ||
25 | mv ${D}${bindir}/grep ${D}${base_bindir}/grep.${PN} | ||
26 | mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep.${PN} | ||
27 | mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep.${PN} | ||
28 | } | ||
29 | |||
30 | pkg_postinst_${PN} () { | ||
31 | update-alternatives --install ${base_bindir}/grep grep grep.${PN} 100 | ||
32 | update-alternatives --install ${base_bindir}/egrep egrep egrep.${PN} 100 | ||
33 | update-alternatives --install ${base_bindir}/fgrep fgrep fgrep.${PN} 100 | ||
34 | } | ||
35 | |||
36 | pkg_prerm_${PN} () { | ||
37 | update-alternatives --remove grep grep.${PN} | ||
38 | update-alternatives --remove egrep egrep.${PN} | ||
39 | update-alternatives --remove fgrep fgrep.${PN} | ||
40 | } | ||