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
:=58e6751c41a7c25bfc6e9363a41786cff3ba5709cf11d5ad903cf7cce31cc3fb
18 PKG_MAINTAINER
:=Julen Landa Alustiza
<julen@zokormazo.
info>
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:gnu
:grep
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=grep search utility
- full version
33 URL
:=https
://www.gnu.org
/software
/grep
/
36 define Package
/grep
/description
37 The grep command searches one or more input files for lines
38 containing a match to a specified pattern. By default
, grep
39 prints the matching lines.
42 define Package
/grep
/install
43 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
47 define Package
/grep
/postinst
49 [ -L
"$${IPKG_INSTROOT}/bin/grep" ] && rm -f
"$${IPKG_INSTROOT}/bin/grep"
53 define Package
/grep
/prerm
54 $${IPKG_INSTROOT}/bin
/busybox grep
-h
2>&1 | grep
-q BusyBox
&& \
55 ln
-sf busybox
$${IPKG_INSTROOT}/bin
/grep
59 $(eval
$(call BuildPackage
,grep
))