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.

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