pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/py-kenosis update to last snapshot, and apply a (h...
details: https://anonhg.NetBSD.org/pkgsrc/rev/eb1925461701
branches: trunk
changeset: 488586:eb1925461701
user: drochner <drochner%pkgsrc.org@localhost>
date: Fri Feb 04 17:24:16 2005 +0000
description:
update to last snapshot, and apply a (homegrown) patch which tries to
work around the limitations of the security-patched SimpleXMLRPCServer
diffstat:
net/py-kenosis/Makefile | 6 ++--
net/py-kenosis/PLIST | 11 +++-----
net/py-kenosis/distinfo | 7 +++--
net/py-kenosis/patches/patch-aa | 50 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 61 insertions(+), 13 deletions(-)
diffs (113 lines):
diff -r 3fb5aeeac718 -r eb1925461701 net/py-kenosis/Makefile
--- a/net/py-kenosis/Makefile Fri Feb 04 15:46:58 2005 +0000
+++ b/net/py-kenosis/Makefile Fri Feb 04 17:24:16 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:48 recht Exp $
+# $NetBSD: Makefile,v 1.3 2005/02/04 17:24:16 drochner Exp $
#
-DISTNAME= kenosis-0.92
-PKGNAME= ${PYPKGPREFIX}-kenosis-0.92
+DISTNAME= kenosis-0.941
+PKGNAME= ${PYPKGPREFIX}-kenosis-0.94.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=kenosis/}
diff -r 3fb5aeeac718 -r eb1925461701 net/py-kenosis/PLIST
--- a/net/py-kenosis/PLIST Fri Feb 04 15:46:58 2005 +0000
+++ b/net/py-kenosis/PLIST Fri Feb 04 17:24:16 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/13 12:55:32 drochner Exp $
+@comment $NetBSD: PLIST,v 1.2 2005/02/04 17:24:16 drochner Exp $
${PYSITELIB}/bt/BitTorrent/Choker.py
${PYSITELIB}/bt/BitTorrent/Choker.pyc
${PYSITELIB}/bt/BitTorrent/Choker.pyo
@@ -212,9 +212,6 @@
${PYSITELIB}/ds/ui.py
${PYSITELIB}/ds/ui.pyc
${PYSITELIB}/ds/ui.pyo
-${PYSITELIB}/ds/weakmethod.py
-${PYSITELIB}/ds/weakmethod.pyc
-${PYSITELIB}/ds/weakmethod.pyo
${PYSITELIB}/kenosis/__init__.py
${PYSITELIB}/kenosis/__init__.pyc
${PYSITELIB}/kenosis/__init__.pyo
@@ -236,9 +233,9 @@
${PYSITELIB}/kenosis/dnstest.py
${PYSITELIB}/kenosis/dnstest.pyc
${PYSITELIB}/kenosis/dnstest.pyo
-${PYSITELIB}/kenosis/kim.py
-${PYSITELIB}/kenosis/kim.pyc
-${PYSITELIB}/kenosis/kim.pyo
+${PYSITELIB}/kenosis/kwebd.py
+${PYSITELIB}/kenosis/kwebd.pyc
+${PYSITELIB}/kenosis/kwebd.pyo
${PYSITELIB}/kenosis/node.py
${PYSITELIB}/kenosis/node.pyc
${PYSITELIB}/kenosis/node.pyo
diff -r 3fb5aeeac718 -r eb1925461701 net/py-kenosis/distinfo
--- a/net/py-kenosis/distinfo Fri Feb 04 15:46:58 2005 +0000
+++ b/net/py-kenosis/distinfo Fri Feb 04 17:24:16 2005 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/01/13 12:55:32 drochner Exp $
+$NetBSD: distinfo,v 1.2 2005/02/04 17:24:16 drochner Exp $
-SHA1 (kenosis-0.92.tar.gz) = 14fc962807776b6e291af2bf79f3a1a13c9888c2
-Size (kenosis-0.92.tar.gz) = 107101 bytes
+SHA1 (kenosis-0.941.tar.gz) = ef2e344564fcc6270cf363773a21eef8919f7b7d
+Size (kenosis-0.941.tar.gz) = 111099 bytes
+SHA1 (patch-aa) = e3f5661c8fd13caff9aba6d801c63390e05511bd
diff -r 3fb5aeeac718 -r eb1925461701 net/py-kenosis/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-kenosis/patches/patch-aa Fri Feb 04 17:24:16 2005 +0000
@@ -0,0 +1,50 @@
+$NetBSD: patch-aa,v 1.1 2005/02/04 17:24:16 drochner Exp $
+
+--- kenosis/node.py.orig 2005-02-04 17:40:36.000000000 +0100
++++ kenosis/node.py
+@@ -309,7 +309,8 @@ class NullHandler:
+ class NodeRpcFrontend:
+ def __init__(self, nodeKernel):
+ self.nodeKernel_ = nodeKernel
+- self.kenosis = RpcServerAdapter(
++ self.services = {}
++ self.services["kenosis"] = RpcServerAdapter(
+ adaptee=NodeRpcFilter(nodeKernel=nodeKernel),
+ nodeKernel=self.nodeKernel_, serviceName="kenosis")
+
+@@ -319,22 +320,28 @@ class NodeRpcFrontend:
+ def registerNamedHandler(self, name, handler):
+ if nameIsPrivate(name=name):
+ raise Exception("invalid handler: %s" % name)
+- setattr(
+- self, name,
+- RpcServerAdapter(adaptee=handler, nodeKernel=self.nodeKernel_, serviceName=name))
++ self.services[name] = \
++ RpcServerAdapter(adaptee=handler, nodeKernel=self.nodeKernel_, serviceName=name)
++
++ def _dispatch(self, name, args):
++ (sname, rest) = name.split('.', 1)
++ fn = SimpleXMLRPCServer.resolve_dotted_attribute(
++ self.services[sname], rest)
++ return fn(*args)
++
+
+ def _listMethods(self):
+ ret = []
+- for attrName in dir(self):
+- attr = getattr(self, attrName)
++ for attrName in keys(self.services):
++ attr = self.services[attrName]
+ if isinstance(attr, RpcServerAdapter):
+ for methodName in attr._listPublicMethod():
+ ret.append("%s.%s" % (attrName, methodName))
+ return ret
+
+ def _methodHelp(self, method):
+- for attrName in dir(self):
+- attr = getattr(self, attrName)
++ for attrName in keys(self.services):
++ attr = self.services[attrName]
+ if isinstance(attr, RpcServerAdapter):
+ for methodName in attr._listPublicMethod():
+ n = "%s.%s" % (attrName, methodName)
Home |
Main Index |
Thread Index |
Old Index