diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/grep/grep_2.5.1a.bb | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/grep/grep_2.5.1a.bb')
-rw-r--r-- | meta/recipes-extended/grep/grep_2.5.1a.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-extended/grep/grep_2.5.1a.bb b/meta/recipes-extended/grep/grep_2.5.1a.bb new file mode 100644 index 0000000000..d50d5a374e --- /dev/null +++ b/meta/recipes-extended/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 | } | ||