2 # Copyright (C) 2010-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@GNU
/grep
16 PKG_HASH
:=b960541c499619efd6afe1fa795402e4733c8e11ebf9fafccc0bb4bccdc5b514
18 PKG_MAINTAINER
:=Julen Landa Alustiza
<julen@zokormazo.
info>
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=grep search utility
- full version
32 URL
:=https
://www.gnu.org
/software
/grep
/
35 define Package
/grep
/description
36 The grep command searches one or more input files for lines
37 containing a match to a specified pattern. By default
, grep
38 prints the matching lines.
41 define Package
/grep
/install
42 $(INSTALL_DIR
) $(1)/usr
/bin
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/grep
$(1)/usr
/bin
/grep
46 define Package
/grep
/postinst
48 [ -L
"$${IPKG_INSTROOT}/bin/grep" ] && rm -f
"$${IPKG_INSTROOT}/bin/grep"
52 define Package
/grep
/prerm
53 $${IPKG_INSTROOT}/bin
/busybox grep
-h
2>&1 | grep
-q BusyBox
&& \
54 ln
-sf busybox
$${IPKG_INSTROOT}/bin
/grep
58 $(eval
$(call BuildPackage
,grep
))