# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-hashring # py-hashring/pkg-descr # py-hashring/Makefile # py-hashring/distinfo # py-hashring/files # py-hashring/files/patch-setup.py # echo c - py-hashring mkdir -p py-hashring > /dev/null 2>&1 echo x - py-hashring/pkg-descr sed 's/^X//' >py-hashring/pkg-descr << 'END-of-py-hashring/pkg-descr' XImplements consistent hashing that can be used when the number of Xserver nodes can increase or decrease (like in memcached).The Xhashing ring is built using the same algorithm as libketama. X XConsistent hashing is a scheme that provides a hash table functionality Xin a way that the adding or removing of one slot does not significantly Xchange the mapping of keys to slots. X XWWW: http://pypi.python.org/pypi/hash_ring END-of-py-hashring/pkg-descr echo x - py-hashring/Makefile sed 's/^X//' >py-hashring/Makefile << 'END-of-py-hashring/Makefile' X# New ports collection makefile for: py-hashring X# Date created: 2008-12-24 X# Whom: Yi-Jheng Lin X# X# $FreeBSD$ X# X XPORTNAME= hashring XPORTVERSION= 1.1 XCATEGORIES= devel python XMASTER_SITES= CHEESESHOP XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTNAME= hash_ring-${PORTVERSION} X XMAINTAINER= yzlin@cs.nctu.edu.tw XCOMMENT= An implementation of consistent hashing in Python X XRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}memcached>=0:${PORTSDIR}/databases/py-memcached X XUSE_PYTHON= yes XUSE_PYDISTUTILS= easy_install XPYDISTUTILS_PKGNAME= hash_ring X XPLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% X X.include END-of-py-hashring/Makefile echo x - py-hashring/distinfo sed 's/^X//' >py-hashring/distinfo << 'END-of-py-hashring/distinfo' XMD5 (hash_ring-1.1.tar.gz) = e059a1ddca398bb24c33621b4f44269b XSHA256 (hash_ring-1.1.tar.gz) = b444dea3927f5abe5a470f726d27d90d9b712e6981b9b3f3cfd4bb183a425fa5 XSIZE (hash_ring-1.1.tar.gz) = 4043 END-of-py-hashring/distinfo echo c - py-hashring/files mkdir -p py-hashring/files > /dev/null 2>&1 echo x - py-hashring/files/patch-setup.py sed 's/^X//' >py-hashring/files/patch-setup.py << 'END-of-py-hashring/files/patch-setup.py' X--- setup.py.orig 2008-12-24 05:04:05.000000000 +0800 X+++ setup.py 2008-12-24 05:04:21.000000000 +0800 X@@ -6,8 +6,6 @@ X # your option) any later version. X X import os X-import ez_setup X-ez_setup.use_setuptools() X X from setuptools import setup X END-of-py-hashring/files/patch-setup.py exit