You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2010-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=grep
  9. PKG_VERSION:=3.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/grep
  13. PKG_HASH:=58e6751c41a7c25bfc6e9363a41786cff3ba5709cf11d5ad903cf7cce31cc3fb
  14. PKG_MAINTAINER:=Julen Landa Alustiza <julen@zokormazo.info>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:gnu:grep
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/grep
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=grep search utility - full version
  25. DEPENDS:=+libpcre
  26. URL:=https://www.gnu.org/software/grep/
  27. ALTERNATIVES:=\
  28. 300:/bin/egrep:/usr/libexec/egrep-gnu \
  29. 300:/bin/fgrep:/usr/libexec/fgrep-gnu \
  30. 300:/bin/grep:/usr/libexec/grep-gnu
  31. endef
  32. define Package/grep/description
  33. The grep command searches one or more input files for lines
  34. containing a match to a specified pattern. By default, grep
  35. prints the matching lines.
  36. endef
  37. define Package/grep/install
  38. $(INSTALL_DIR) $(1)/usr/libexec
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/egrep $(1)/usr/libexec/egrep-gnu
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fgrep $(1)/usr/libexec/fgrep-gnu
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/grep $(1)/usr/libexec/grep-gnu
  42. endef
  43. $(eval $(call BuildPackage,grep))