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.8 KiB

  1. #
  2. # Copyright (C) 2012-2016 OpenWrt.org
  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:=ecdsautils
  9. PKG_VERSION:=0.3.2.20160630
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/freifunk-gluon/ecdsautils
  13. PKG_SOURCE_VERSION:=07538893fb6c2a9539678c45f9dbbf1e4f222b46
  14. PKG_MIRROR_HASH:=397395a471c0b5af1a173666ba21a5bedb4c3423a6e37c545c3627bed73dcb76
  15. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. CMAKE_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libecdsautil
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libuecc
  24. TITLE:=ECDSA library
  25. URL:=https://github.com/tcatm/ecdsautils
  26. LICENSE:=MIT
  27. endef
  28. define Package/ecdsautils
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. DEPENDS:=+libecdsautil +libuecc
  32. TITLE:=ECDSA Utilities
  33. URL:=https://github.com/tcatm/ecdsautils
  34. LICENSE:=BSD-2-Clause
  35. endef
  36. define Package/libecdsautil/description
  37. Library to sign and verify checksums using ECDSA.
  38. endef
  39. define Package/ecdsautils/description
  40. Utilities to sign and verify checksums using ECDSA.
  41. endef
  42. CMAKE_OPTIONS += \
  43. -DCMAKE_BUILD_TYPE:String="MINSIZEREL"
  44. define Package/libecdsautil/install
  45. $(INSTALL_DIR) $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libecdsautil.so* $(1)/usr/lib/
  47. endef
  48. define Package/ecdsautils/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ecdsautil $(1)/usr/bin/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsakeygen $(1)/usr/bin/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsasign $(1)/usr/bin/
  53. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsaverify $(1)/usr/bin/
  54. endef
  55. $(eval $(call BuildPackage,libecdsautil))
  56. $(eval $(call BuildPackage,ecdsautils))