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.

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