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.

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