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.

95 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.7.0
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_HASH:=c5fefbdf9858f7e4feb86f036e1247a54c79fc2d8e4b7064d5aaa1f47dfa789a
  14. PKG_LICENSE:=GPL-3.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:gnu:findutils
  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/find-findutils
  44. endef
  45. define Package/findutils-xargs
  46. $(call Package/findutils/Default)
  47. TITLE+= - xargs utility
  48. ALTERNATIVES:=300:/usr/bin/xargs:/usr/libexec/xargs-findutils
  49. endef
  50. define Package/findutils-locate
  51. $(call Package/findutils/Default)
  52. TITLE+= - locate and updatedb utility
  53. endef
  54. CONFIGURE_ARGS += \
  55. --localstatedir=/srv/var \
  56. --without-selinux
  57. CONFIGURE_VARS += ac_cv_path_SORT=sort
  58. define Package/findutils/install
  59. true
  60. endef
  61. define Package/findutils-find/install
  62. $(INSTALL_DIR) $(1)/usr/libexec
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/libexec/find-findutils
  64. endef
  65. define Package/findutils-xargs/install
  66. $(INSTALL_DIR) $(1)/usr/libexec
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/libexec/xargs-findutils
  68. endef
  69. define Package/findutils-locate/install
  70. $(INSTALL_DIR) $(1)/usr/bin $(1)/srv/var
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/locate $(1)/usr/bin/
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/updatedb $(1)/usr/bin/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
  74. endef
  75. $(eval $(call BuildPackage,findutils))
  76. $(eval $(call BuildPackage,findutils-find))
  77. $(eval $(call BuildPackage,findutils-locate))
  78. $(eval $(call BuildPackage,findutils-xargs))