summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/grep
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2010-09-24 18:26:24 -0700
committerSaul Wold <Saul.Wold@intel.com>2010-09-27 09:07:47 -0700
commit5c4657018580dafa700f56f8bcfb5786a73cee90 (patch)
tree8b61f8a7625678e20d95f80ef1613b4a3edb8283 /meta/recipes-extended/grep
parent62432db79d0ecf190c8c83f8b67e3fd10f162d42 (diff)
downloadopenembedded-core-5c4657018580dafa700f56f8bcfb5786a73cee90.tar.gz
openembedded-core-5c4657018580dafa700f56f8bcfb5786a73cee90.tar.bz2
openembedded-core-5c4657018580dafa700f56f8bcfb5786a73cee90.zip
grep: add version 2.7 (GPLv3)
This is the most recent version of grep. Recipe derived from OpenEmbedded's recipe for grep v2.6.3. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/recipes-extended/grep')
-rw-r--r--meta/recipes-extended/grep/grep_2.7.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/grep/grep_2.7.bb b/meta/recipes-extended/grep/grep_2.7.bb
new file mode 100644
index 0000000000..c3e098688e
--- /dev/null
+++ b/meta/recipes-extended/grep/grep_2.7.bb
@@ -0,0 +1,41 @@
+DESCRIPTION = "grep GNU 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] = "e848f07e3e79aa7899345d17c7e4115e"
+SRC_URI[sha256sum] = "ad14831015a79cea36785aa47415f6c0653a6ac4eaf9c15456f0d9d09c9e1bad"
+
+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}
+}