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.

59 lines
1.4 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
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=https://people.redhat.com/dhowells/keyutils/
  11. PKG_HASH:=d3aef20cec0005c0fa6b4be40079885567473185b1a57b629b030e67942c7115
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/libkeyutils
  14. SECTION:=libs
  15. CATEGORY:=Libraries
  16. TITLE:=Key utilities library
  17. URL:=https://people.redhat.com/dhowells/keyutils/
  18. endef
  19. define Package/keyctl
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. SUBMENU:=Encryption
  23. TITLE:=keyctl
  24. DEPENDS:=+libkeyutils
  25. endef
  26. define Package/keyutils/description
  27. Key utilities
  28. endef
  29. define Build/Install
  30. make -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) LIBDIR=/usr/lib install
  31. endef
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  35. $(INSTALL_DIR) $(1)/usr/lib/
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.{a,so*} $(1)/usr/lib/
  37. endef
  38. define Package/libkeyutils/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.so* $(1)/usr/lib/
  41. endef
  42. define Package/keyctl/install
  43. $(INSTALL_DIR) $(1)/bin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/keyctl $(1)/bin
  45. endef
  46. $(eval $(call BuildPackage,libkeyutils))
  47. $(eval $(call BuildPackage,keyctl))