From nobody Mon Jan 30 13:05:17 2023 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 4P57hF6KrRz3cYDV; Mon, 30 Jan 2023 13:05:17 +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 4P57hF5qhmz4N1T; Mon, 30 Jan 2023 13:05:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083917; 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=zSRdCFJUmuVrvPIZphUqGd8pyYvyi2xTmOxZQmuWKVs=; b=yAyW8CIntqWnEzzKZN2pKQYNBSjlQZJBw7bkuXoYeVdhCpKDkaQKUViQNyywwZSuf0UtpN jYj0zhdwU8oS3tLzgw5hoVqvZLt16ALWUjqHjqTUsRFaFnlpDGXSlFHLxUaU/1PSdRHT8X sJ/jud+V1MFBROlFg+bZCEpPe362fKqCiUAKPJtOskStmp6wdpZFYa1dDAWmGum2ksH3T0 aekic2WeO4wcgDIrwWix9h3uWadefZg69E7aFnZ83bTzylIq3gW1PFTJyS5thXOOcjMV8F DTb5mHqKZ3d5JKJh3a6yqd34j8nzmY1barYgxMc0dOnJfCSMq9Yma//AVsUi9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083917; 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=zSRdCFJUmuVrvPIZphUqGd8pyYvyi2xTmOxZQmuWKVs=; b=EYpdi7jUiRxKbf6OV65pJwWhXa97v4FgN609Fnd/O/X2TrDCsNteuPpg5hfT/P7zMWk+nS X4gVxuzvXRfPOG69UcydbQZ7ACkmI7iwf3tWQypBk8lX6YjnEItII82a+K/PF66fUs4rka D2BZ2P6MG6pw0kEfwQINUo4yYZi5zRX5/aGvgJj8LTTCFR7D4wIZ3MoIs+jpgdZJsma2xw a+9IMJhNXs8ip+rMf6WcBmBqydQjXrthPnb4bp5w47706T+70Uy9ApsnLd0DALfaw8ovtE p+eumj1i1DbfELERdnwNxe8pzQXO+RSLXt6ytJy2eHf1G2nSO8E7wapLZCIH+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675083917; a=rsa-sha256; cv=none; b=ujF1aPFcvWdv4fIsvZHkGyMn/Evm5M0Bkxds9gMwT288AueSOfJJ01Wo3IXs2Wnb0KO38e EF2z5Iwie0Wm96m9tHKW2hCOEib+APiL/9S/FcKcg6MA8FVSjEXwYRSXzefEJBdupTzoXc 6nu3/v6AG/bc8PPSTenAz8/70NYaO51eAFIiG6mo5hk7IGpOc8LJIX3ZZXe0e39lvZ+ILA jPOk6qhSiD6HxLSMOo8LciNWXz5FsakTaXWIxBRA++X0l5s+7Gus0tkUyG8xE5oUnUOmWO kVLgVGNEpUX5SgshestkDR9uMVJWAQQqexIdiIDsjnn3oVjuMOGqFnn6zTs+5A== 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 4P57hF4fz6z18JL; Mon, 30 Jan 2023 13:05:17 +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 30UD5H8A051958; Mon, 30 Jan 2023 13:05:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UD5Hkx051957; Mon, 30 Jan 2023 13:05:17 GMT (envelope-from git) Date: Mon, 30 Jan 2023 13:05:17 GMT Message-Id: <202301301305.30UD5Hkx051957@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: dbfd334cc978 - main - devel/rubygem-redlock: Add rubygem-redlock 1.3.2 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: dbfd334cc978374df051117e8d7f9c3f23cfa699 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=dbfd334cc978374df051117e8d7f9c3f23cfa699 commit dbfd334cc978374df051117e8d7f9c3f23cfa699 Author: Po-Chuan Hsieh AuthorDate: 2023-01-30 12:21:46 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-01-30 12:58:55 +0000 devel/rubygem-redlock: Add rubygem-redlock 1.3.2 Redlock provides a ruby distributed lock using redis. Distributed locks are a very useful primitive in many environments where different processes require to operate with shared resources in a mutually exclusive way. There are a number of libraries and blog posts describing how to implement a DLM (Distributed Lock Manager) with Redis, but every library uses a different approach, and many use a simple approach with lower guarantees compared to what can be achieved with slightly more complex designs. This is an implementation of a proposed distributed lock algorithm with Redis. It started as a fork from antirez implementation. --- devel/Makefile | 1 + devel/rubygem-redlock/Makefile | 19 +++++++++++++++++++ devel/rubygem-redlock/distinfo | 3 +++ devel/rubygem-redlock/pkg-descr | 13 +++++++++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c1d0cd7c03b9..993646f36657 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6991,6 +6991,7 @@ SUBDIR += rubygem-redis-activesupport-rails60 SUBDIR += rubygem-redis-activesupport-rails61 SUBDIR += rubygem-redis-store + SUBDIR += rubygem-redlock SUBDIR += rubygem-redmine_plugin_support SUBDIR += rubygem-reentrant_flock SUBDIR += rubygem-ref diff --git a/devel/rubygem-redlock/Makefile b/devel/rubygem-redlock/Makefile new file mode 100644 index 000000000000..bb0b412db981 --- /dev/null +++ b/devel/rubygem-redlock/Makefile @@ -0,0 +1,19 @@ +PORTNAME= redlock +PORTVERSION= 1.3.2 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Distributed lock using Redis written in Ruby +WWW= https://github.com/leandromoreira/redlock-rb + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rubygem-redis>=3.0.0<6.0:databases/rubygem-redis + +USES= gem + +NO_ARCH= yes + +.include diff --git a/devel/rubygem-redlock/distinfo b/devel/rubygem-redlock/distinfo new file mode 100644 index 000000000000..51daedd2220e --- /dev/null +++ b/devel/rubygem-redlock/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1674588100 +SHA256 (rubygem/redlock-1.3.2.gem) = 6c7cea3d62c6e31e8df6b1924fdf89e35e5576e52dce10c62412e783bfe37277 +SIZE (rubygem/redlock-1.3.2.gem) = 18432 diff --git a/devel/rubygem-redlock/pkg-descr b/devel/rubygem-redlock/pkg-descr new file mode 100644 index 000000000000..ef8420053e2d --- /dev/null +++ b/devel/rubygem-redlock/pkg-descr @@ -0,0 +1,13 @@ +Redlock provides a ruby distributed lock using redis. + +Distributed locks are a very useful primitive in many environments where +different processes require to operate with shared resources in a mutually +exclusive way. + +There are a number of libraries and blog posts describing how to implement a DLM +(Distributed Lock Manager) with Redis, but every library uses a different +approach, and many use a simple approach with lower guarantees compared to what +can be achieved with slightly more complex designs. + +This is an implementation of a proposed distributed lock algorithm with Redis. +It started as a fork from antirez implementation.