1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00

Add 5.1-specific version of luasec

This commit is contained in:
David Thiel 2017-02-15 00:12:17 +00:00
parent 63bba81189
commit e620d9edc8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434147
5 changed files with 60 additions and 0 deletions

View File

@ -360,6 +360,7 @@
SUBDIR += log2timeline
SUBDIR += logcheck
SUBDIR += luasec
SUBDIR += luasec-51
SUBDIR += lynis
SUBDIR += mac-robber
SUBDIR += maia

View File

@ -0,0 +1,47 @@
# Created by: Andrew Lewis <freeghb@gmail.com>
# $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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>

View File

@ -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

View File

@ -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/

View File

@ -0,0 +1,3 @@
%%LUA_MODLIBDIR%%/ssl.so
%%LUA_MODSHAREDIR%%/ssl.lua
%%LUA_MODSHAREDIR%%/ssl/https.lua