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.

88 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2014-2016 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:=ea3c6bb711e76d91759f8bf5475e1900362a3142
  10. PKG_VERSION:=20160519
  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_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  18. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  19. PKG_LICENSE_FILES:=doc/COPYING doc/COPYING.LGPL
  20. PKG_INSTALL:=1
  21. PKG_FIXUP:=autoreconf
  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 Package/acl/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  60. endef
  61. define Package/libacl/install
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  64. endef
  65. define Build/InstallDev
  66. mkdir -p $(1)/usr/include
  67. mkdir -p $(1)/usr/lib/pkgconfig
  68. $(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  69. endef
  70. $(eval $(call BuildPackage,acl))
  71. $(eval $(call BuildPackage,libacl))