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.

47 lines
1.1 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.5.10
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=http://people.redhat.com/dhowells/keyutils/
  11. PKG_HASH:=115c3deae7f181778fd0e0ffaa2dad1bf1fe2f5677cf2e0e348cdb7a1c93afb6
  12. PKG_FIXUP:=libtool
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/libkeyutils
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=Key utilities library
  18. URL:=http://people.redhat.com/dhowells/keyutils/
  19. endef
  20. define Package/keyutils/description
  21. Key utilities library
  22. endef
  23. define Build/Install
  24. make -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) LIBDIR=/usr/lib install
  25. endef
  26. define Build/InstallDev
  27. $(INSTALL_DIR) $(1)/usr/include
  28. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  29. $(INSTALL_DIR) $(1)/usr/lib/
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.{a,so*} $(1)/usr/lib/
  31. endef
  32. define Package/libkeyutils/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkeyutils.so* $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,libkeyutils))