Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_VERSION:=2.3.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://git.savannah.nongnu.org/cgit/acl.git/snapshot
  13. PKG_HASH:=8cad1182cc5703c3e8bf7a220fc267f146246f088d1ba5dd72d8b02736deedcc
  14. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  16. PKG_LICENSE_FILES:=doc/COPYING doc/COPYING.LGPL
  17. PKG_INSTALL:=1
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/acl/Default
  21. TITLE:=Access control list (ACL) manipulation
  22. URL:=https://savannah.nongnu.org/projects/acl
  23. SUBMENU:=Filesystem
  24. endef
  25. define Package/acl/Default/description
  26. Access control list support
  27. endef
  28. define Package/acl
  29. $(call Package/acl/Default)
  30. SECTION:=utils
  31. CATEGORY:=Utilities
  32. TITLE+=utils
  33. DEPENDS:=+libacl
  34. endef
  35. define Package/libacl
  36. $(call Package/acl/Default)
  37. SECTION:=libs
  38. CATEGORY:=Libraries
  39. TITLE+=library
  40. DEPENDS:=+libattr
  41. endef
  42. define Package/libacl/description
  43. $(call Package/acl/Default/description)
  44. This package provides libacl
  45. endef
  46. define Package/acl/description
  47. $(call Package/acl/Default/description)
  48. This package provides ACL manipulation utilities
  49. - chacl
  50. - getfacl
  51. - setfacl
  52. endef
  53. CONFIGURE_ARGS += --enable-static --enable-shared
  54. define Package/acl/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  57. endef
  58. define Package/libacl/install
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  61. endef
  62. define Build/InstallDev
  63. mkdir -p $(1)/usr/include
  64. mkdir -p $(1)/usr/lib/pkgconfig
  65. $(CP) $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/
  66. endef
  67. $(eval $(call BuildPackage,acl))
  68. $(eval $(call BuildPackage,libacl))