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.

90 lines
2.0 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.4.48
  10. PKG_RELEASE:=1
  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:=095699f71230ace37e5bc680c6f9d15cf8e53eb38d00b2c46db5cc7e0712e5f3
  14. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  16. PKG_LICENSE_FILES:=doc/COPYING doc/COPYING.LGPL
  17. PKG_INSTALL:=1
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/attr/Default
  21. TITLE:=Extended attributes (xattr) manipulation
  22. URL:=http://savannah.nongnu.org/projects/attr
  23. SUBMENU:=Filesystem
  24. endef
  25. define Package/attr/Default/description
  26. Extended attributes support
  27. endef
  28. define Package/attr
  29. $(call Package/attr/Default)
  30. SECTION:=utils
  31. CATEGORY:=Utilities
  32. TITLE+=utils
  33. DEPENDS:=+libattr
  34. endef
  35. define Package/libattr
  36. $(call Package/attr/Default)
  37. SECTION:=libs
  38. CATEGORY:=Libraries
  39. TITLE+=library
  40. endef
  41. define Package/libattr/description
  42. $(call Package/attr/Default/description)
  43. This package provides libattr
  44. endef
  45. define Package/attr/description
  46. $(call Package/attr/Default/description)
  47. This package provides xattr manipulation utilities
  48. - attr
  49. - getfattr
  50. - setfattr
  51. endef
  52. CONFIGURE_ARGS += --enable-static --enable-shared
  53. define Package/attr/install
  54. $(INSTALL_DIR) $(1)/usr/bin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  56. endef
  57. define Package/libattr/install
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(INSTALL_DIR) $(1)/etc
  60. $(CP) $(PKG_INSTALL_DIR)/etc $(1)/
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  62. endef
  63. define Package/attr/conffiles
  64. /etc/xattr.conf
  65. endef
  66. define Build/InstallDev
  67. mkdir -p $(1)/usr/include
  68. mkdir -p $(1)/usr/lib/pkgconfig
  69. $(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  70. endef
  71. $(eval $(call BuildPackage,attr))
  72. $(eval $(call BuildPackage,libattr))