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.

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