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.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:=50fc862d69984089ce09138b3350ee7762290403
  10. PKG_VERSION:=20140610
  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_INSTALL:=1
  20. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/attr/Default
  23. TITLE:=Extended attributes (xattr) manipulation
  24. URL:=http://savannah.nongnu.org/projects/attr
  25. SUBMENU:=Filesystem
  26. endef
  27. define Package/attr/Default/description
  28. Extended attributes support
  29. endef
  30. define Package/attr
  31. $(call Package/attr/Default)
  32. SECTION:=utils
  33. CATEGORY:=Utilities
  34. TITLE+=utils
  35. DEPENDS:=+libattr
  36. endef
  37. define Package/libattr
  38. $(call Package/attr/Default)
  39. SECTION:=libs
  40. CATEGORY:=Libraries
  41. TITLE+=library
  42. endef
  43. define Package/libattr/description
  44. $(call Package/attr/Default/description)
  45. This package provides libattr
  46. endef
  47. define Package/attr/description
  48. $(call Package/attr/Default/description)
  49. This package provides xattr manipulation utilities
  50. - attr
  51. - getfattr
  52. - setfattr
  53. endef
  54. CONFIGURE_ARGS += --enable-static --enable-shared
  55. define Build/Prepare
  56. $(call Build/Prepare/Default)
  57. (cd $(PKG_BUILD_DIR); ./autogen.sh;);
  58. endef
  59. define Package/attr/install
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  62. endef
  63. define Package/libattr/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(INSTALL_DIR) $(1)/etc
  66. $(CP) $(PKG_INSTALL_DIR)/etc $(1)/
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  68. endef
  69. define Package/attr/conffiles
  70. /etc/xattr.conf
  71. endef
  72. define Build/InstallDev
  73. mkdir -p $(1)/usr/include
  74. mkdir -p $(1)/usr/lib/pkgconfig
  75. $(CP) -r $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  76. endef
  77. $(eval $(call BuildPackage,attr))
  78. $(eval $(call BuildPackage,libattr))