diff --git a/security/Makefile b/security/Makefile index 1a9c01e6cdd3..bfa4cea4ec3c 100644 --- a/security/Makefile +++ b/security/Makefile @@ -360,6 +360,7 @@ SUBDIR += log2timeline SUBDIR += logcheck SUBDIR += luasec + SUBDIR += luasec-51 SUBDIR += lynis SUBDIR += mac-robber SUBDIR += maia diff --git a/security/luasec-51/Makefile b/security/luasec-51/Makefile new file mode 100644 index 000000000000..f48c58f325ca --- /dev/null +++ b/security/luasec-51/Makefile @@ -0,0 +1,47 @@ +# Created by: Andrew Lewis +# $FreeBSD$ + +PORTNAME= luasec +PORTVERSION= 0.6 +DISTVERSIONPREFIX= ${PORTNAME}- +CATEGORIES= security +PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} + +MAINTAINER= lx@FreeBSD.org +COMMENT= Lua binding for the OpenSSL library to provide TLS/SSL communication + +LICENSE= MIT + +USE_GITHUB= yes +GH_ACCOUNT= brunoos + +ALL_TARGET= bsd +LIBDIR= -L${LUA_LIBDIR} -L${WRKSRC}/src/luasocket +MAKE_ENV+= INCDIR="-I${LUA_INCDIR} -I${WRKSRC}/src" LUAPATH=${LUA_MODSHAREDIR} \ + CPATH=${LUA_MODLIBDIR} LD=${CC} +USES= lua:51 ssl +CFLAGS+= -I${OPENSSLINC} -DOPENSSL_NO_SSL3 +LDFLAGS+= -L${OPENSSLLIB} + +post-patch: .SILENT + ${REINPLACE_CMD} -Ee '/\(INSTALL\)/s/-D //' \ + -e '/^LDFLAGS/s/\+=/=/' \ + -e 's/LUAPATH/LUA_MODSHAREDIR/' \ + -e 's/LUACPATH/LUA_MODLIBDIR/' \ + ${WRKSRC}/src/Makefile + ${REINPLACE_CMD} -Ee '/^(INC|LIB)DIR/s/[^?]=/?=/' \ + ${WRKSRC}/Makefile + +.include + +.if ${SSL_DEFAULT:Mopenssl-devel} +BROKEN= Does not build with openssl-devel +.endif + +do-install: + ${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}/ssl ${STAGEDIR}${LUA_MODLIBDIR} + ${INSTALL_LIB} ${WRKSRC}/src/ssl.so ${STAGEDIR}${LUA_MODLIBDIR} + ${INSTALL_DATA} ${WRKSRC}/src/ssl.lua ${STAGEDIR}${LUA_MODSHAREDIR} + ${INSTALL_DATA} ${WRKSRC}/src/https.lua ${STAGEDIR}${LUA_MODSHAREDIR}/ssl + +.include diff --git a/security/luasec-51/distinfo b/security/luasec-51/distinfo new file mode 100644 index 000000000000..fa9eee107e37 --- /dev/null +++ b/security/luasec-51/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1481113241 +SHA256 (brunoos-luasec-luasec-0.6_GH0.tar.gz) = cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d +SIZE (brunoos-luasec-luasec-0.6_GH0.tar.gz) = 51071 diff --git a/security/luasec-51/pkg-descr b/security/luasec-51/pkg-descr new file mode 100644 index 000000000000..61040cc9240d --- /dev/null +++ b/security/luasec-51/pkg-descr @@ -0,0 +1,6 @@ +LuaSec is a binding for OpenSSL library to provide TLS/SSL communication. This +version delegates to LuaSocket the TCP connection establishment between the +client and server. Then LuaSec uses this connection to start a secure TLS/SSL +session. + +WWW: http://www.inf.puc-rio.br/~brunoos/luasec/ diff --git a/security/luasec-51/pkg-plist b/security/luasec-51/pkg-plist new file mode 100644 index 000000000000..29b994755502 --- /dev/null +++ b/security/luasec-51/pkg-plist @@ -0,0 +1,3 @@ +%%LUA_MODLIBDIR%%/ssl.so +%%LUA_MODSHAREDIR%%/ssl.lua +%%LUA_MODSHAREDIR%%/ssl/https.lua