From nobody Fri May 13 19:34:34 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 929EB1AD3C4D; Fri, 13 May 2022 19:34:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L0JkL3JhTz4lWf; Fri, 13 May 2022 19:34:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652470474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zm4pRGy2vrmSs34NG9txw+/U101xE+CY4LEFpyEqZ5k=; b=U1rAgq0qTOXR21BBk5zujr3jX0s6fkvl6m6FG3I/cp+nZ4Ab0wLN6pTlOY88ZKQjwazJmV YKNh7+YFBcHSh4mmgPpOiuzAd6e0Vu0HTOPtqjUz0Z6knGMSmoTeatCKBigqWzTs+oYREb w/tDq9x6ny1iS/Qo7/8cZBGyLtN0r+wHlKkbUbXXcEtSKQ6N9ZKRuvyE3zG2NX4gCRcdHb m5NTdg6978FKsyJSnqDbWU7vbw8V1bS5DuhVtOxm9Q7QLgz11EAKfMGZcnjyqV6tCmIp5+ r6M5BPyQ/qP/iE5Yx5aVbM33z8Ls78i150Z/LZJG6UMVWQfSMOV2QFpMKtH8Rg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4576AB37; Fri, 13 May 2022 19:34:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24DJYYkx005635; Fri, 13 May 2022 19:34:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24DJYYIu005634; Fri, 13 May 2022 19:34:34 GMT (envelope-from git) Date: Fri, 13 May 2022 19:34:34 GMT Message-Id: <202205131934.24DJYYIu005634@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: e4d3bcb751a6 - main - net/luasocket: Update to 3.0.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e4d3bcb751a6a43c3e1f676e0bdb25ebcbb32dc4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652470474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zm4pRGy2vrmSs34NG9txw+/U101xE+CY4LEFpyEqZ5k=; b=FQ+RmslC0s4oPO3jJyACbgdverN+kJieaBGW38UKiwgIHD0iyce5nFQlpHW8OimiVlNO5Y KEsQ3yQgq6/gw7JqHOBtI/SHnU/qmdZfyux5CeWS7E6hdim+8rLmIRHBfjvGaDB0ZanpZu Zn2Cs1igqOvUwK1aqZrQPp1J1N75cujPQzO43DRbxoW4K9zDe9jKrEiN2i0enzuBsDNNoZ Rsk0NTR5NIJ/e6kFDDBGE6olpqhKw1ff/ISEdBH4fZPq8xpXugx0ylYXcU4NeXRvDQjBq+ KU1qlDLgLju7lLkufJlkFZwd0ixXxgfJChxbncEHjS4jM9kE1xKIjh+6yFzZKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652470474; a=rsa-sha256; cv=none; b=eEQJDCab4cYof7nAIwpdxixHMCeElAthhTFgulr2ixbfUfWfDyupea2W73m694hYOiXTU4 NEhriTPPhYx4bu5DfIDchtyKRPAPtd5MdTgHVesPCQvfPL9ZY/URj19Jq4YebqS4Uh+45g PuTssJgffb7P79TgkZmTCH7N/vJMHASxpWtWo3/YaYhsbzkwyWUdhf2FDxJzgqN0oT+lPK b7sxLtp588rG1F3Lua0wqe2yqGnazFL9ZO7rSxjDP2RuMpLdpsXzE3SecoP1Nr0nV7Sw8q xryVgHTNrMMurgpBiivXYN2EHHtXXdF8xHRZfgK0/koX6/grRR/PNE3eXvLTZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e4d3bcb751a6a43c3e1f676e0bdb25ebcbb32dc4 commit e4d3bcb751a6a43c3e1f676e0bdb25ebcbb32dc4 Author: Po-Chuan Hsieh AuthorDate: 2022-05-13 19:29:45 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-05-13 19:29:45 +0000 net/luasocket: Update to 3.0.0 - Update MASTER_SITES - Clean up Makefile - Update pkg-descr - Update WWW - Take maintainership Changes: https://github.com/lunarmodules/luasocket/releases --- net/luasocket/Makefile | 41 +++--- net/luasocket/distinfo | 6 +- net/luasocket/files/patch-Makefile | 30 ---- net/luasocket/files/patch-fnames | 283 ------------------------------------- net/luasocket/pkg-descr | 11 +- 5 files changed, 27 insertions(+), 344 deletions(-) diff --git a/net/luasocket/Makefile b/net/luasocket/Makefile index 06397924b5f9..29b8da4567e4 100644 --- a/net/luasocket/Makefile +++ b/net/luasocket/Makefile @@ -1,47 +1,44 @@ # Created by: Jan Hornyak PORTNAME= luasocket +PORTVERSION= 3.0.0 DISTVERSIONPREFIX= v -DISTVERSION= 3.0-rc1 -PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= net PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Socket support for the Lua language LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USE_GITHUB= yes -GH_ACCOUNT= diegonehab - -MAKE_ARGS= LUAV=${LUA_VER} USES= gmake lua:module pkgconfig -INSTALL_TARGET= install-unix -CFLAGS+= `pkgconf --cflags lua-${LUA_VER}` \ - -DLUA_COMPAT_APIINTCASTS -LDFLAGS+= -shared `pkgconf --libs lua-${LUA_VER}` +CFLAGS+= -DLUA_COMPAT_APIINTCASTS `pkgconf --cflags lua-${LUA_VER}` +INSTALL_TARGET= install-unix +LDFLAGS+= -shared `pkgconf --libs lua-${LUA_VER}` +MAKE_ARGS= LUAV=${LUA_VER} +MAKEFILE= makefile -OPTIONS_DEFINE= DOCS +USE_GITHUB= yes +GH_ACCOUNT= lunarmodules DOCSDIR= ${LUA_DOCSDIR} -post-extract: - @${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile - @${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile - @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/src/Makefile - @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g' ${WRKSRC}/src/Makefile - @${REINPLACE_CMD} -e 's|LDFLAGS=|LDFLAGS\+=|g' ${WRKSRC}/src/Makefile - @${REINPLACE_CMD} -e 's/prefix/PREFIX/g' ${WRKSRC}/src/Makefile +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/src/makefile + @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g' ${WRKSRC}/src/makefile + @${REINPLACE_CMD} -e 's|LDFLAGS=|LDFLAGS\+=|g' ${WRKSRC}/src/makefile + @${REINPLACE_CMD} -e 's/prefix/PREFIX/g' ${WRKSRC}/src/makefile post-install: - @${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR:S|^${LOCALBASE}|${PREFIX}|}/*/*.so + ${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR}/*/*.so post-install-DOCS-on: - @${MKDIR} ${STAGEDIR}/${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}/${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} .include diff --git a/net/luasocket/distinfo b/net/luasocket/distinfo index f328bd7e0169..8a8af5c3d637 100644 --- a/net/luasocket/distinfo +++ b/net/luasocket/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1487003644 -SHA256 (diegonehab-luasocket-v3.0-rc1_GH0.tar.gz) = 8b67d9b5b545e1b694753dab7bd6cdbc24c290f2b21ba1e14c77b32817ea1249 -SIZE (diegonehab-luasocket-v3.0-rc1_GH0.tar.gz) = 328598 +TIMESTAMP = 1652446254 +SHA256 (lunarmodules-luasocket-v3.0.0_GH0.tar.gz) = 04d98e40edcee7c7c5f83f0e8ba5503d14b56280e20daceee9e34ed7cf8f1b15 +SIZE (lunarmodules-luasocket-v3.0.0_GH0.tar.gz) = 336231 diff --git a/net/luasocket/files/patch-Makefile b/net/luasocket/files/patch-Makefile deleted file mode 100644 index 646a462ef1ef..000000000000 --- a/net/luasocket/files/patch-Makefile +++ /dev/null @@ -1,30 +0,0 @@ ---- Makefile.orig 2013-06-14 11:27:32 UTC -+++ Makefile -@@ -23,21 +23,15 @@ print: - test: - lua test/hello.lua - --install-both: -- $(MAKE) clean -- @cd src; $(MAKE) $(PLAT) LUAV=5.1 -- @cd src; $(MAKE) install LUAV=5.1 -+install: - $(MAKE) clean -- @cd src; $(MAKE) $(PLAT) LUAV=5.2 -- @cd src; $(MAKE) install LUAV=5.2 -+ @cd src; $(MAKE) $(PLAT) LUAV=$(LUA_VER) -+ @cd src; $(MAKE) install LUAV=$(LUA_VER) - --install-both-unix: -- $(MAKE) clean -- @cd src; $(MAKE) $(PLAT) LUAV=5.1 -- @cd src; $(MAKE) install-unix LUAV=5.1 -+install-unix: - $(MAKE) clean -- @cd src; $(MAKE) $(PLAT) LUAV=5.2 -- @cd src; $(MAKE) install-unix LUAV=5.2 -+ @cd src; $(MAKE) $(PLAT) LUAV=$(LUA_VER) -+ @cd src; $(MAKE) install-unix LUAV=$(LUA_VER) - - .PHONY: test - diff --git a/net/luasocket/files/patch-fnames b/net/luasocket/files/patch-fnames deleted file mode 100644 index 82d7bab9881c..000000000000 --- a/net/luasocket/files/patch-fnames +++ /dev/null @@ -1,283 +0,0 @@ ---- src/buffer.c.orig 2014-02-11 11:38:27.000000000 -0800 -+++ src/buffer.c 2014-02-11 11:42:32.000000000 -0800 -@@ -31,7 +31,7 @@ - /*-------------------------------------------------------------------------*\ - * Initializes module - \*-------------------------------------------------------------------------*/ --int buffer_open(lua_State *L) { -+int ls_buffer_open(lua_State *L) { - (void) L; - return 0; - } -@@ -39,7 +39,7 @@ - /*-------------------------------------------------------------------------*\ - * Initializes C structure - \*-------------------------------------------------------------------------*/ --void buffer_init(p_buffer buf, p_io io, p_timeout tm) { -+void ls_buffer_init(p_buffer buf, p_io io, p_timeout tm) { - buf->first = buf->last = 0; - buf->io = io; - buf->tm = tm; -@@ -50,7 +50,7 @@ - /*-------------------------------------------------------------------------*\ - * object:getstats() interface - \*-------------------------------------------------------------------------*/ --int buffer_meth_getstats(lua_State *L, p_buffer buf) { -+int ls_buffer_meth_getstats(lua_State *L, p_buffer buf) { - lua_pushnumber(L, (lua_Number) buf->received); - lua_pushnumber(L, (lua_Number) buf->sent); - lua_pushnumber(L, timeout_gettime() - buf->birthday); -@@ -60,7 +60,7 @@ - /*-------------------------------------------------------------------------*\ - * object:setstats() interface - \*-------------------------------------------------------------------------*/ --int buffer_meth_setstats(lua_State *L, p_buffer buf) { -+int ls_buffer_meth_setstats(lua_State *L, p_buffer buf) { - buf->received = (long) luaL_optnumber(L, 2, (lua_Number) buf->received); - buf->sent = (long) luaL_optnumber(L, 3, (lua_Number) buf->sent); - if (lua_isnumber(L, 4)) buf->birthday = timeout_gettime() - lua_tonumber(L, 4); -@@ -71,7 +71,7 @@ - /*-------------------------------------------------------------------------*\ - * object:send() interface - \*-------------------------------------------------------------------------*/ --int buffer_meth_send(lua_State *L, p_buffer buf) { -+int ls_buffer_meth_send(lua_State *L, p_buffer buf) { - int top = lua_gettop(L); - int err = IO_DONE; - size_t size = 0, sent = 0; -@@ -106,7 +106,7 @@ - /*-------------------------------------------------------------------------*\ - * object:receive() interface - \*-------------------------------------------------------------------------*/ --int buffer_meth_receive(lua_State *L, p_buffer buf) { -+int ls_buffer_meth_receive(lua_State *L, p_buffer buf) { - int err = IO_DONE, top = lua_gettop(L); - luaL_Buffer b; - size_t size; -@@ -157,7 +157,7 @@ - /*-------------------------------------------------------------------------*\ - * Determines if there is any data in the read buffer - \*-------------------------------------------------------------------------*/ --int buffer_isempty(p_buffer buf) { -+int ls_buffer_isempty(p_buffer buf) { - return buf->first >= buf->last; - } - -@@ -252,7 +252,7 @@ - static void buffer_skip(p_buffer buf, size_t count) { - buf->received += count; - buf->first += count; -- if (buffer_isempty(buf)) -+ if (ls_buffer_isempty(buf)) - buf->first = buf->last = 0; - } - -@@ -264,7 +264,7 @@ - int err = IO_DONE; - p_io io = buf->io; - p_timeout tm = buf->tm; -- if (buffer_isempty(buf)) { -+ if (ls_buffer_isempty(buf)) { - size_t got; - err = io->recv(io->ctx, buf->data, BUF_SIZE, &got, tm); - buf->first = 0; ---- src/buffer.h.orig 2014-02-11 11:43:12.000000000 -0800 -+++ src/buffer.h 2014-02-11 11:43:46.000000000 -0800 -@@ -34,12 +34,12 @@ - } t_buffer; - typedef t_buffer *p_buffer; - --int buffer_open(lua_State *L); --void buffer_init(p_buffer buf, p_io io, p_timeout tm); --int buffer_meth_send(lua_State *L, p_buffer buf); --int buffer_meth_receive(lua_State *L, p_buffer buf); --int buffer_meth_getstats(lua_State *L, p_buffer buf); --int buffer_meth_setstats(lua_State *L, p_buffer buf); --int buffer_isempty(p_buffer buf); -+int ls_buffer_open(lua_State *L); -+void ls_buffer_init(p_buffer buf, p_io io, p_timeout tm); -+int ls_buffer_meth_send(lua_State *L, p_buffer buf); -+int ls_buffer_meth_receive(lua_State *L, p_buffer buf); -+int ls_buffer_meth_getstats(lua_State *L, p_buffer buf); -+int ls_buffer_meth_setstats(lua_State *L, p_buffer buf); -+int ls_buffer_isempty(p_buffer buf); - - #endif /* BUF_H */ ---- src/luasocket.c.orig 2014-02-11 11:44:11.000000000 -0800 -+++ src/luasocket.c 2014-02-11 11:44:37.000000000 -0800 -@@ -46,7 +46,7 @@ - {"auxiliar", auxiliar_open}, - {"except", except_open}, - {"timeout", timeout_open}, -- {"buffer", buffer_open}, -+ {"buffer", ls_buffer_open}, - {"inet", inet_open}, - {"tcp", tcp_open}, - {"udp", udp_open}, ---- src/tcp.c.orig 2014-02-11 11:45:12.000000000 -0800 -+++ src/tcp.c 2014-02-11 11:46:27.000000000 -0800 -@@ -124,22 +124,22 @@ - \*-------------------------------------------------------------------------*/ - static int meth_send(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); -- return buffer_meth_send(L, &tcp->buf); -+ return ls_buffer_meth_send(L, &tcp->buf); - } - - static int meth_receive(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); -- return buffer_meth_receive(L, &tcp->buf); -+ return ls_buffer_meth_receive(L, &tcp->buf); - } - - static int meth_getstats(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); -- return buffer_meth_getstats(L, &tcp->buf); -+ return ls_buffer_meth_getstats(L, &tcp->buf); - } - - static int meth_setstats(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); -- return buffer_meth_setstats(L, &tcp->buf); -+ return ls_buffer_meth_setstats(L, &tcp->buf); - } - - /*-------------------------------------------------------------------------*\ -@@ -178,7 +178,7 @@ - static int meth_dirty(lua_State *L) - { - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); -- lua_pushboolean(L, !buffer_isempty(&tcp->buf)); -+ lua_pushboolean(L, !ls_buffer_isempty(&tcp->buf)); - return 1; - } - -@@ -203,7 +203,7 @@ - io_init(&clnt->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &clnt->sock); - timeout_init(&clnt->tm, -1, -1); -- buffer_init(&clnt->buf, &clnt->io, &clnt->tm); -+ ls_buffer_init(&clnt->buf, &clnt->io, &clnt->tm); - clnt->family = server->family; - return 1; - } else { -@@ -375,7 +375,7 @@ - io_init(&tcp->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &tcp->sock); - timeout_init(&tcp->tm, -1, -1); -- buffer_init(&tcp->buf, &tcp->io, &tcp->tm); -+ ls_buffer_init(&tcp->buf, &tcp->io, &tcp->tm); - tcp->family = family; - return 1; - } else { -@@ -454,7 +454,7 @@ - io_init(&tcp->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &tcp->sock); - timeout_init(&tcp->tm, -1, -1); -- buffer_init(&tcp->buf, &tcp->io, &tcp->tm); -+ ls_buffer_init(&tcp->buf, &tcp->io, &tcp->tm); - tcp->sock = SOCKET_INVALID; - tcp->family = PF_UNSPEC; - /* allow user to pick local address and port */ ---- src/unix.c.orig 2014-02-11 11:46:51.000000000 -0800 -+++ src/unix.c 2014-02-11 11:47:38.000000000 -0800 -@@ -109,22 +109,22 @@ - \*-------------------------------------------------------------------------*/ - static int meth_send(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unix{client}", 1); -- return buffer_meth_send(L, &un->buf); -+ return ls_buffer_meth_send(L, &un->buf); - } - - static int meth_receive(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unix{client}", 1); -- return buffer_meth_receive(L, &un->buf); -+ return ls_buffer_meth_receive(L, &un->buf); - } - - static int meth_getstats(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unix{client}", 1); -- return buffer_meth_getstats(L, &un->buf); -+ return ls_buffer_meth_getstats(L, &un->buf); - } - - static int meth_setstats(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unix{client}", 1); -- return buffer_meth_setstats(L, &un->buf); -+ return ls_buffer_meth_setstats(L, &un->buf); - } - - /*-------------------------------------------------------------------------*\ -@@ -153,7 +153,7 @@ - - static int meth_dirty(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unix{any}", 1); -- lua_pushboolean(L, !buffer_isempty(&un->buf)); -+ lua_pushboolean(L, !ls_buffer_isempty(&un->buf)); - return 1; - } - -@@ -176,7 +176,7 @@ - io_init(&clnt->io, (p_send)socket_send, (p_recv)socket_recv, - (p_error) socket_ioerror, &clnt->sock); - timeout_init(&clnt->tm, -1, -1); -- buffer_init(&clnt->buf, &clnt->io, &clnt->tm); -+ ls_buffer_init(&clnt->buf, &clnt->io, &clnt->tm); - return 1; - } else { - lua_pushnil(L); -@@ -336,7 +336,7 @@ - io_init(&un->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &un->sock); - timeout_init(&un->tm, -1, -1); -- buffer_init(&un->buf, &un->io, &un->tm); -+ ls_buffer_init(&un->buf, &un->io, &un->tm); - return 1; - } else { - lua_pushnil(L); ---- src/serial.c.orig 2014-02-11 11:53:16.000000000 -0800 -+++ src/serial.c 2014-02-11 11:54:45.000000000 -0800 -@@ -90,22 +90,22 @@ - \*-------------------------------------------------------------------------*/ - static int meth_send(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); -- return buffer_meth_send(L, &un->buf); -+ return ls_buffer_meth_send(L, &un->buf); - } - - static int meth_receive(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); -- return buffer_meth_receive(L, &un->buf); -+ return ls_buffer_meth_receive(L, &un->buf); - } - - static int meth_getstats(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); -- return buffer_meth_getstats(L, &un->buf); -+ return ls_buffer_meth_getstats(L, &un->buf); - } - - static int meth_setstats(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); -- return buffer_meth_setstats(L, &un->buf); -+ return ls_buffer_meth_setstats(L, &un->buf); - } - - /*-------------------------------------------------------------------------*\ -@@ -126,7 +126,7 @@ - - static int meth_dirty(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); -- lua_pushboolean(L, !buffer_isempty(&un->buf)); -+ lua_pushboolean(L, !ls_buffer_isempty(&un->buf)); - return 1; - } - -@@ -183,6 +183,6 @@ - io_init(&un->io, (p_send) socket_write, (p_recv) socket_read, - (p_error) socket_ioerror, &un->sock); - timeout_init(&un->tm, -1, -1); -- buffer_init(&un->buf, &un->io, &un->tm); -+ ls_buffer_init(&un->buf, &un->io, &un->tm); - return 1; - } diff --git a/net/luasocket/pkg-descr b/net/luasocket/pkg-descr index d3b495de0592..ce8d0f00dd09 100644 --- a/net/luasocket/pkg-descr +++ b/net/luasocket/pkg-descr @@ -1,7 +1,6 @@ -LuaSocket is a Lua extension library that provides support for the TCP and UDP -transport layers. +LuaSocket is a Lua extension library composed of two parts: +- a set of C modules that provide support for the TCP and UDP transport layers +- a set of Lua modules that provide functions commonly needed by applications + that deal with the Internet. -Extra Lua modules implementing SMTP, HTTP and FTP protocols are installed -to /usr/local/lib/lua/luasocket. - -WWW: https://github.com/diegonehab/luasocket +WWW: https://github.com/lunarmodules/luasocket