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.1 KiB

  1. #
  2. # Copyright (C) 2014-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:=attr
  9. PKG_VERSION:=2.5.1
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://git.savannah.nongnu.org/cgit/attr.git/snapshot
  13. PKG_HASH:=69991b2fc5fe7917d996b05d5d4fe3c44d074c9d806dd263b14a42fab57bfc2f
  14. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/attr/Default
  20. TITLE:=Extended attributes (xattr) manipulation
  21. URL:=http://savannah.nongnu.org/projects/attr
  22. SUBMENU:=Filesystem
  23. endef
  24. define Package/attr/Default/description
  25. Extended attributes support
  26. endef
  27. define Package/attr
  28. $(call Package/attr/Default)
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. TITLE+=utils
  32. LICENSE:=GPL-2.0-or-later
  33. LICENSE_FILES:=doc/COPYING
  34. DEPENDS:=+libattr
  35. endef
  36. define Package/libattr
  37. $(call Package/attr/Default)
  38. SECTION:=libs
  39. CATEGORY:=Libraries
  40. TITLE+=library
  41. LICENSE:=LGPL-2.1-or-later
  42. LICENSE_FILES:=doc/COPYING.LGPL
  43. endef
  44. define Package/libattr/description
  45. $(call Package/attr/Default/description)
  46. This package provides libattr
  47. endef
  48. define Package/attr/description
  49. $(call Package/attr/Default/description)
  50. This package provides xattr manipulation utilities
  51. - attr
  52. - getfattr
  53. - setfattr
  54. endef
  55. CONFIGURE_ARGS += --enable-static --enable-shared
  56. define Package/attr/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  59. endef
  60. define Package/libattr/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(INSTALL_DIR) $(1)/etc
  63. $(CP) $(PKG_INSTALL_DIR)/etc $(1)/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  65. endef
  66. define Package/attr/conffiles
  67. /etc/xattr.conf
  68. endef
  69. define Build/InstallDev
  70. $(INSTALL_DIR) $(1)/usr/include
  71. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  72. $(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  73. endef
  74. $(eval $(call BuildPackage,attr))
  75. $(eval $(call BuildPackage,libattr))