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.

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