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
2.3 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=keyutils
  7. PKG_VERSION:=1.6.3
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/
  11. PKG_HASH:=a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libkeyutils
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=Key utilities library
  19. URL:=https://people.redhat.com/dhowells/keyutils/
  20. LICENSE:=LGPL-2.1-or-later
  21. LICENSE_FILES:=LICENSE.LGPL
  22. ABI_VERSION:=1
  23. endef
  24. define Package/keyctl
  25. SECTION:=utils
  26. CATEGORY:=Utilities
  27. SUBMENU:=Encryption
  28. TITLE:=keyctl
  29. DEPENDS:=+libkeyutils
  30. LICENSE:=GPL-2.0-or-later
  31. LICENSE_FILES:=LICENSE.GPL
  32. endef
  33. define Package/keyutils
  34. SECTION:=utils
  35. CATEGORY:=Utilities
  36. SUBMENU:=Encryption
  37. TITLE:=keyutils (request-key and key.dns_resolver)
  38. DEPENDS:=+libkeyutils
  39. LICENSE:=GPL-2.0-or-later
  40. LICENSE_FILES:=LICENSE.GPL
  41. endef
  42. define Package/keyutils/description
  43. Key utilities
  44. endef
  45. MAKE_FLAGS += \
  46. BINDIR=/usr/bin \
  47. LIBDIR=/usr/lib \
  48. SBINDIR=/usr/sbin \
  49. CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
  50. define Build/InstallDev
  51. $(INSTALL_DIR) $(1)/usr/include
  52. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  53. $(INSTALL_DIR) $(1)/usr/lib/
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.a $(1)/usr/lib/
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.so.$(ABI_VERSION)* $(1)/usr/lib/
  56. endef
  57. define Package/libkeyutils/install
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.so.$(ABI_VERSION)* $(1)/usr/lib/
  60. endef
  61. define Package/keyutils/install
  62. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/keyutils $(1)/etc/request-key.d
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/request-key $(1)/usr/sbin/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/key.dns_resolver $(1)/usr/sbin/
  65. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/request-key.conf $(1)/etc/
  66. endef
  67. define Package/keyctl/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/keyctl $(1)/usr/bin
  70. endef
  71. $(eval $(call BuildPackage,libkeyutils))
  72. $(eval $(call BuildPackage,keyutils))
  73. $(eval $(call BuildPackage,keyctl))