2 # Copyright (C) 2021 Siger Yang <sigeryeung@gmail.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
<sigeryeung@gmail.com
>
15 PKG_MIRROR_HASH
:=6dbca3cdc50ed7e3b0821783da2407accfb6d25addc3edf1d8e17b00530f5a25
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
))