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