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

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