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

  1. #
  2. # Copyright (C) 2021 Siger Yang <sigeryeung@gmail.com>
  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:=luaossl
  9. PKG_VERSION:=20200709
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Siger Yang <sigeryeung@gmail.com>
  12. PKG_MIRROR_HASH:=6dbca3cdc50ed7e3b0821783da2407accfb6d25addc3edf1d8e17b00530f5a25
  13. PKG_SOURCE_URL:=https://github.com/wahern/luaossl.git
  14. PKG_SOURCE_VERSION:=rel-$(PKG_VERSION)
  15. PKG_SOURCE_PROTO:=git
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/luaossl
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Comprehensive binding to OpenSSL for Lua 5.1, 5.2, and later
  25. URL:=http://25thandclement.com/~william/projects/luaossl.html
  26. DEPENDS:=+liblua +libopenssl
  27. endef
  28. define Package/luaossl/description
  29. luaossl is a comprehensive binding to OpenSSL for Lua 5.1, 5.2, and
  30. later. It includes support for certificate and key management, key
  31. generation, signature verification, and deep bindings to the
  32. distinguished name, alternative name, and X.509v3 extension interfaces.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. TARGET_LDFLAGS += $(FPIC)
  36. MAKE_FLAGS += \
  37. LUA_APIS="5.1" \
  38. lua51cpath="/usr/lib/lua" \
  39. lua51path="/usr/lib/lua"
  40. define Package/luaossl/install
  41. $(INSTALL_DIR) $(1)/usr/lib/lua
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/_openssl.so $(1)/usr/lib/lua/
  43. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/openssl.lua $(1)/usr/lib/lua/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/openssl $(1)/usr/lib/lua/
  45. endef
  46. $(eval $(call BuildPackage,luaossl))