Skip to content

Commit

Permalink
devel/rubygem-redlock1: Add rubygem-redlock1 1.3.2 (copied from rubyg…
Browse files Browse the repository at this point in the history
…em-redlock)

- Add PORTSCOUT
  • Loading branch information
sunpoet committed Mar 21, 2023
1 parent 53d268f commit 458fecc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -7060,6 +7060,7 @@
SUBDIR += rubygem-redis-activesupport-rails61
SUBDIR += rubygem-redis-store
SUBDIR += rubygem-redlock
SUBDIR += rubygem-redlock1
SUBDIR += rubygem-redmine_plugin_support
SUBDIR += rubygem-reentrant_flock
SUBDIR += rubygem-ref
Expand Down
22 changes: 22 additions & 0 deletions devel/rubygem-redlock1/Makefile
@@ -0,0 +1,22 @@
PORTNAME= redlock
PORTVERSION= 1.3.2
CATEGORIES= devel rubygems
MASTER_SITES= RG
PKGNAMESUFFIX= 1

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

PORTSCOUT= limit:^1\.

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/rubygem-redlock1/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1674588100
SHA256 (rubygem/redlock-1.3.2.gem) = 6c7cea3d62c6e31e8df6b1924fdf89e35e5576e52dce10c62412e783bfe37277
SIZE (rubygem/redlock-1.3.2.gem) = 18432
13 changes: 13 additions & 0 deletions devel/rubygem-redlock1/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.

0 comments on commit 458fecc

Please sign in to comment.