aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2008-04-16 14:23:43 +0800
committerbeech <beech@FreeBSD.org>2008-04-16 14:23:43 +0800
commit1cc34dc8ad26360637f0f6daa1a146bad15825ae (patch)
treeb3b64181dc1f2eae0be1acb85d4fdf8e87fab095 /www
parent4300462fe68289a33d673f0c5305ce83d65f326d (diff)
downloadfreebsd-ports-gnome-1cc34dc8ad26360637f0f6daa1a146bad15825ae.tar.gz
freebsd-ports-gnome-1cc34dc8ad26360637f0f6daa1a146bad15825ae.tar.zst
freebsd-ports-gnome-1cc34dc8ad26360637f0f6daa1a146bad15825ae.zip
- New port TooFPy-0.3.7
From the website: The Toolserver Framework for Python is a framework for simple building of webservices. This is not Twisted - that one is much larger and much richer in features. If you need a full fledged webservice or internet protocol platform, you better go with Twisted. But if you need a lean and mean webservice machine, the Toolserver Framework for Python might be the right tool for the job. Author: Georg Bauer <gb@murphy.bofh.ms> WWW: http://pyds.muensterland.org/wiki/toolserver.html PR: ports/122316 Submitted by: Frank Fenor <frank at fenor.de>
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/toofpy/Makefile48
-rw-r--r--www/toofpy/distinfo3
-rw-r--r--www/toofpy/files/patch-tools_WSGITool.py28
-rw-r--r--www/toofpy/files/toolserver.in68
-rw-r--r--www/toofpy/pkg-descr11
-rw-r--r--www/toofpy/pkg-install36
-rw-r--r--www/toofpy/pkg-plist137
8 files changed, 332 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 91b079afa082..732c50d7c0a0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1262,6 +1262,7 @@
SUBDIR += tomcat41
SUBDIR += tomcat55
SUBDIR += tomcat6
+ SUBDIR += toofpy
SUBDIR += trac
SUBDIR += trac-accountmanager
SUBDIR += trac-addcomment
diff --git a/www/toofpy/Makefile b/www/toofpy/Makefile
new file mode 100644
index 000000000000..5e84e1231110
--- /dev/null
+++ b/www/toofpy/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: TooFPy
+# Date created: 31 March 2008
+# Whom: Frank Fenor <frank@fenor.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= TooFPy
+PORTVERSION= 0.3.7
+CATEGORIES= www python
+MASTER_SITES= http://simon.bofh.ms/~gb/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= toolserver-snapshot.tar.gz
+
+MAINTAINER= frank@fenor.de
+COMMENT= Toolserver Framework for Python
+
+WRKSRC= work/Toolserver-${PORTVERSION}
+USE_RC_SUBR= toolserver
+PYDISTUTILS_PKGNAME= Toolserver
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/medusa:${PORTSDIR}/net/py-medusa \
+ ${PYTHON_SITELIBDIR}/fpconst.py:${PORTSDIR}/math/py-fpconst \
+ ${PYTHON_SITELIBDIR}/SOAPpy:${PORTSDIR}/net/py-soappy
+
+OPTIONS= PYCRYPTO "Use pycrypto (for RSA authentication)" off
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 250
+OPTIONS+= WSGIREF "WSGI compliant applications" off
+.endif
+
+.if defined(WITH_PYCRYPTO)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Crypto:${PORTSDIR}/security/py-pycrypto
+.endif
+
+.if defined(WITH_WSGIREF)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/wsgiref:${PORTSDIR}/www/py-wsgiref
+.endif
+
+post-install:
+ @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/www/toofpy/distinfo b/www/toofpy/distinfo
new file mode 100644
index 000000000000..3665fc6396dc
--- /dev/null
+++ b/www/toofpy/distinfo
@@ -0,0 +1,3 @@
+MD5 (toolserver-snapshot.tar.gz) = 5108181188126cb273ad8b0c0c0162e8
+SHA256 (toolserver-snapshot.tar.gz) = 92017f553a415c3448fdaa696e05176be3875c82b10a08efc7abd81b22e8396c
+SIZE (toolserver-snapshot.tar.gz) = 95629
diff --git a/www/toofpy/files/patch-tools_WSGITool.py b/www/toofpy/files/patch-tools_WSGITool.py
new file mode 100644
index 000000000000..70e960956138
--- /dev/null
+++ b/www/toofpy/files/patch-tools_WSGITool.py
@@ -0,0 +1,28 @@
+--- tools/WSGITool.py.vanilla 2008-02-17 23:30:03.000000000 +0100
++++ tools/WSGITool.py 2008-02-17 23:31:16.000000000 +0100
+@@ -49,14 +49,17 @@
+ haswsgi = 0
+ class BaseHandler: pass
+
+-if config.django:
+- try:
+- from django.core import management
+- from django.core.handlers.wsgi import WSGIHandler
+- hasdjango = 1
+- except ImportError:
+- hasdjango = 0
+-else: hasdjango = 0
++try:
++ if config.django:
++ try:
++ from django.core import management
++ from django.core.handlers.wsgi import WSGIHandler
++ hasdjango = 1
++ except ImportError:
++ hasdjango = 0
++ else: hasdjango = 0
++except:
++ hasdjango = 0
+
+ try:
+ True
diff --git a/www/toofpy/files/toolserver.in b/www/toofpy/files/toolserver.in
new file mode 100644
index 000000000000..73baa7afb117
--- /dev/null
+++ b/www/toofpy/files/toolserver.in
@@ -0,0 +1,68 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/www/toofpy/files/Attic/toolserver.in,v 1.1 2008-04-16 06:23:43 beech Exp $
+
+# PROVIDE: toolserver
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+# Define these toolserver_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/toolserver
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+toolserver_enable=${toolserver_enable-"NO"}
+toolserver_pidfile=${toolserver_pidfile-"/usr/home/toolserver/.Toolserver/var/toolserver.pid"}
+
+. %%RC_SUBR%%
+
+name="toolserver"
+toolserver_user=toolserver
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/tsctl"
+
+load_rc_config $name
+
+pidfile="${toolserver_pidfile}"
+
+extra_commands="init keygen"
+
+start_cmd="toolserver_command start"
+stop_cmd="toolserver_stop_command"
+init_cmd="toolserver_command init"
+keygen_cmd="toolserver_command keygen"
+start_precmd="toolserver_start_check"
+stop_precmd="toolserver_stop_check"
+
+toolserver_command()
+{
+ su -f -l ${toolserver_user} -c "exec ${command} ${command_args} ${rc_arg}"
+}
+
+PYTHON_CMD=$(head -n1 `which tsctl`|tr "#! " " " | awk '{ print $1 }')
+
+toolserver_start_check()
+{
+ if [ "0$(check_pidfile ${pidfile} ${command} ${PYTHON_CMD})" -gt 1 ]; then
+ echo "${name} is already running."
+ exit 1
+ fi
+}
+
+toolserver_stop_check()
+{
+ if [ ! "0$(check_pidfile ${pidfile} ${command} ${PYTHON_CMD})" -gt 1 ]; then
+ echo "${name} is not running."
+ exit 1
+ fi
+}
+
+toolserver_stop_command()
+{
+ tspid=$(check_pidfile ${pidfile} ${command} ${PYTHON_CMD})
+ toolserver_command stop
+ wait_for_pids $tspid
+}
+
+run_rc_command "$1"
diff --git a/www/toofpy/pkg-descr b/www/toofpy/pkg-descr
new file mode 100644
index 000000000000..efdddacf665f
--- /dev/null
+++ b/www/toofpy/pkg-descr
@@ -0,0 +1,11 @@
+From the website:
+
+ The Toolserver Framework for Python is a framework for simple building of
+ webservices. This is not Twisted - that one is much larger and much richer
+ in features. If you need a full fledged webservice or internet protocol
+ platform, you better go with Twisted. But if you need a lean and mean
+ webservice machine, the Toolserver Framework for Python might be the right
+ tool for the job.
+
+Author: Georg Bauer <gb@murphy.bofh.ms>
+WWW: http://pyds.muensterland.org/wiki/toolserver.html
diff --git a/www/toofpy/pkg-install b/www/toofpy/pkg-install
new file mode 100644
index 000000000000..2216081f775f
--- /dev/null
+++ b/www/toofpy/pkg-install
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+PATH=/bin:/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=toolserver
+ GROUP=${USER}
+ UID=434
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - -m \
+ -d /home/toolserver -s /bin/csh -c "Toolserver Framework"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+ ;;
+esac
diff --git a/www/toofpy/pkg-plist b/www/toofpy/pkg-plist
new file mode 100644
index 000000000000..f8c76eb6ac54
--- /dev/null
+++ b/www/toofpy/pkg-plist
@@ -0,0 +1,137 @@
+bin/tsctl
+lib/python2.5/site-packages/Toolserver/AsyncCall.py
+lib/python2.5/site-packages/Toolserver/AsyncCall.pyc
+lib/python2.5/site-packages/Toolserver/AsyncCall.pyo
+lib/python2.5/site-packages/Toolserver/Authentication.py
+lib/python2.5/site-packages/Toolserver/Authentication.pyc
+lib/python2.5/site-packages/Toolserver/Authentication.pyo
+lib/python2.5/site-packages/Toolserver/CRAMUtils.py
+lib/python2.5/site-packages/Toolserver/CRAMUtils.pyc
+lib/python2.5/site-packages/Toolserver/CRAMUtils.pyo
+lib/python2.5/site-packages/Toolserver/Client.py
+lib/python2.5/site-packages/Toolserver/Client.pyc
+lib/python2.5/site-packages/Toolserver/Client.pyo
+lib/python2.5/site-packages/Toolserver/ClientMachinery.py
+lib/python2.5/site-packages/Toolserver/ClientMachinery.pyc
+lib/python2.5/site-packages/Toolserver/ClientMachinery.pyo
+lib/python2.5/site-packages/Toolserver/ClientRegistry.py
+lib/python2.5/site-packages/Toolserver/ClientRegistry.pyc
+lib/python2.5/site-packages/Toolserver/ClientRegistry.pyo
+lib/python2.5/site-packages/Toolserver/Config.py
+lib/python2.5/site-packages/Toolserver/Config.pyc
+lib/python2.5/site-packages/Toolserver/Config.pyo
+lib/python2.5/site-packages/Toolserver/Context.py
+lib/python2.5/site-packages/Toolserver/Context.pyc
+lib/python2.5/site-packages/Toolserver/Context.pyo
+lib/python2.5/site-packages/Toolserver/Daemonize.py
+lib/python2.5/site-packages/Toolserver/Daemonize.pyc
+lib/python2.5/site-packages/Toolserver/Daemonize.pyo
+lib/python2.5/site-packages/Toolserver/DefaultConfig.py
+lib/python2.5/site-packages/Toolserver/DefaultConfig.pyc
+lib/python2.5/site-packages/Toolserver/DefaultConfig.pyo
+lib/python2.5/site-packages/Toolserver/Factory.py
+lib/python2.5/site-packages/Toolserver/Factory.pyc
+lib/python2.5/site-packages/Toolserver/Factory.pyo
+lib/python2.5/site-packages/Toolserver/HTTPHandler.py
+lib/python2.5/site-packages/Toolserver/HTTPHandler.pyc
+lib/python2.5/site-packages/Toolserver/HTTPHandler.pyo
+lib/python2.5/site-packages/Toolserver/LRUCache.py
+lib/python2.5/site-packages/Toolserver/LRUCache.pyc
+lib/python2.5/site-packages/Toolserver/LRUCache.pyo
+lib/python2.5/site-packages/Toolserver/Linda.py
+lib/python2.5/site-packages/Toolserver/Linda.pyc
+lib/python2.5/site-packages/Toolserver/Linda.pyo
+lib/python2.5/site-packages/Toolserver/Monitor.py
+lib/python2.5/site-packages/Toolserver/Monitor.pyc
+lib/python2.5/site-packages/Toolserver/Monitor.pyo
+lib/python2.5/site-packages/Toolserver/MonitorWin32.py
+lib/python2.5/site-packages/Toolserver/MonitorWin32.pyc
+lib/python2.5/site-packages/Toolserver/MonitorWin32.pyo
+lib/python2.5/site-packages/Toolserver/PickleRPCClient.py
+lib/python2.5/site-packages/Toolserver/PickleRPCClient.pyc
+lib/python2.5/site-packages/Toolserver/PickleRPCClient.pyo
+lib/python2.5/site-packages/Toolserver/ProcessQueue.py
+lib/python2.5/site-packages/Toolserver/ProcessQueue.pyc
+lib/python2.5/site-packages/Toolserver/ProcessQueue.pyo
+lib/python2.5/site-packages/Toolserver/RESTCall.py
+lib/python2.5/site-packages/Toolserver/RESTCall.pyc
+lib/python2.5/site-packages/Toolserver/RESTCall.pyo
+lib/python2.5/site-packages/Toolserver/RESTHandler.py
+lib/python2.5/site-packages/Toolserver/RESTHandler.pyc
+lib/python2.5/site-packages/Toolserver/RESTHandler.pyo
+lib/python2.5/site-packages/Toolserver/RPCHandler.py
+lib/python2.5/site-packages/Toolserver/RPCHandler.pyc
+lib/python2.5/site-packages/Toolserver/RPCHandler.pyo
+lib/python2.5/site-packages/Toolserver/ReactorChain.py
+lib/python2.5/site-packages/Toolserver/ReactorChain.pyc
+lib/python2.5/site-packages/Toolserver/ReactorChain.pyo
+lib/python2.5/site-packages/Toolserver/RewriteHandler.py
+lib/python2.5/site-packages/Toolserver/RewriteHandler.pyc
+lib/python2.5/site-packages/Toolserver/RewriteHandler.pyo
+lib/python2.5/site-packages/Toolserver/SOAPClient.py
+lib/python2.5/site-packages/Toolserver/SOAPClient.pyc
+lib/python2.5/site-packages/Toolserver/SOAPClient.pyo
+lib/python2.5/site-packages/Toolserver/SOAPHandler.py
+lib/python2.5/site-packages/Toolserver/SOAPHandler.pyc
+lib/python2.5/site-packages/Toolserver/SOAPHandler.pyo
+lib/python2.5/site-packages/Toolserver/Server.py
+lib/python2.5/site-packages/Toolserver/Server.pyc
+lib/python2.5/site-packages/Toolserver/Server.pyo
+lib/python2.5/site-packages/Toolserver/SyncCall.py
+lib/python2.5/site-packages/Toolserver/SyncCall.pyc
+lib/python2.5/site-packages/Toolserver/SyncCall.pyo
+lib/python2.5/site-packages/Toolserver/TagRenderer.py
+lib/python2.5/site-packages/Toolserver/TagRenderer.pyc
+lib/python2.5/site-packages/Toolserver/TagRenderer.pyo
+lib/python2.5/site-packages/Toolserver/Tool.py
+lib/python2.5/site-packages/Toolserver/Tool.pyc
+lib/python2.5/site-packages/Toolserver/Tool.pyo
+lib/python2.5/site-packages/Toolserver/Utils.py
+lib/python2.5/site-packages/Toolserver/Utils.pyc
+lib/python2.5/site-packages/Toolserver/Utils.pyo
+lib/python2.5/site-packages/Toolserver/Worker.py
+lib/python2.5/site-packages/Toolserver/Worker.pyc
+lib/python2.5/site-packages/Toolserver/Worker.pyo
+lib/python2.5/site-packages/Toolserver/XMLRPCClient.py
+lib/python2.5/site-packages/Toolserver/XMLRPCClient.pyc
+lib/python2.5/site-packages/Toolserver/XMLRPCClient.pyo
+lib/python2.5/site-packages/Toolserver/XMLRPCHandler.py
+lib/python2.5/site-packages/Toolserver/XMLRPCHandler.pyc
+lib/python2.5/site-packages/Toolserver/XMLRPCHandler.pyo
+lib/python2.5/site-packages/Toolserver/__init__.py
+lib/python2.5/site-packages/Toolserver/__init__.pyc
+lib/python2.5/site-packages/Toolserver/__init__.pyo
+lib/python2.5/site-packages/Toolserver/autoreload.py
+lib/python2.5/site-packages/Toolserver/autoreload.pyc
+lib/python2.5/site-packages/Toolserver/autoreload.pyo
+lib/python2.5/site-packages/Toolserver/select_trigger.py
+lib/python2.5/site-packages/Toolserver/select_trigger.pyc
+lib/python2.5/site-packages/Toolserver/select_trigger.pyo
+lib/python2.5/site-packages/Toolserver/timeoutsocket.py
+lib/python2.5/site-packages/Toolserver/timeoutsocket.pyc
+lib/python2.5/site-packages/Toolserver/timeoutsocket.pyo
+share/toolserver/INSTALL-FROM-SOURCE
+share/toolserver/LICENSE
+share/toolserver/README
+share/toolserver/TODO
+share/toolserver/UPDATE-FROM-SOURCE
+share/toolserver/samples/GreetingTool.py
+share/toolserver/samples/MailCheck.py
+share/toolserver/samples/PYXMLRPCHandler.py
+share/toolserver/samples/ServerManager.py
+share/toolserver/samples/WSGIHelloWorld.py
+share/toolserver/samples/WikiTool.py
+share/toolserver/tools/APITool.py
+@unexec rm -f %D/share/toolserver/tools/APITool.pyc
+share/toolserver/tools/PickleRPCHandler.py
+@unexec rm -f %D/share/toolserver/tools/PickleRPCHandler.pyc
+share/toolserver/tools/SystemTool.py
+@unexec rm -f %D/share/toolserver/tools/SystemTool.pyc
+share/toolserver/tools/WSDLTool.py
+@unexec rm -f %D/share/toolserver/tools/WSDLTool.pyc
+share/toolserver/tools/WSGITool.py
+@unexec rm -f %D/share/toolserver/tools/WSGITool.pyc
+@dirrm share/toolserver/tools
+@dirrm share/toolserver/samples
+@dirrm share/toolserver
+@dirrm lib/python2.5/site-packages/Toolserver