aboutsummaryrefslogtreecommitdiffstats
path: root/security/luasec/Makefile
diff options
context:
space:
mode:
authorlx <lx@FreeBSD.org>2014-02-08 05:46:26 +0800
committerlx <lx@FreeBSD.org>2014-02-08 05:46:26 +0800
commit3542b294ca0fe0c43c22109f084da699d7de902b (patch)
tree08540f2bde34592e958b7fb0dc9814d4d29ba540 /security/luasec/Makefile
parenteaf5e32a38c67136afe2bd7cd3cc2d11fa5d0728 (diff)
downloadfreebsd-ports-gnome-3542b294ca0fe0c43c22109f084da699d7de902b.tar.gz
freebsd-ports-gnome-3542b294ca0fe0c43c22109f084da699d7de902b.tar.zst
freebsd-ports-gnome-3542b294ca0fe0c43c22109f084da699d7de902b.zip
Update and take maintainership. Remove dependency on luasocket.
PR: ports/186533 Submitted by: Benjamin Podszun <dar@darklajid.de>
Diffstat (limited to 'security/luasec/Makefile')
-rw-r--r--security/luasec/Makefile24
1 files changed, 13 insertions, 11 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>