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.

98 lines
2.2 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:=acl
  9. PKG_REV:=f2a5f57a20ffa007abc1fa24df1f76e18b74a425
  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/acl.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/acl/Default
  22. TITLE:=Access control list (ACL) manipulation
  23. URL:=http://savannah.nongnu.org/projects/acl
  24. SUBMENU:=Filesystem
  25. endef
  26. define Package/acl/Default/description
  27. Access control list support
  28. endef
  29. define Package/acl
  30. $(call Package/acl/Default)
  31. SECTION:=utils
  32. CATEGORY:=Utilities
  33. TITLE+=utils
  34. DEPENDS:=+libacl
  35. endef
  36. define Package/libacl
  37. $(call Package/acl/Default)
  38. SECTION:=libs
  39. CATEGORY:=Libraries
  40. TITLE+=library
  41. DEPENDS:=+libattr
  42. KCONFIG:= \
  43. CONFIG_EXT4_FS_POSIX_ACL=y \
  44. CONFIG_FS_POSIX_ACL=y \
  45. CONFIG_HFSPLUS_FS_POSIX_ACL=y \
  46. CONFIG_JFFS2_FS_POSIX_ACL=y \
  47. CONFIG_JFS_POSIX_ACL=y \
  48. CONFIG_TMPFS_POSIX_ACL=y \
  49. CONFIG_XFS_POSIX_ACL=y \
  50. endef
  51. define Package/libacl/description
  52. $(call Package/acl/Default/description)
  53. This package provides libacl
  54. endef
  55. define Package/acl/description
  56. $(call Package/acl/Default/description)
  57. This package provides ACL manipulation utilities
  58. - chacl
  59. - getfacl
  60. - setfacl
  61. endef
  62. CONFIGURE_ARGS += --enable-static --enable-shared
  63. define Build/Prepare
  64. $(call Build/Prepare/Default)
  65. (cd $(PKG_BUILD_DIR); ./autogen.sh;);
  66. endef
  67. define Package/acl/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  70. endef
  71. define Package/libacl/install
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  74. endef
  75. define Build/InstallDev
  76. mkdir -p $(1)/usr/include
  77. mkdir -p $(1)/usr/lib/pkgconfig
  78. $(CP) -r $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  79. endef
  80. $(eval $(call BuildPackage,acl))
  81. $(eval $(call BuildPackage,libacl))