Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
www/ap2-python/DESCR Normal file
View File

@@ -0,0 +1,6 @@
mod_python is an Apache module that embeds the Python interpreter
within the server. With mod_python you can write web-based applications
in Python that will run many times faster than traditional CGI and
will have access to advanced features such as ability to retain
database connections and other data between hits and access to
Apache internals.

19
www/ap2-python/MESSAGE Normal file
View File

@@ -0,0 +1,19 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2004/07/17 01:11:36 darcy Exp $
Also remember to add to your Apache configuration in the appropriate context:
PythonPath "['/path/to/foo', '/path/to/bar']"
AddHandler python-program .py
PythonHandler foobar
PythonDebug On
For more information, see http://www.modpython.org/.
And, if you built apache without thread support, you may need to add the
following lines to $PREFIX/sbin/envvars:
LD_PRELOAD=/usr/lib/libc_r.so # or libpthread.so
export LD_PRELOAD
===========================================================================

30
www/ap2-python/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.28 2012/10/28 06:30:08 asau Exp $
DISTNAME= mod_python-${VERSION}
PKGNAME= ${APACHE_PKG_PREFIX}-${PYPKGPREFIX}-python-${VERSION}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/modpython/}
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.modpython.org/
COMMENT= Apache module that embeds the Python interpreter
LICENSE= apache-2.0
MAKE_JOBS_SAFE= no
USE_LIBTOOL= YES
APACHE_MODULE= YES
VERSION= 3.3.1
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-apxs=${APXS:Q}
CONFIGURE_ARGS+=--with-python=${PYTHONBIN:Q}
PY_PATCHPLIST= YES
PKG_APACHE_ACCEPTED= apache2 apache22
.include "../../lang/python/extension.mk"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"

39
www/ap2-python/PLIST Normal file
View File

@@ -0,0 +1,39 @@
@comment $NetBSD: PLIST,v 1.5 2009/06/14 22:00:17 joerg Exp $
lib/httpd/mod_python.so
${PYSITELIB}/mod_python/Cookie.py
${PYSITELIB}/mod_python/Cookie.pyc
${PYSITELIB}/mod_python/Cookie.pyo
${PYSITELIB}/mod_python/Session.py
${PYSITELIB}/mod_python/Session.pyc
${PYSITELIB}/mod_python/Session.pyo
${PYSITELIB}/mod_python/__init__.py
${PYSITELIB}/mod_python/__init__.pyc
${PYSITELIB}/mod_python/__init__.pyo
${PYSITELIB}/mod_python/_psp.so
${PYSITELIB}/mod_python/apache.py
${PYSITELIB}/mod_python/apache.pyc
${PYSITELIB}/mod_python/apache.pyo
${PYSITELIB}/mod_python/cache.py
${PYSITELIB}/mod_python/cache.pyc
${PYSITELIB}/mod_python/cache.pyo
${PYSITELIB}/mod_python/cgihandler.py
${PYSITELIB}/mod_python/cgihandler.pyc
${PYSITELIB}/mod_python/cgihandler.pyo
${PYSITELIB}/mod_python/importer.py
${PYSITELIB}/mod_python/importer.pyc
${PYSITELIB}/mod_python/importer.pyo
${PYSITELIB}/mod_python/psp.py
${PYSITELIB}/mod_python/psp.pyc
${PYSITELIB}/mod_python/psp.pyo
${PYSITELIB}/mod_python/publisher.py
${PYSITELIB}/mod_python/publisher.pyc
${PYSITELIB}/mod_python/publisher.pyo
${PYSITELIB}/mod_python/python22.py
${PYSITELIB}/mod_python/python22.pyc
${PYSITELIB}/mod_python/python22.pyo
${PYSITELIB}/mod_python/testhandler.py
${PYSITELIB}/mod_python/testhandler.pyc
${PYSITELIB}/mod_python/testhandler.pyo
${PYSITELIB}/mod_python/util.py
${PYSITELIB}/mod_python/util.pyc
${PYSITELIB}/mod_python/util.pyo

7
www/ap2-python/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2008/09/15 21:20:23 abs Exp $
SHA1 (mod_python-3.3.1.tgz) = e538170fd78e09408b6d8593da980b126a0fef93
RMD160 (mod_python-3.3.1.tgz) = f78f93172963317f4318f8f2455419743c8fb4f5
Size (mod_python-3.3.1.tgz) = 447954 bytes
SHA1 (patch-aa) = a7aa4b50f4fb3a6d36e2e2ab86ab6fb19c85cc3d
SHA1 (patch-ab) = dd6908cb05ddea36cf6d88ec246bd045411979d5

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-aa,v 1.1.1.1 2004/07/17 01:11:36 darcy Exp $
--- src/requestobject.c.orig 2004-06-10 17:55:28.000000000 -0400
+++ src/requestobject.c
@@ -1118,8 +1118,8 @@ static PyObject *getreq_recmbr_off(reque
{
PyMemberDef *md = find_memberdef(request_rec_mbrs, name);
char *addr = (char *)self->request_rec + md->offset;
- if (sizeof(apr_off_t) == sizeof(LONG_LONG)) {
- LONG_LONG l = *(LONG_LONG*)addr;
+ if (sizeof(apr_off_t) == sizeof(long long)) {
+ long long l = *(long long*)addr;
return PyLong_FromLongLong(l);
}
else {

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2008/09/15 21:20:24 abs Exp $
--- src/connobject.c.orig 2006-12-03 04:36:37.000000000 +0000
+++ src/connobject.c
@@ -139,7 +139,7 @@ static PyObject * _conn_read(conn_rec *c
bytes_read = 0;
while ((bytes_read < len || len == 0) &&
- !(b == APR_BRIGADE_SENTINEL(b) ||
+ !(b == APR_BRIGADE_SENTINEL(bb) ||
APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
const char *data;