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.

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