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.

90 lines
2.0 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. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/acl/Default
  23. TITLE:=Access control list (ACL) manipulation
  24. URL:=http://savannah.nongnu.org/projects/acl
  25. SUBMENU:=Filesystem
  26. endef
  27. define Package/acl/Default/description
  28. Access control list support
  29. endef
  30. define Package/acl
  31. $(call Package/acl/Default)
  32. SECTION:=utils
  33. CATEGORY:=Utilities
  34. TITLE+=utils
  35. DEPENDS:=+libacl
  36. endef
  37. define Package/libacl
  38. $(call Package/acl/Default)
  39. SECTION:=libs
  40. CATEGORY:=Libraries
  41. TITLE+=library
  42. DEPENDS:=+libattr
  43. endef
  44. define Package/libacl/description
  45. $(call Package/acl/Default/description)
  46. This package provides libacl
  47. endef
  48. define Package/acl/description
  49. $(call Package/acl/Default/description)
  50. This package provides ACL manipulation utilities
  51. - chacl
  52. - getfacl
  53. - setfacl
  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/acl/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  63. endef
  64. define Package/libacl/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  67. endef
  68. define Build/InstallDev
  69. mkdir -p $(1)/usr/include
  70. mkdir -p $(1)/usr/lib/pkgconfig
  71. $(CP) -r $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  72. endef
  73. $(eval $(call BuildPackage,acl))
  74. $(eval $(call BuildPackage,libacl))