aboutsummaryrefslogtreecommitdiffstats
path: root/net/pythondirector
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-02-27 05:39:56 +0800
committerclement <clement@FreeBSD.org>2004-02-27 05:39:56 +0800
commitc2a7b61e5b173b74facc40c28f2cdd086aa0489a (patch)
tree5a1b55be4e5a4f5717818b8eb5507ef432410328 /net/pythondirector
parent7330e56485abb249c364bcec3d9aab860310a5ad (diff)
downloadfreebsd-ports-gnome-c2a7b61e5b173b74facc40c28f2cdd086aa0489a.tar.gz
freebsd-ports-gnome-c2a7b61e5b173b74facc40c28f2cdd086aa0489a.tar.zst
freebsd-ports-gnome-c2a7b61e5b173b74facc40c28f2cdd086aa0489a.zip
Add python director 0.0.7.
This is a pure-python TCP load balancer. It takes inbound TCP connections and connects them to one of a number of backend servers. Features: * async i/o based, so much less overhead than fork/thread based balancers. * Multiple scheduling algorithms (random, round robin, leastconns, leastconns+roundrobin) * If a server fails to answer, it's removed from the pool - the client that failed to connect gets transparently failed over to a new host. * xml based configuration file * seperate management thread that periodically re-adds failed hosts if they've come back up. * optional builtin webserver for admin (sample of the running screen) * webserver has methods suitable for both interactive and automated systems WWW: http://pythondirector.sourceforge.net/
Diffstat (limited to 'net/pythondirector')
-rw-r--r--net/pythondirector/Makefile29
-rw-r--r--net/pythondirector/distinfo2
-rw-r--r--net/pythondirector/pkg-descr20
-rw-r--r--net/pythondirector/pkg-plist38
4 files changed, 89 insertions, 0 deletions
diff --git a/net/pythondirector/Makefile b/net/pythondirector/Makefile
new file mode 100644
index 000000000000..1acf189aaeed
--- /dev/null
+++ b/net/pythondirector/Makefile
@@ -0,0 +1,29 @@
+# New ports collection Makefile for: pydirector
+# Date created: Thu Feb 26
+# Whom: Clement Laforet <clement@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pydirector
+PORTVERSION= 0.0.7
+CATEGORIES= net python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pythondirector
+
+MAINTAINER= clement@FreeBSD.org
+COMMENT= A TCP load balancer written in Python
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PORTDOCS= *
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/pythondirector/distinfo b/net/pythondirector/distinfo
new file mode 100644
index 000000000000..14225fc8ee36
--- /dev/null
+++ b/net/pythondirector/distinfo
@@ -0,0 +1,2 @@
+MD5 (pydirector-0.0.7.tar.gz) = 758281f96dbae20cdf150cb4e1884275
+SIZE (pydirector-0.0.7.tar.gz) = 32559
diff --git a/net/pythondirector/pkg-descr b/net/pythondirector/pkg-descr
new file mode 100644
index 000000000000..4ec1405945ab
--- /dev/null
+++ b/net/pythondirector/pkg-descr
@@ -0,0 +1,20 @@
+This is a pure-python TCP load balancer. It takes inbound TCP
+connections and connects them to one of a number of backend servers.
+
+Features:
+ * async i/o based, so much less overhead than fork/thread based
+ balancers.
+ * Multiple scheduling algorithms (random, round robin, leastconns,
+ leastconns+roundrobin)
+ * If a server fails to answer, it's removed from the pool - the
+ client that failed to connect gets transparently failed over to a
+ new host.
+ * xml based configuration file
+ * seperate management thread that periodically re-adds failed hosts
+ if they've come back up.
+ * optional builtin webserver for admin (sample of the running
+ screen)
+ * webserver has methods suitable for both interactive and automated
+ systems
+
+WWW: http://pythondirector.sourceforge.net/
diff --git a/net/pythondirector/pkg-plist b/net/pythondirector/pkg-plist
new file mode 100644
index 000000000000..62609e06969d
--- /dev/null
+++ b/net/pythondirector/pkg-plist
@@ -0,0 +1,38 @@
+bin/pydir.py
+%%PYTHON_SITELIBDIR%%/pydirector/__init__.py
+%%PYTHON_SITELIBDIR%%/pydirector/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/compareconf.py
+%%PYTHON_SITELIBDIR%%/pydirector/compareconf.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/compareconf.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/micropubl.py
+%%PYTHON_SITELIBDIR%%/pydirector/micropubl.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/micropubl.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdadmin.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdadmin.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdadmin.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdconf.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdconf.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdconf.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdlogging.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdlogging.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdlogging.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdmain.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdmain.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdmain.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdmanager.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdmanager.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdmanager.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetwork.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetwork.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetwork.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetworkasyncore.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetworkasyncore.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetworkasyncore.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetworktwisted.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetworktwisted.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdnetworktwisted.pyo
+%%PYTHON_SITELIBDIR%%/pydirector/pdschedulers.py
+%%PYTHON_SITELIBDIR%%/pydirector/pdschedulers.pyc
+%%PYTHON_SITELIBDIR%%/pydirector/pdschedulers.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/pydirector