the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
#=========================================================================
# $Id: libapache2-mod-python-py.info 512 2007-05-14 04:20:20Z matt $
Package: libapache2-mod-python-py%type_pkg[python]
Version: 3.3.1
Revision: 3
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
Type: python (2.3 2.4 2.5 2.6)
Description: Embeds the Python interpreter within Apache
License: OSI-Approved
Homepage: http://modpython.org/
Maintainer: Matthew Bogosian
#=========================================================================
#---- Dependencies -------------------------------------------------------
Depends: python%type_pkg[python] | python%type_pkg[python]-nox, apache2 (>= 2.2.9-2)
BuildDepends: apache2-dev (>= 2.2.9-2), libapr.0-dev, libaprutil.0-dev, flex-devel (>= 2.5.31), fink (>= 0.24.12-1)
#---- Unpack phase -------------------------------------------------------
Source: http://www.apache.org/dist/httpd/modpython/mod_python-%v.tgz
Source-MD5: a3b0150176b726bd2833dac3a7837dc5
PatchFile: %{ni}.patch
PatchFile-MD5: db33801579755c374dab950e54b2894b
#---- Compile phase ------------------------------------------------------
CompileScript: <<
#!/bin/sh -ex
./configure --prefix='%p' --with-apxs='%p/bin/apxs2' \
--with-python='%p/bin/python%type_raw[python]' \
--with-flex=%p/lib/flex/bin/flex
make
<<
#---- Install phase ------------------------------------------------------
DocFiles: COPYRIGHT CREDITS LICENSE NEWS NOTICE README
InstallScript: <<
#!/bin/sh -ex
make DESTDIR='%d' install
mv '%i/lib/apache2/modules/mod_python.so' '%i/lib/apache2/modules/mod_python%type_raw[python].so'
(
cat <
EOF
) >'python%type_raw[python].load'
chmod 600 'python%type_raw[python].load'
install -d -m 700 '%i/etc/apache2/mods-available'
cp 'python%type_raw[python].load' '%i/etc/apache2/mods-available'
chmod -R go-rstwx,a+Xr '%i/etc/apache2/mods-available'
<<
#---- Documentation ------------------------------------------------------
DescDetail: <<
From http://modpython.org/:
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.
<<
DescPort: <<
Fix bug in connobject.c that became build error with newer
apr. See:
http://bugs.gentoo.org/show_bug.cgi?id=230211
https://issues.apache.org/jira/browse/MODPYTHON-249
<<
<<
diff -Nurd -x'*~' mod_python-3.3.1.orig/src/connobject.c mod_python-3.3.1/src/connobject.c
--- mod_python-3.3.1.orig/src/connobject.c 2006-12-02 23:36:37.000000000 -0500
+++ mod_python-3.3.1/src/connobject.c 2008-09-09 01:07:05.000000000 -0400
@@ -139,7 +139,7 @@
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;