2 # Copyright (C) 2021 Siger Yang <siger.yang@outlook.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Siger Yang
<siger.yang@outlook.com
>
15 PKG_MIRROR_HASH
:=60d747778b0a526616c89d27a695d35e36f774b0035f7ff523c8d4bdbb02d075
16 PKG_SOURCE_URL
:=https
://github.com
/wahern
/luaossl.git
17 PKG_SOURCE_VERSION
:=rel-
$(PKG_VERSION
)
21 PKG_LICENSE_FILES
:=LICENSE
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/luaossl
31 TITLE
:=Comprehensive binding to OpenSSL for Lua
5.1, 5.2, and later
32 URL
:=http
://25thandclement.com
/~william
/projects
/luaossl.html
33 DEPENDS
:=+liblua
+libopenssl
36 define Package
/luaossl
/description
37 luaossl is a comprehensive binding to OpenSSL for Lua
5.1, 5.2, and
38 later. It includes support for certificate and key management
, key
39 generation
, signature verification
, and deep bindings to the
40 distinguished name
, alternative name
, and X
.509v3 extension interfaces.
43 TARGET_CFLAGS
+= $(FPIC
)
44 TARGET_LDFLAGS
+= $(FPIC
)
48 lua51cpath
="/usr/lib/lua" \
49 lua51path
="/usr/lib/lua"
51 define Package
/luaossl
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
53 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/lua
/_openssl.so
$(1)/usr
/lib
/lua
/
54 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/lua
/openssl.lua
$(1)/usr
/lib
/lua
/
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lua
/openssl
$(1)/usr
/lib
/lua
/
59 $(eval
$(call BuildPackage
,luaossl
))