diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2008-12-23 23:02:09 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2008-12-23 23:02:09 +0000 |
commit | de8067ab51a2d65c90877e89fec65fdb036326c4 (patch) | |
tree | 53f82241615ed17e6f56d86d898ab081037bbee6 /devel/py-hashring | |
parent | 06b0e3d52ba77648f5d2b873f4daf0d8eb9836ec (diff) |
Notes
Diffstat (limited to 'devel/py-hashring')
-rw-r--r-- | devel/py-hashring/Makefile | 26 | ||||
-rw-r--r-- | devel/py-hashring/distinfo | 3 | ||||
-rw-r--r-- | devel/py-hashring/files/patch-setup.py | 11 | ||||
-rw-r--r-- | devel/py-hashring/pkg-descr | 9 |
4 files changed, 49 insertions, 0 deletions
diff --git a/devel/py-hashring/Makefile b/devel/py-hashring/Makefile new file mode 100644 index 000000000000..6af6a2524a15 --- /dev/null +++ b/devel/py-hashring/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: py-hashring +# Date created: 2008-12-24 +# Whom: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= hashring +PORTVERSION= 1.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= hash_ring-${PORTVERSION} + +MAINTAINER= yzlin@cs.nctu.edu.tw +COMMENT= An implementation of consistent hashing in Python + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}memcached>=0:${PORTSDIR}/databases/py-memcached + +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install +PYDISTUTILS_PKGNAME= hash_ring + +PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% + +.include <bsd.port.mk> diff --git a/devel/py-hashring/distinfo b/devel/py-hashring/distinfo new file mode 100644 index 000000000000..6a0928671661 --- /dev/null +++ b/devel/py-hashring/distinfo @@ -0,0 +1,3 @@ +MD5 (hash_ring-1.1.tar.gz) = e059a1ddca398bb24c33621b4f44269b +SHA256 (hash_ring-1.1.tar.gz) = b444dea3927f5abe5a470f726d27d90d9b712e6981b9b3f3cfd4bb183a425fa5 +SIZE (hash_ring-1.1.tar.gz) = 4043 diff --git a/devel/py-hashring/files/patch-setup.py b/devel/py-hashring/files/patch-setup.py new file mode 100644 index 000000000000..d76fa5aaa441 --- /dev/null +++ b/devel/py-hashring/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2008-12-24 05:04:05.000000000 +0800 ++++ setup.py 2008-12-24 05:04:21.000000000 +0800 +@@ -6,8 +6,6 @@ + # your option) any later version. + + import os +-import ez_setup +-ez_setup.use_setuptools() + + from setuptools import setup + diff --git a/devel/py-hashring/pkg-descr b/devel/py-hashring/pkg-descr new file mode 100644 index 000000000000..e82e6a96469d --- /dev/null +++ b/devel/py-hashring/pkg-descr @@ -0,0 +1,9 @@ +Implements consistent hashing that can be used when the number of +server nodes can increase or decrease (like in memcached). The +hashing ring is built using the same algorithm as libketama. + +Consistent hashing is a scheme that provides a hash table functionality +in a way that the adding or removing of one slot does not significantly +change the mapping of keys to slots. + +WWW: http://pypi.python.org/pypi/hash_ring |