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.

89 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-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:=findutils
  9. PKG_VERSION:=4.6.0
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=GPL-3.0+
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  14. PKG_HASH:=ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/findutils/Default
  19. TITLE:=GNU Find Utilities
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. URL:=https://www.gnu.org/software/findutils/
  23. endef
  24. define Package/findutils/description/Default
  25. Replace busybox versions of findutils with full GNU versions.
  26. This is normally not needed as busybox is smaller and provides
  27. sufficient functionality, but some users may want or need
  28. the full functionality of the GNU tools.
  29. endef
  30. define Package/findutils
  31. $(call Package/findutils/Default)
  32. TITLE+= (all)
  33. DEPENDS:= \
  34. +findutils-find \
  35. +findutils-xargs \
  36. +findutils-locate
  37. endef
  38. define Package/findutils-find
  39. $(call Package/findutils/Default)
  40. TITLE+= - find utility
  41. endef
  42. define Package/findutils-locate
  43. $(call Package/findutils/Default)
  44. TITLE+= - locate and updatedb utility
  45. endef
  46. define Package/findutils-xargs
  47. $(call Package/findutils/Default)
  48. TITLE+= - xargs utility
  49. endef
  50. CONFIGURE_ARGS += --localstatedir=/srv/var
  51. CONFIGURE_VARS += ac_cv_path_SORT=sort
  52. define Package/findutils/install
  53. true
  54. endef
  55. define Package/findutils-find/install
  56. $(INSTALL_DIR) $(1)/usr/bin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/bin/
  58. endef
  59. define Package/findutils-locate/install
  60. $(INSTALL_DIR) $(1)/usr/bin $(1)/srv/var
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/locate $(1)/usr/bin/
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/updatedb $(1)/usr/bin/
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
  64. endef
  65. define Package/findutils-xargs/install
  66. $(INSTALL_DIR) $(1)/usr/bin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/bin/
  68. endef
  69. $(eval $(call BuildPackage,findutils))
  70. $(eval $(call BuildPackage,findutils-find))
  71. $(eval $(call BuildPackage,findutils-locate))
  72. $(eval $(call BuildPackage,findutils-xargs))