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_MD5SUM
:=04e96b0e6f0fe6a180ae62c88fcd0af6
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Julen Landa Alustiza
<julen@zokormazo.
info>
25 include $(INCLUDE_DIR
)/package.mk
27 TARGET_CFLAGS
+=--std
=gnu99
32 TITLE
:=grep search utility
- full version
34 URL
:=http
://www.gnu.org
/software
/grep
/
37 define Package
/grep
/description
38 The grep command searches one or more input files for lines
39 containing a match to a specified pattern. By default
, grep
40 prints the matching lines.
43 define Package
/grep
/install
44 $(INSTALL_DIR
) $(1)/usr
/bin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/grep
$(1)/usr
/bin
/grep
48 define Package
/grep
/postinst
50 [ -L
"$${IPKG_INSTROOT}/bin/grep" ] && rm -f
"$${IPKG_INSTROOT}/bin/grep"
54 define Package
/grep
/prerm
55 $${IPKG_INSTROOT}/bin
/busybox grep
-h
2>&1 | grep
-q BusyBox
&& \
56 ln
-sf busybox
$${IPKG_INSTROOT}/bin
/grep
60 $(eval
$(call BuildPackage
,grep
))