1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Turn into a slave port.

Submitted by:	lifanof
This commit is contained in:
David Thiel 2017-02-17 21:04:38 +00:00
parent 5b7d4741fb
commit 52811c6207
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434315
4 changed files with 6 additions and 52 deletions

View File

@ -1,47 +1,13 @@
# Created by: Andrew Lewis <freeghb@gmail.com>
# $FreeBSD$
PORTNAME= luasec
PORTVERSION= 0.6
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= security
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
COMMENT= LuaSec for Lua 5.1
MAINTAINER= lx@FreeBSD.org
COMMENT= Lua binding for the OpenSSL library to provide TLS/SSL communication
SLAVE_PORT= luasec
LICENSE= MIT
USES= lua:51 ssl
USE_GITHUB= yes
GH_ACCOUNT= brunoos
MASTERDIR= ${.CURDIR}/../luasec
PLIST= ${MASTERDIR}/pkg-plist
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>
.include "${MASTERDIR}/Makefile"

View File

@ -1,3 +0,0 @@
TIMESTAMP = 1481113241
SHA256 (brunoos-luasec-luasec-0.6_GH0.tar.gz) = cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d
SIZE (brunoos-luasec-luasec-0.6_GH0.tar.gz) = 51071

View File

@ -1,6 +0,0 @@
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

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