aboutsummaryrefslogtreecommitdiffstats
path: root/security
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
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')
-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