Update to 3.0rc1 * Fix build with lua 5.2. Changelog: Main changes for LuaSocket 3.0-rc1 are IPv6 support and Lua 5.2 compatibility. * Added: Compatible with Lua 5.2 - Note that unless you define LUA_COMPAT_MODULE, package tables will not be exported as globals! * Added: IPv6 support; - Socket.connect and socket.bind support IPv6 addresses; - Getpeername and getsockname support IPv6 addresses, and return the socket family as a third value; - URL module updated to support IPv6 host names; - New socket.tcp6 and socket.udp6 functions; - New socket.dns.getaddrinfo and socket.dns.getnameinfo functions; * Added: getoption method; * Fixed: url.unescape was returning additional values; * Fixed: mime.qp, mime.unqp, mime.b64, and mime.unb64 could mistaking their own stack slots for functions arguments; * Fixed: Receiving zero-length datagram is now possible; * Improved: Hidden all internal library symbols; * Improved: Better error messages; * Improved: Better documentation of socket options. * Fixed: manual sample of HTTP authentication now uses correct "authorization" header (Alexandre Ittner); * Fixed: failure on bind() was destroying the socket (Sam Roberts); * Fixed: receive() returns immediatelly if prefix can satisfy bytes requested (M Joonas Pihlaja); * Fixed: multicast didn't work on Windows, or anywhere else for that matter (Herbert Leuwer, Adrian Sietsma); * Fixed: select() now reports an error when called with more sockets than FD_SETSIZE (Lorenzo Leonini); * Fixed: manual links to home.html changed to index.html (Robert Hahn); * Fixed: mime.unb64() would return an empty string on results that started with a null character (Robert Raschke); * Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); * Fixed: calling sleep() with negative numbers could block forever, wasting CPU. Now it returns immediately (MPB); * Improved: FTP commands are now sent in upper case to help buggy servers (Anders Eurenius); * Improved: known headers now sent in canonic capitalization to help buggy servers (Joseph Stewart); * Improved: Clarified tcp:receive() in the manual (MPB); * Improved: Decent makefiles (LHF). * Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei).diff -r1.3 -r1.4 pkgsrc/net/lua-socket/Makefile
(ryoon)
@@ -1,24 +1,25 @@ | @@ -1,24 +1,25 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2013/08/15 06:32:06 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2013/09/01 04:45:58 ryoon Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= luasocket-2.0.2 | 4 | DISTNAME= luasocket-3.0-rc1 | |
5 | PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua//} | 5 | PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua//:S/-rc/rc/} | |
6 | PKGREVISION= 1 | |||
7 | CATEGORIES= net | 6 | CATEGORIES= net | |
8 | MASTER_SITES= http://luaforge.net/frs/download.php/2664/ | 7 | MASTER_SITES= -https://github.com/diegonehab/luasocket/archive/v3.0-rc1.tar.gz | |
9 | 8 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://w3.impa.br/~diego/software/luasocket/ | 10 | HOMEPAGE= http://w3.impa.br/~diego/software/luasocket/ | |
12 | COMMENT= Network support for the Lua language | 11 | COMMENT= Network support for the Lua language | |
13 | LICENSE= mit | 12 | LICENSE= mit | |
14 | 13 | |||
14 | FETCH_USING= curl | |||
15 | ||||
15 | MAKE_FILE= makefile | 16 | MAKE_FILE= makefile | |
16 | USE_TOOLS+= gmake | |||
17 | 17 | |||
18 | LDFLAGS.SunOS= -lrt -lresolv | 18 | LDFLAGS.SunOS= -lrt -lresolv | |
19 | 19 | |||
20 | INSTALL_MAKE_FLAGS+= INSTALL_TOP_SHARE=${DESTDIR}${PREFIX}/${LUA_LDIR} | 20 | MAKE_FLAGS+= LUAV=5.2 | |
21 | INSTALL_MAKE_FLAGS+= INSTALL_TOP_LIB=${DESTDIR}${PREFIX}/${LUA_CDIR} | 21 | MAKE_FLAGS+= LUAINC_linux_base=${PREFIX}/include | |
22 | MAKE_FLAGS+= LUAPREFIX_linux=${PREFIX} | |||
22 | 23 | |||
23 | .include "../../lang/lua/module.mk" | 24 | .include "../../lang/lua/module.mk" | |
24 | .include "../../mk/bsd.pkg.mk" | 25 | .include "../../mk/bsd.pkg.mk" |
@@ -1,11 +1,12 @@ | @@ -1,11 +1,12 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2010/09/21 10:08:48 fhajny Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2013/09/01 04:45:58 ryoon Exp $ | |
2 | lib/lua/5.1/mime/core.so | 2 | lib/lua/5.2/mime/core.so | |
3 | lib/lua/5.1/socket/core.so | 3 | lib/lua/5.2/socket/core.so | |
4 | share/lua/5.1/ltn12.lua | 4 | share/lua/5.2/ltn12.lua | |
5 | share/lua/5.1/mime.lua | 5 | share/lua/5.2/mime.lua | |
6 | share/lua/5.1/socket.lua | 6 | share/lua/5.2/socket.lua | |
7 | share/lua/5.1/socket/ftp.lua | 7 | share/lua/5.2/socket/ftp.lua | |
8 | share/lua/5.1/socket/http.lua | 8 | share/lua/5.2/socket/headers.lua | |
9 | share/lua/5.1/socket/smtp.lua | 9 | share/lua/5.2/socket/http.lua | |
10 | share/lua/5.1/socket/tp.lua | 10 | share/lua/5.2/socket/smtp.lua | |
11 | share/lua/5.1/socket/url.lua | 11 | share/lua/5.2/socket/tp.lua | |
12 | share/lua/5.2/socket/url.lua |
@@ -1,6 +1,5 @@ | @@ -1,6 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.1.1.1 2010/09/21 10:08:48 fhajny Exp $ | 1 | $NetBSD: distinfo,v 1.2 2013/09/01 04:45:58 ryoon Exp $ | |
2 | 2 | |||
3 | SHA1 (luasocket-2.0.2.tar.gz) = 5ce521fc5c6efb7c1eba7f36dfeafa9e4d745464 | 3 | SHA1 (luasocket-3.0-rc1.tar.gz) = aff9122b26c01487c06a32133df78c1506af350f | |
4 | RMD160 (luasocket-2.0.2.tar.gz) = 24d7e4fb1c9cf0c3d94f8b36e82d494ae922e268 | 4 | RMD160 (luasocket-3.0-rc1.tar.gz) = 27357eee7e52f091609f45a0b0fb7e04e9ea2bd8 | |
5 | Size (luasocket-2.0.2.tar.gz) = 115443 bytes | 5 | Size (luasocket-3.0-rc1.tar.gz) = 328598 bytes | |
6 | SHA1 (patch-aa) = f4e4af32fea1b12f39aba9fe92989cfe57f8d039 |