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.

89 lines
1.9 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. endef
  43. define Package/libacl/description
  44. $(call Package/acl/Default/description)
  45. This package provides libacl
  46. endef
  47. define Package/acl/description
  48. $(call Package/acl/Default/description)
  49. This package provides ACL manipulation utilities
  50. - chacl
  51. - getfacl
  52. - setfacl
  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/acl/install
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  62. endef
  63. define Package/libacl/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  66. endef
  67. define Build/InstallDev
  68. mkdir -p $(1)/usr/include
  69. mkdir -p $(1)/usr/lib/pkgconfig
  70. $(CP) -r $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  71. endef
  72. $(eval $(call BuildPackage,acl))
  73. $(eval $(call BuildPackage,libacl))