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.

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