FreeBSD Bugzilla – Attachment 172382 Details for
Bug 210462
security/luasec: update to 0.6, add LICENSE, add compatibility with newer LUA
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
pet portlint + update to 0.6
luasec.patch (text/plain), 2.81 KB, created by
Piotr Kubaj
on 2016-07-11 13:50:37 UTC
(
hide
)
Description:
pet portlint + update to 0.6
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2016-07-11 13:50:37 UTC
Size:
2.81 KB
patch
obsolete
>diff --git a/security/luasec/Makefile b/security/luasec/Makefile >index 7c7160d..cdfe9a6 100644 >--- a/security/luasec/Makefile >+++ b/security/luasec/Makefile >@@ -2,7 +2,7 @@ > # $FreeBSD$ > > PORTNAME= luasec >-PORTVERSION= 0.5.1 >+PORTVERSION= 0.6 > DISTVERSIONPREFIX= ${PORTNAME}- > CATEGORIES= security > PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} >@@ -10,24 +10,34 @@ 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 >+ CPATH=${LUA_MODLIBDIR} LD=${CC} >+USES= lua > USE_OPENSSL= yes > CFLAGS+= -DOPENSSL_NO_SSL3 > > post-patch: .SILENT >- ${REINPLACE_CMD} -Ee '/\(INSTALL\)/s/-D //' \ >+ @${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/[^?]=/?=/' \ >+ @${REINPLACE_CMD} -Ee '/^(INC|LIB)DIR/s/[^?]=/?=/' \ > ${WRKSRC}/Makefile > >+do-install: >+ ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} >+ ${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}/ssl >+ ${STRIP_CMD} ${WRKSRC}/src/ssl.so >+ ${INSTALL_DATA} ${WRKSRC}/src/https.lua ${STAGEDIR}${LUA_MODSHAREDIR}/ssl >+ ${INSTALL_DATA} ${WRKSRC}/src/ssl.lua ${STAGEDIR}${LUA_MODSHAREDIR} >+ ${INSTALL_DATA} ${WRKSRC}/src/ssl.so ${STAGEDIR}${LUA_MODLIBDIR} >+ > .include <bsd.port.mk> >diff --git a/security/luasec/distinfo b/security/luasec/distinfo >index 317c02c..6fb6f93 100644 >--- a/security/luasec/distinfo >+++ b/security/luasec/distinfo >@@ -1,2 +1,3 @@ >-SHA256 (brunoos-luasec-luasec-0.5.1_GH0.tar.gz) = 6d5c5f8e0521f3194668d9a839774e079e2fd5c45b15538dc7b8cacc56719406 >-SIZE (brunoos-luasec-luasec-0.5.1_GH0.tar.gz) = 46820 >+TIMESTAMP = 1466594904 >+SHA256 (brunoos-luasec-luasec-0.6_GH0.tar.gz) = cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d >+SIZE (brunoos-luasec-luasec-0.6_GH0.tar.gz) = 51071 >diff --git a/security/luasec/files/patch-src_context.c b/security/luasec/files/patch-src_context.c >deleted file mode 100644 >index cd756e1..0000000 >--- a/security/luasec/files/patch-src_context.c >+++ /dev/null >@@ -1,12 +0,0 @@ >---- src/context.c.orig 2014-01-29 20:43:33 UTC >-+++ src/context.c >-@@ -66,7 +66,9 @@ static int set_option_flag(const char *o >- static LSEC_SSL_METHOD* str2method(const char *method) >- { >- if (!strcmp(method, "sslv23")) return SSLv23_method(); >-+#ifndef OPENSSL_NO_SSL3 >- if (!strcmp(method, "sslv3")) return SSLv3_method(); >-+#endif >- if (!strcmp(method, "tlsv1")) return TLSv1_method(); >- #if (OPENSSL_VERSION_NUMBER >= 0x1000100fL) >- if (!strcmp(method, "tlsv1_1")) return TLSv1_1_method();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210462
:
171671
|
171672
|
172382
|
172408
|
177755
Working