diff options
author | pat <pat@FreeBSD.org> | 2002-03-29 04:27:05 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-03-29 04:27:05 +0800 |
commit | e6fdeb2cfc97321527d3432a310065d3cad4abb4 (patch) | |
tree | aef2d678a967bc701e9fa4da47002d7591db7ae7 /net/py-medusa | |
parent | fdee6ea504a24ab22e29ddcfc6fb4efddeb5f84c (diff) | |
download | freebsd-ports-gnome-e6fdeb2cfc97321527d3432a310065d3cad4abb4.tar.gz freebsd-ports-gnome-e6fdeb2cfc97321527d3432a310065d3cad4abb4.tar.zst freebsd-ports-gnome-e6fdeb2cfc97321527d3432a310065d3cad4abb4.zip |
Add new port net/py-medusa - Asynchronous socket-based server framework
for Python
PR: 36420
Submitted by: Hye-Shik Chang <perky@fallin.lv>
Diffstat (limited to 'net/py-medusa')
-rw-r--r-- | net/py-medusa/Makefile | 39 | ||||
-rw-r--r-- | net/py-medusa/distinfo | 1 | ||||
-rw-r--r-- | net/py-medusa/files/patch-default_handler.py | 11 | ||||
-rw-r--r-- | net/py-medusa/pkg-comment | 1 | ||||
-rw-r--r-- | net/py-medusa/pkg-descr | 8 | ||||
-rw-r--r-- | net/py-medusa/pkg-plist | 125 |
6 files changed, 185 insertions, 0 deletions
diff --git a/net/py-medusa/Makefile b/net/py-medusa/Makefile new file mode 100644 index 000000000000..d8105588a0e5 --- /dev/null +++ b/net/py-medusa/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: py-medusa +# Date created: 27 March 2002 +# Whom: Hye-Shik Chang <perky@fallin.lv> +# +# $FreeBSD$ +# + +PORTNAME= medusa +PORTVERSION= 0.5.1 +CATEGORIES= net devel python +MASTER_SITES= http://www.amk.ca/files/python/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= perky@fallin.lv + +USE_PYTHON= yes + +DOCFILES= CHANGES.txt INSTALL.txt LICENSE.txt README.txt TODO.txt +EXAMPLEDIRS= demo test thread +DOCSDIR= ${PREFIX}/share/doc/py-medusa +EXAMPLESDIR= ${PREFIX}/share/examples/py-medusa +SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py + +do-build: + ${SETUP_CMD} build + +do-install: + @${SETUP_CMD} install -c -O1 --prefix=${PREFIX} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR}/docs + @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/docs +.for exdir in ${EXAMPLEDIRS} + @${MKDIR} ${EXAMPLESDIR}/${exdir} + @${INSTALL_DATA} ${WRKSRC}/${exdir}/* ${EXAMPLESDIR}/${exdir} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/net/py-medusa/distinfo b/net/py-medusa/distinfo new file mode 100644 index 000000000000..1ed23dc6c97c --- /dev/null +++ b/net/py-medusa/distinfo @@ -0,0 +1 @@ +MD5 (medusa-0.5.1.tar.gz) = c185b038f36065551d1e737ba46fae78 diff --git a/net/py-medusa/files/patch-default_handler.py b/net/py-medusa/files/patch-default_handler.py new file mode 100644 index 000000000000..e5e922861c3e --- /dev/null +++ b/net/py-medusa/files/patch-default_handler.py @@ -0,0 +1,11 @@ +--- default_handler.py.orig Thu Mar 28 20:46:08 2002 ++++ default_handler.py Thu Mar 28 20:46:13 2002 +@@ -169,7 +169,7 @@ + + def set_content_type (self, path, request): + ext = string.lower (get_extension (path)) +- typ = mimelib.guess_type(path): ++ typ = mimelib.guess_type(path) + if typ is not None: + request['Content-Type'] = typ + else: diff --git a/net/py-medusa/pkg-comment b/net/py-medusa/pkg-comment new file mode 100644 index 000000000000..9c89bd85318f --- /dev/null +++ b/net/py-medusa/pkg-comment @@ -0,0 +1 @@ +Asynchronous socket-based server framework for Python diff --git a/net/py-medusa/pkg-descr b/net/py-medusa/pkg-descr new file mode 100644 index 000000000000..a062de03ff89 --- /dev/null +++ b/net/py-medusa/pkg-descr @@ -0,0 +1,8 @@ +Medusa is an architecture for building long-running, high-performance +network servers in Python. Medusa is in use now in several +mission-critical applications, ranging from custom web servers at +extremely high-traffic sites to distributed data processing systems. +It is an elegant and efficient solution to a difficult programming +problem. + +WWW: http://www.amk.ca/python/code/medusa.html diff --git a/net/py-medusa/pkg-plist b/net/py-medusa/pkg-plist new file mode 100644 index 000000000000..b9442d724ee2 --- /dev/null +++ b/net/py-medusa/pkg-plist @@ -0,0 +1,125 @@ +lib/%%PYTHON_VERSION%%/site-packages/medusa/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/auth_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/auth_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/auth_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/chat_server.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/chat_server.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/chat_server.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/counter.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/counter.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/counter.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/default_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/default_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/default_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/event_loop.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/event_loop.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/event_loop.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/fifo.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/fifo.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/fifo.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/filesys.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/filesys.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/filesys.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/ftp_server.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/ftp_server.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/ftp_server.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/http_date.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/http_date.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/http_date.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/http_server.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/http_server.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/http_server.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/logger.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/logger.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/logger.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/m_syslog.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/m_syslog.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/m_syslog.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/medusa_gif.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/medusa_gif.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/medusa_gif.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor_client.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor_client.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor_client.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor_client_win32.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor_client_win32.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/monitor_client_win32.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/producers.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/producers.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/producers.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/put_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/put_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/put_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/redirecting_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/redirecting_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/redirecting_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/resolver.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/resolver.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/resolver.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/rpc_client.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/rpc_client.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/rpc_client.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/rpc_server.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/rpc_server.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/rpc_server.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/script_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/script_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/script_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/status_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/status_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/status_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/unix_user_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/unix_user_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/unix_user_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/virtual_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/virtual_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/virtual_handler.pyo +lib/%%PYTHON_VERSION%%/site-packages/medusa/xmlrpc_handler.py +lib/%%PYTHON_VERSION%%/site-packages/medusa/xmlrpc_handler.pyc +lib/%%PYTHON_VERSION%%/site-packages/medusa/xmlrpc_handler.pyo +@dirrm lib/%%PYTHON_VERSION%%/site-packages/medusa +%%PORTDOCS%%share/examples/py-medusa/demo/dual_server.py +%%PORTDOCS%%share/examples/py-medusa/demo/publish.py +%%PORTDOCS%%share/examples/py-medusa/demo/script_server.py +%%PORTDOCS%%share/examples/py-medusa/demo/simple_anon_ftpd.py +%%PORTDOCS%%share/examples/py-medusa/demo/simple_httpd.py +%%PORTDOCS%%share/examples/py-medusa/demo/start_medusa.py +%%PORTDOCS%%share/examples/py-medusa/test/asyn_http_bench.py +%%PORTDOCS%%share/examples/py-medusa/test/bench.py +%%PORTDOCS%%share/examples/py-medusa/test/max_sockets.py +%%PORTDOCS%%share/examples/py-medusa/test/test_11.py +%%PORTDOCS%%share/examples/py-medusa/test/test_lb.py +%%PORTDOCS%%share/examples/py-medusa/test/test_medusa.py +%%PORTDOCS%%share/examples/py-medusa/test/test_single_11.py +%%PORTDOCS%%share/examples/py-medusa/test/tests.txt +%%PORTDOCS%%share/examples/py-medusa/thread/pi_module.py +%%PORTDOCS%%share/examples/py-medusa/thread/select_trigger.py +%%PORTDOCS%%share/examples/py-medusa/thread/test_module.py +%%PORTDOCS%%share/examples/py-medusa/thread/thread_channel.py +%%PORTDOCS%%share/examples/py-medusa/thread/thread_handler.py +%%PORTDOCS%%share/doc/py-medusa/CHANGES.txt +%%PORTDOCS%%share/doc/py-medusa/INSTALL.txt +%%PORTDOCS%%share/doc/py-medusa/LICENSE.txt +%%PORTDOCS%%share/doc/py-medusa/README.txt +%%PORTDOCS%%share/doc/py-medusa/TODO.txt +%%PORTDOCS%%share/doc/py-medusa/docs/README.html +%%PORTDOCS%%share/doc/py-medusa/docs/async_blurbs.txt +%%PORTDOCS%%share/doc/py-medusa/docs/composing_producers.gif +%%PORTDOCS%%share/doc/py-medusa/docs/data_flow.gif +%%PORTDOCS%%share/doc/py-medusa/docs/data_flow.html +%%PORTDOCS%%share/doc/py-medusa/docs/debugging.txt +%%PORTDOCS%%share/doc/py-medusa/docs/producers.gif +%%PORTDOCS%%share/doc/py-medusa/docs/proxy_notes.txt +%%PORTDOCS%%share/doc/py-medusa/docs/threads.txt +%%PORTDOCS%%share/doc/py-medusa/docs/tkinter.txt +%%PORTDOCS%%@dirrm share/examples/py-medusa/thread +%%PORTDOCS%%@dirrm share/examples/py-medusa/test +%%PORTDOCS%%@dirrm share/examples/py-medusa/demo +%%PORTDOCS%%@dirrm share/examples/py-medusa +%%PORTDOCS%%@dirrm share/doc/py-medusa/docs +%%PORTDOCS%%@dirrm share/doc/py-medusa |