2010-11-18 23:44:37 +00:00
|
|
|
SUMMARY = "Pattern matching utilities"
|
|
|
|
DESCRIPTION = "The GNU versions of commonly used grep utilities. The grep command searches one or more input \
|
|
|
|
files for lines containing a match to a specified pattern."
|
2010-08-18 15:26:26 +00:00
|
|
|
SECTION = "console/utils"
|
|
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
|
|
|
|
|
2012-05-04 19:01:28 +00:00
|
|
|
PR = "r2"
|
2010-08-18 15:26:26 +00:00
|
|
|
|
|
|
|
SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.bz2 \
|
2012-05-04 19:01:28 +00:00
|
|
|
file://uclibc-fix.patch \
|
|
|
|
file://grep_fix_for_automake-1.12.patch \
|
2012-10-19 13:02:49 +00:00
|
|
|
file://gettext.patch \
|
2013-03-12 09:56:02 +00:00
|
|
|
file://fix64-int-to-pointer.patch \
|
2012-10-19 13:02:49 +00:00
|
|
|
file://Makevars \
|
2013-05-15 05:56:50 +00:00
|
|
|
file://grep-CVE-2012-5667.patch \
|
2013-08-02 01:30:59 +00:00
|
|
|
file://fix-for-texinfo-5.1.patch \
|
2013-05-15 05:56:50 +00:00
|
|
|
"
|
2010-08-18 15:26:26 +00:00
|
|
|
|
|
|
|
SRC_URI[md5sum] = "52202fe462770fa6be1bb667bd6cf30c"
|
|
|
|
SRC_URI[sha256sum] = "38c8a2bb9223d1fb1b10bdd607cf44830afc92fd451ac4cd07619bf92bdd3132"
|
|
|
|
|
2014-05-01 20:00:28 +00:00
|
|
|
inherit autotools gettext texinfo
|
2010-08-18 15:26:26 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF = "--disable-perl-regexp --disable-ncurses"
|
|
|
|
|
2012-05-04 19:01:28 +00:00
|
|
|
CFLAGS += "-D PROTOTYPES"
|
2010-08-18 15:26:26 +00:00
|
|
|
do_configure_prepend () {
|
|
|
|
rm -f ${S}/m4/init.m4
|
2012-10-19 13:02:49 +00:00
|
|
|
cp -f ${WORKDIR}/Makevars ${S}/po/
|
2010-08-18 15:26:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install () {
|
|
|
|
autotools_do_install
|
|
|
|
install -d ${D}${base_bindir}
|
2012-05-21 21:17:55 +00:00
|
|
|
mv ${D}${bindir}/grep ${D}${base_bindir}/grep
|
|
|
|
mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep
|
|
|
|
mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep
|
2012-03-21 16:30:37 +00:00
|
|
|
rmdir ${D}${bindir}/
|
2010-08-18 15:26:26 +00:00
|
|
|
}
|
|
|
|
|
2012-05-21 21:17:55 +00:00
|
|
|
inherit update-alternatives
|
2010-08-18 15:26:26 +00:00
|
|
|
|
2012-05-21 21:17:55 +00:00
|
|
|
ALTERNATIVE_PRIORITY = "100"
|
|
|
|
|
|
|
|
ALTERNATIVE_${PN} = "grep egrep fgrep"
|
|
|
|
ALTERNATIVE_LINK_NAME[grep] = "${base_bindir}/grep"
|
|
|
|
ALTERNATIVE_LINK_NAME[egrep] = "${base_bindir}/egrep"
|
|
|
|
ALTERNATIVE_LINK_NAME[fgrep] = "${base_bindir}/fgrep"
|
2014-08-14 12:05:43 +00:00
|
|
|
|
|
|
|
export CONFIG_SHELL="/bin/sh"
|