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:
parent
63bba81189
commit
e620d9edc8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434147
@ -360,6 +360,7 @@
|
||||
SUBDIR += log2timeline
|
||||
SUBDIR += logcheck
|
||||
SUBDIR += luasec
|
||||
SUBDIR += luasec-51
|
||||
SUBDIR += lynis
|
||||
SUBDIR += mac-robber
|
||||
SUBDIR += maia
|
||||
|
47
security/luasec-51/Makefile
Normal file
47
security/luasec-51/Makefile
Normal 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>
|
3
security/luasec-51/distinfo
Normal file
3
security/luasec-51/distinfo
Normal 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
|
6
security/luasec-51/pkg-descr
Normal file
6
security/luasec-51/pkg-descr
Normal 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/
|
3
security/luasec-51/pkg-plist
Normal file
3
security/luasec-51/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
%%LUA_MODLIBDIR%%/ssl.so
|
||||
%%LUA_MODSHAREDIR%%/ssl.lua
|
||||
%%LUA_MODSHAREDIR%%/ssl/https.lua
|
Loading…
Reference in New Issue
Block a user