aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/luasec/Makefile24
-rw-r--r--security/luasec/distinfo4
2 files changed, 15 insertions, 13 deletions
diff --git a/security/luasec/Makefile b/security/luasec/Makefile
index f68fa5b00fa6..580ddfc15ac3 100644
--- a/security/luasec/Makefile
+++ b/security/luasec/Makefile
@@ -2,25 +2,25 @@
# $FreeBSD$
PORTNAME= luasec
-PORTVERSION= 0.4
+PORTVERSION= 0.5
CATEGORIES= security
-MASTER_SITES= http://www.inf.puc-rio.br/~brunoos/luasec/download/
+MASTER_SITES= https://github.com/brunoos/${PORTNAME}/archive/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= lx@FreeBSD.org
COMMENT= Lua binding for the OpenSSL library to provide TLS/SSL communication
-RUN_DEPENDS+= ${LUA_MODLIBDIR}/socket/core.so:${PORTSDIR}/net/luasocket
+FETCH_ARGS= -Fpr
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${PORTVERSION}
ALL_TARGET= bsd
-LIBDIR= -L${LUA_LIBDIR}
-MAKE_ENV+= INCDIR=-I${LUA_INCDIR} LUAPATH=${LUA_MODSHAREDIR} \
+LIBDIR= -L${LUA_LIBDIR} -L${WRKSRC}/src/luasocket
+MAKE_ENV+= INCDIR="-I${LUA_INCDIR} -I${WRKSRC}/src" LUAPATH=${LUA_MODSHAREDIR} \
CPATH=${LUA_MODLIBDIR}
USE_LUA= 5.1
WANT_LUA_VER= 5.1
USE_OPENSSL= yes
-NO_STAGE= yes
.include <bsd.port.options.mk>
# NOTE: OSVERSION is already defined here, and USE_OPENSSL_PORT
@@ -31,10 +31,12 @@ USE_OPENSSL_PORT=yes
.endif
post-patch: .SILENT
- ${REINPLACE_CMD} -Ee '/^CC/s/=/?=/' \
- -e '/^LD/s/gcc/$$(CC)/' \
- -e '/^(C|LD)FLAGS/s/=/+=/' \
- -e '/^BSD/{s/-O[0-3]?//;}' \
+ ${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.mk>
diff --git a/security/luasec/distinfo b/security/luasec/distinfo
index df9a7b856f71..e5d5f246bd62 100644
--- a/security/luasec/distinfo
+++ b/security/luasec/distinfo
@@ -1,2 +1,2 @@
-SHA256 (luasec-0.4.tar.gz) = 111732f0e646120a701d33e7d3a613a9a901c11c0a01d0805d73ef90c3f0abd5
-SIZE (luasec-0.4.tar.gz) = 27829
+SHA256 (luasec-0.5.tar.gz) = 6480598f7492ac479b6b608b5fb1488226bfa6ef675e29f6b24dbe9099083523
+SIZE (luasec-0.5.tar.gz) = 46738