Sun Sep 1 04:45:59 2013 UTC ()
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).


(ryoon)
diff -r1.3 -r1.4 pkgsrc/net/lua-socket/Makefile
diff -r1.1.1.1 -r1.2 pkgsrc/net/lua-socket/PLIST
diff -r1.1.1.1 -r1.2 pkgsrc/net/lua-socket/distinfo
diff -r1.1.1.1 -r0 pkgsrc/net/lua-socket/patches/patch-aa

cvs diff -r1.3 -r1.4 pkgsrc/net/lua-socket/Makefile (expand / switch to unified diff)

--- pkgsrc/net/lua-socket/Makefile 2013/08/15 06:32:06 1.3
+++ pkgsrc/net/lua-socket/Makefile 2013/09/01 04:45:58 1.4
@@ -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
4DISTNAME= luasocket-2.0.2 4DISTNAME= luasocket-3.0-rc1
5PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua//} 5PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua//:S/-rc/rc/}
6PKGREVISION= 1 
7CATEGORIES= net 6CATEGORIES= net
8MASTER_SITES= http://luaforge.net/frs/download.php/2664/ 7MASTER_SITES= -https://github.com/diegonehab/luasocket/archive/v3.0-rc1.tar.gz
9 8
10MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://w3.impa.br/~diego/software/luasocket/ 10HOMEPAGE= http://w3.impa.br/~diego/software/luasocket/
12COMMENT= Network support for the Lua language 11COMMENT= Network support for the Lua language
13LICENSE= mit 12LICENSE= mit
14 13
 14FETCH_USING= curl
 15
15MAKE_FILE= makefile 16MAKE_FILE= makefile
16USE_TOOLS+= gmake 
17 17
18LDFLAGS.SunOS= -lrt -lresolv 18LDFLAGS.SunOS= -lrt -lresolv
19 19
20INSTALL_MAKE_FLAGS+= INSTALL_TOP_SHARE=${DESTDIR}${PREFIX}/${LUA_LDIR} 20MAKE_FLAGS+= LUAV=5.2
21INSTALL_MAKE_FLAGS+= INSTALL_TOP_LIB=${DESTDIR}${PREFIX}/${LUA_CDIR} 21MAKE_FLAGS+= LUAINC_linux_base=${PREFIX}/include
 22MAKE_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"

cvs diff -r1.1.1.1 -r1.2 pkgsrc/net/lua-socket/PLIST (expand / switch to unified diff)

--- pkgsrc/net/lua-socket/PLIST 2010/09/21 10:08:48 1.1.1.1
+++ pkgsrc/net/lua-socket/PLIST 2013/09/01 04:45:58 1.2
@@ -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 $
2lib/lua/5.1/mime/core.so 2lib/lua/5.2/mime/core.so
3lib/lua/5.1/socket/core.so 3lib/lua/5.2/socket/core.so
4share/lua/5.1/ltn12.lua 4share/lua/5.2/ltn12.lua
5share/lua/5.1/mime.lua 5share/lua/5.2/mime.lua
6share/lua/5.1/socket.lua 6share/lua/5.2/socket.lua
7share/lua/5.1/socket/ftp.lua 7share/lua/5.2/socket/ftp.lua
8share/lua/5.1/socket/http.lua 8share/lua/5.2/socket/headers.lua
9share/lua/5.1/socket/smtp.lua 9share/lua/5.2/socket/http.lua
10share/lua/5.1/socket/tp.lua 10share/lua/5.2/socket/smtp.lua
11share/lua/5.1/socket/url.lua 11share/lua/5.2/socket/tp.lua
 12share/lua/5.2/socket/url.lua

cvs diff -r1.1.1.1 -r1.2 pkgsrc/net/lua-socket/distinfo (expand / switch to unified diff)

--- pkgsrc/net/lua-socket/distinfo 2010/09/21 10:08:48 1.1.1.1
+++ pkgsrc/net/lua-socket/distinfo 2013/09/01 04:45:58 1.2
@@ -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
3SHA1 (luasocket-2.0.2.tar.gz) = 5ce521fc5c6efb7c1eba7f36dfeafa9e4d745464 3SHA1 (luasocket-3.0-rc1.tar.gz) = aff9122b26c01487c06a32133df78c1506af350f
4RMD160 (luasocket-2.0.2.tar.gz) = 24d7e4fb1c9cf0c3d94f8b36e82d494ae922e268 4RMD160 (luasocket-3.0-rc1.tar.gz) = 27357eee7e52f091609f45a0b0fb7e04e9ea2bd8
5Size (luasocket-2.0.2.tar.gz) = 115443 bytes 5Size (luasocket-3.0-rc1.tar.gz) = 328598 bytes
6SHA1 (patch-aa) = f4e4af32fea1b12f39aba9fe92989cfe57f8d039 

File Deleted: pkgsrc/net/lua-socket/patches/Attic/patch-aa