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.

74 lines
2.2 KiB

  1. #
  2. # Author: Tibor Dudlák
  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:=jose
  9. PKG_VERSION:=10
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
  13. PKG_HASH:=5c9cdcfb535c4d9f781393d7530521c72b1dd81caa9934cab6dd752cc7efcd72
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libjose
  19. SECTION:=libs
  20. TITLE:=Provides a full crypto stack including key generation, signing and encryption.
  21. DEPENDS:=+zlib +jansson +libopenssl +libpthread
  22. URL:=https://github.com/latchset/jose
  23. MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
  24. endef
  25. define Package/jose
  26. SECTION:=utils
  27. TITLE:=Provides a full crypto stack including key generation, signing and encryption.
  28. DEPENDS:=+libjose
  29. URL:=https://github.com/latchset/jose
  30. MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
  31. endef
  32. define Package/jose/description
  33. jose is a command line utility for performing various tasks on JSON
  34. Object Signing and Encryption (JOSE) objects. José provides a full
  35. crypto stack including key generation, signing and encryption.
  36. endef
  37. define Package/libjose/description
  38. libjose is a library for performing various tasks on JSON
  39. Object Signing and Encryption (JOSE) objects. José provides a full
  40. crypto stack including key generation, signing and encryption.
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h $(1)/usr/include/$(PKG_NAME)
  49. $(CP) $(PKG_BUILD_DIR)/*.pc $(1)/usr/lib/pkgconfig
  50. endef
  51. define Package/libjose/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib/
  54. endef
  55. define Package/jose/install
  56. $(INSTALL_DIR) $(1)/usr/bin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  58. endef
  59. $(eval $(call BuildPackage,libjose))
  60. $(eval $(call BuildPackage,jose))