From fa838d82b7d3ec20c092d4b5bac6e9b6ab99a487 Mon Sep 17 00:00:00 2001 From: Jochen Neumeister Date: Thu, 16 Nov 2017 20:02:08 +0000 Subject: New Port: lua-resty-redis - for accessing redis from nginx lua This Lua library is a Redis client driver for the ngx_lua nginx module: http://wiki.nginx.org/HttpLuaModule This Lua library takes advantage of ngx_lua's cosocket API, which ensures 100% nonblocking behavior. WWW: https://github.com/openresty/lua-resty-redis PR: 191531 Submitted by: arcade@b1t.name (maintainer) Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13121 --- databases/lua-resty-redis/Makefile | 17 +++++++++++++++++ databases/lua-resty-redis/distinfo | 3 +++ databases/lua-resty-redis/files/patch-Makefile | 11 +++++++++++ databases/lua-resty-redis/pkg-descr | 8 ++++++++ databases/lua-resty-redis/pkg-plist | 1 + 5 files changed, 40 insertions(+) create mode 100644 databases/lua-resty-redis/Makefile create mode 100644 databases/lua-resty-redis/distinfo create mode 100644 databases/lua-resty-redis/files/patch-Makefile create mode 100644 databases/lua-resty-redis/pkg-descr create mode 100644 databases/lua-resty-redis/pkg-plist (limited to 'databases/lua-resty-redis') diff --git a/databases/lua-resty-redis/Makefile b/databases/lua-resty-redis/Makefile new file mode 100644 index 000000000000..9690ff9b9a8f --- /dev/null +++ b/databases/lua-resty-redis/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +PORTNAME= lua-resty-redis +DISTVERSIONPREFIX= v +DISTVERSION= 0.26 +CATEGORIES= databases + +MAINTAINER= arcade@b1t.name +COMMENT= Redis client driver for the ngx_lua nginx module + +LICENSE= BSD2CLAUSE + +USES= lua:51 +USE_GITHUB= yes +GH_ACCOUNT= openresty + +.include diff --git a/databases/lua-resty-redis/distinfo b/databases/lua-resty-redis/distinfo new file mode 100644 index 000000000000..47823fd00582 --- /dev/null +++ b/databases/lua-resty-redis/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1510862473 +SHA256 (openresty-lua-resty-redis-v0.26_GH0.tar.gz) = 8ec3a2b5055776657980fead5dee7651246f4bbb0903db4322dd232209f43b2e +SIZE (openresty-lua-resty-redis-v0.26_GH0.tar.gz) = 17531 diff --git a/databases/lua-resty-redis/files/patch-Makefile b/databases/lua-resty-redis/files/patch-Makefile new file mode 100644 index 000000000000..db153d4ee71b --- /dev/null +++ b/databases/lua-resty-redis/files/patch-Makefile @@ -0,0 +1,11 @@ +--- Makefile.orig 2016-11-04 20:57:34 UTC ++++ Makefile +@@ -2,7 +2,7 @@ OPENRESTY_PREFIX=/usr/local/openresty-de + + PREFIX ?= /usr/local + LUA_INCLUDE_DIR ?= $(PREFIX)/include +-LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION) ++LUA_LIB_DIR ?= $(PREFIX)/share/lua/$(LUA_VER) + INSTALL ?= install + + .PHONY: all test install diff --git a/databases/lua-resty-redis/pkg-descr b/databases/lua-resty-redis/pkg-descr new file mode 100644 index 000000000000..bc12d11e620e --- /dev/null +++ b/databases/lua-resty-redis/pkg-descr @@ -0,0 +1,8 @@ +This Lua library is a Redis client driver for the ngx_lua nginx module: + +http://wiki.nginx.org/HttpLuaModule + +This Lua library takes advantage of ngx_lua's cosocket API, which ensures 100% +nonblocking behavior. + +WWW: https://github.com/openresty/lua-resty-redis diff --git a/databases/lua-resty-redis/pkg-plist b/databases/lua-resty-redis/pkg-plist new file mode 100644 index 000000000000..f82dce7c5765 --- /dev/null +++ b/databases/lua-resty-redis/pkg-plist @@ -0,0 +1 @@ +%%LUA_MODSHAREDIR%%/resty/redis.lua -- cgit v1.2.3