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.

70 lines
1.7 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.1
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=https://people.redhat.com/dhowells/keyutils/
  11. PKG_HASH:=c8b15722ae51d95b9ad76cc6d49a4c2cc19b0c60f72f61fb9bf43eea7cbd64ce
  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/description
  34. Key utilities
  35. endef
  36. MAKE_FLAGS += \
  37. BINDIR=/usr/bin \
  38. LIBDIR=/usr/lib \
  39. SBINDIR=/usr/sbin \
  40. CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib/
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.a $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.so.$(ABI_VERSION)* $(1)/usr/lib/
  47. endef
  48. define Package/libkeyutils/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.so.$(ABI_VERSION)* $(1)/usr/lib/
  51. endef
  52. define Package/keyctl/install
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/keyctl $(1)/usr/bin
  55. endef
  56. $(eval $(call BuildPackage,libkeyutils))
  57. $(eval $(call BuildPackage,keyctl))