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