Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www www: Add lua-http



details:   https://anonhg.NetBSD.org/pkgsrc/rev/070e95a95c7b
branches:  trunk
changeset: 435506:070e95a95c7b
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 14:58:49 2020 +0000

description:
www: Add lua-http

A HTTP library for Lua.

## Features

- Optionally asynchronous (including DNS lookups and TLS)
- Supports HTTP(S) version 1.0, 1.1 and 2
- Functionality for both client and server
- Cookie Management
- Websockets

diffstat:

 www/Makefile          |   3 ++-
 www/lua-http/DESCR    |   9 +++++++++
 www/lua-http/Makefile |  50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 www/lua-http/PLIST    |  24 ++++++++++++++++++++++++
 www/lua-http/distinfo |   6 ++++++
 5 files changed, 91 insertions(+), 1 deletions(-)

diffs (122 lines):

diff -r 1400ac83e46a -r 070e95a95c7b www/Makefile
--- a/www/Makefile      Wed Jul 08 14:58:01 2020 +0000
+++ b/www/Makefile      Wed Jul 08 14:58:49 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1466 2020/07/08 14:50:05 nia Exp $
+# $NetBSD: Makefile,v 1.1467 2020/07/08 14:58:49 nia Exp $
 #
 
 COMMENT=       Packages related to the World Wide Web
@@ -194,6 +194,7 @@
 SUBDIR+=       loggerhead
 SUBDIR+=       logswan
 SUBDIR+=       lua-curl
+SUBDIR+=       lua-http
 SUBDIR+=       lua-psl
 SUBDIR+=       lynx
 SUBDIR+=       mMosaic
diff -r 1400ac83e46a -r 070e95a95c7b www/lua-http/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-http/DESCR        Wed Jul 08 14:58:49 2020 +0000
@@ -0,0 +1,9 @@
+A HTTP library for Lua.
+
+## Features
+
+- Optionally asynchronous (including DNS lookups and TLS)
+- Supports HTTP(S) version 1.0, 1.1 and 2
+- Functionality for both client and server
+- Cookie Management
+- Websockets
diff -r 1400ac83e46a -r 070e95a95c7b www/lua-http/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-http/Makefile     Wed Jul 08 14:58:49 2020 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 14:58:49 nia Exp $
+
+DISTNAME=      lua-http-0.3
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/lua-//1}
+CATEGORIES=    www lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=daurnimator/}
+GITHUB_PROJECT=        lua-http
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://daurnimator.github.io/lua-http/
+COMMENT=       HTTP/1.0/1.1/2.0 client and server library for Lua
+LICENSE=       mit
+
+# XXX: update this when cqueues and ossl support Lua 5.4.
+LUA_VERSIONS_ACCEPTED= 53 52 51
+
+.include "../../lang/lua/luaversion.mk"
+
+.if ${_LUA_DOT_VERSION} < 5.2
+DEPENDS+=      ${LUA_PKGPREFIX}-BitOp-[0-9]*:../../devel/lua-BitOp
+.endif
+
+.if ${_LUA_DOT_VERSION} < 5.3
+DEPENDS+=      ${LUA_PKGPREFIX}-compat53-[0-9]*:../../devel/lua-compat53
+.endif
+
+DEPENDS+=      ${LUA_PKGPREFIX}-basexx-[0-9]*:../../devel/lua-basexx
+DEPENDS+=      ${LUA_PKGPREFIX}-binaryheap-[0-9]*:../../devel/lua-binaryheap
+DEPENDS+=      ${LUA_PKGPREFIX}-cqueues-[0-9]*:../../devel/lua-cqueues
+DEPENDS+=      ${LUA_PKGPREFIX}-fifo-[0-9]*:../../devel/lua-fifo
+DEPENDS+=      ${LUA_PKGPREFIX}-lpeg-[0-9]*:../../devel/lua-lpeg
+DEPENDS+=      ${LUA_PKGPREFIX}-lpeg-patterns-[0-9]*:../../devel/lua-lpeg-patterns
+DEPENDS+=      ${LUA_PKGPREFIX}-ossl-[0-9]*:../../security/lua-ossl
+
+# These are optional, but are needed for full library functionality
+DEPENDS+=      ${LUA_PKGPREFIX}-psl-[0-9]*:../../www/lua-psl
+DEPENDS+=      ${LUA_PKGPREFIX}-zlib-[0-9]*:../../archivers/lua-zlib
+
+USE_LANGUAGES= # none
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}/http
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/http/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/http
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1400ac83e46a -r 070e95a95c7b www/lua-http/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-http/PLIST        Wed Jul 08 14:58:49 2020 +0000
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 14:58:49 nia Exp $
+${LUA_LDIR}/http/bit.lua
+${LUA_LDIR}/http/client.lua
+${LUA_LDIR}/http/connection_common.lua
+${LUA_LDIR}/http/cookie.lua
+${LUA_LDIR}/http/h1_connection.lua
+${LUA_LDIR}/http/h1_reason_phrases.lua
+${LUA_LDIR}/http/h1_stream.lua
+${LUA_LDIR}/http/h2_connection.lua
+${LUA_LDIR}/http/h2_error.lua
+${LUA_LDIR}/http/h2_stream.lua
+${LUA_LDIR}/http/headers.lua
+${LUA_LDIR}/http/hpack.lua
+${LUA_LDIR}/http/hsts.lua
+${LUA_LDIR}/http/proxies.lua
+${LUA_LDIR}/http/request.lua
+${LUA_LDIR}/http/server.lua
+${LUA_LDIR}/http/socks.lua
+${LUA_LDIR}/http/stream_common.lua
+${LUA_LDIR}/http/tls.lua
+${LUA_LDIR}/http/util.lua
+${LUA_LDIR}/http/version.lua
+${LUA_LDIR}/http/websocket.lua
+${LUA_LDIR}/http/zlib.lua
diff -r 1400ac83e46a -r 070e95a95c7b www/lua-http/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-http/distinfo     Wed Jul 08 14:58:49 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 14:58:49 nia Exp $
+
+SHA1 (lua-http-0.3.tar.gz) = d658cb7fdeed670455ed69583f9cef529851ffa7
+RMD160 (lua-http-0.3.tar.gz) = 10916716de6adbd388e7fdab8e94a21941075461
+SHA512 (lua-http-0.3.tar.gz) = 5728848849e8d3e99328abdc6aff3034a708f0e5884e8718a9266900a561a37850e2bf911e9cbd0d4d538799e1fd8bb4fd66008f4787011f5802b259d51f8281
+Size (lua-http-0.3.tar.gz) = 141882 bytes



Home | Main Index | Thread Index | Old Index