summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-08-19 11:53:44 +0000
committerChristian Heim <phreak@gentoo.org>2007-08-19 11:53:44 +0000
commitcf1a81f8d1d5e7a60f2de3e17d7173efe89ef6d1 (patch)
tree62df558978ecab65943a30ea548cefaa5b07a84c /www-apache/mod_python
parentfix #187017 (diff)
downloadhistorical-cf1a81f8d1d5e7a60f2de3e17d7173efe89ef6d1.tar.gz
historical-cf1a81f8d1d5e7a60f2de3e17d7173efe89ef6d1.tar.bz2
historical-cf1a81f8d1d5e7a60f2de3e17d7173efe89ef6d1.zip
Moving dev-python/mod_python to www-apache.
Package-Manager: portage-2.1.3.5
Diffstat (limited to 'www-apache/mod_python')
-rw-r--r--www-apache/mod_python/ChangeLog251
-rw-r--r--www-apache/mod_python/files/16_mod_python.conf40
-rw-r--r--www-apache/mod_python/files/digest-mod_python-3.2.103
-rw-r--r--www-apache/mod_python/files/digest-mod_python-3.3.13
-rw-r--r--www-apache/mod_python/metadata.xml20
-rw-r--r--www-apache/mod_python/mod_python-3.2.10.ebuild60
-rw-r--r--www-apache/mod_python/mod_python-3.3.1.ebuild66
7 files changed, 443 insertions, 0 deletions
diff --git a/www-apache/mod_python/ChangeLog b/www-apache/mod_python/ChangeLog
new file mode 100644
index 000000000000..ec3197c55132
--- /dev/null
+++ b/www-apache/mod_python/ChangeLog
@@ -0,0 +1,251 @@
+# ChangeLog for dev-python/mod_python
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/ChangeLog,v 1.1 2007/08/19 11:53:43 phreak Exp $
+
+ 19 Aug 2007; Christian Heim <phreak@gentoo.org>:
+ Moving dev-python/mod_python to www-apache.
+
+ 13 Jun 2007; Luca Longinotti <chtekk@gentoo.org>
+ -mod_python-2.7.11.ebuild:
+ Remove Apache1.
+
+ 08 Jun 2007; Joshua Kinard <kumba@gentoo.org> mod_python-3.3.1.ebuild:
+ Marked unstable on mips, per #181068.
+
+*mod_python-3.3.1 (16 Mar 2007)
+
+ 16 Mar 2007; Tiziano Müller <dev-zero@gentoo.org>
+ -files/mod_python-3.1.4-configure-bash-3.1.patch,
+ -mod_python-3.1.4-r1.ebuild, +mod_python-3.3.1.ebuild:
+ Version bump (including some cleanup and added tests). Dropped old version
+ with security issue (bug #169286).
+
+ 10 Mar 2007; Bryan Østergaard <kloeri@gentoo.org>
+ mod_python-3.2.10.ebuild:
+ Stable on Alpha + IA64, bug 169286.
+
+ 08 Mar 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ mod_python-3.2.10.ebuild:
+ Stable on ppc wrt bug #169286.
+
+ 04 Mar 2007; Jason Wever <weeve@gentoo.org> mod_python-3.2.10.ebuild:
+ Stable on SPARC wrt security bug #169286.
+
+ 04 Mar 2007; Simon Stelling <blubb@gentoo.org> mod_python-3.2.10.ebuild:
+ stable on amd64; security bug 169286
+
+ 04 Mar 2007; Raúl Porcel <armin76@gentoo.org> mod_python-3.2.10.ebuild:
+ x86 stable wrt security bug 169286
+
+ 15 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ +files/16_mod_python.conf, -files/16_mod_python-r1.conf, metadata.xml,
+ mod_python-2.7.11.ebuild, mod_python-3.1.4-r1.ebuild,
+ mod_python-3.2.10.ebuild:
+ Cleanup.
+
+ 13 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ -files/16_mod_python.conf, -files/publisher-2.diff,
+ -mod_python-3.1.3-r1.ebuild, -mod_python-3.1.4.ebuild:
+ Cleanup old, redundant versions.
+
+ 11 Jan 2007; Christian Heim <phreak@gentoo.org> mod_python-2.7.11.ebuild,
+ mod_python-3.1.4.ebuild, mod_python-3.1.4-r1.ebuild,
+ mod_python-3.2.10.ebuild:
+ Fixing installation of HTML files and images (closing #149737 - thanks to
+ Brad Walker <bradmwalker@cableone.net>).
+
+*mod_python-3.2.10 (08 Oct 2006)
+
+ 08 Oct 2006; Bryan Østergaard <kloeri@gentoo.org>
+ +mod_python-3.2.10.ebuild:
+ Version bump, bug 123852.
+
+ 14 Jul 2006; Marien Zwart <marienz@gentoo.org> -files/mod_python.conf,
+ -mod_python-2.7.10.ebuild:
+ Remove old version, fixing bug #140371 for this package.
+
+ 12 Jul 2006; Aron Griffis <agriffis@gentoo.org>
+ mod_python-3.1.4-r1.ebuild:
+ Mark 3.1.4-r1 stable on ia64
+
+ 28 Jun 2006; Simon Stelling <blubb@gentoo.org> mod_python-2.7.11.ebuild:
+ keywording ~amd64 and applying the -fPIC patch from bug 106916; thanks to
+ Mathieu Malaterre
+
+ 04 Jun 2006; Michael Stewart <vericgar@gentoo.org>
+ mod_python-3.1.4-r1.ebuild:
+ Address dependency issues caused by depend.apache. Refer to bug 107127.
+
+ 01 Apr 2006; Aron Griffis <agriffis@gentoo.org>
+ mod_python-3.1.4-r1.ebuild:
+ Mark 3.1.4-r1 ~ia64
+
+ 15 Jan 2006; Marien Zwart <marienz@gentoo.org>
+ +files/mod_python-3.1.4-configure-bash-3.1.patch,
+ mod_python-3.1.4-r1.ebuild:
+ Patch to make configure work with bash 3.1 (bug #118948)
+
+ 28 Dec 2005; Simon Stelling <blubb@gentoo.org> mod_python-3.1.4-r1.ebuild:
+ stable on amd64
+
+ 11 Dec 2005; Bryan Østergaard <kloeri@gentoo.org
+ mod_python-2.7.11.ebuild:
+ x86 stable, bug 80109.
+
+ 19 Nov 2005; Chris White <chriswhite@gentoo.org> metadata.xml:
+ Added japanese metadata.xml translation thanks to Yoshino-san.
+
+ 14 Oct 2005; Aron Griffis <agriffis@gentoo.org>
+ mod_python-3.1.4-r1.ebuild:
+ Mark 3.1.4-r1 stable on alpha
+
+ 07 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+ mod_python-3.1.4-r1.ebuild:
+ Stable on sparc
+
+ 06 Oct 2005; Michael Hanselmann <hansmi@gentoo.org>
+ mod_python-3.1.4-r1.ebuild:
+ Stable on ppc.
+
+ 27 Sep 2005; Bryan Østergaard <kloeri@gentoo.org>
+ mod_python-3.1.4-r1.ebuild:
+ Stable for new apache layout.
+
+*mod_python-3.1.4-r1 (06 Jul 2005)
+
+ 06 Jul 2005; Alastair Tse <liquidx@gentoo.org>
+ -mod_python-2.7.10-r1.ebuild, -mod_python-3.1.3.ebuild,
+ +mod_python-3.1.4-r1.ebuild:
+ replaced ./configure with econf to force search paths to /usr rather than
+ /usr/local (#97992)
+
+ 05 May 2005; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
+ Add apache herd as maintainers.
+
+ 24 Apr 2005; Simon Stelling <blubb@gentoo.org> mod_python-3.1.3-r1.ebuild:
+ stable on amd64
+
+ 27 Feb 2005; Bryan Østergaard <kloeri@gentoo.org>
+ +files/16_mod_python-r1.conf, mod_python-2.7.11.ebuild,
+ mod_python-3.1.4.ebuild:
+ Fix broken configuration.
+
+*mod_python-2.7.11 (26 Feb 2005)
+
+ 26 Feb 2005; Bryan Østergaard <kloeri@gentoo.org>
+ +mod_python-2.7.11.ebuild, +mod_python-3.1.4.ebuild:
+ Version bump + uses new apache-module eclass. All changes by Benedikt Boehm
+ <hollow@gentoo.org>.
+
+ 11 Feb 2005; Rob Cakebread <pythonhead@gentoo.org>
+ +files/publisher-2.diff, mod_python-3.1.3.ebuild:
+ Bumped and patched security bug# 80109 CAN-2005-0088
+
+ 30 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 17 Oct 2004; Dylan Carlson <absinthe@gentoo.org> mod_python-3.1.3.ebuild:
+ keywords ~amd64; closes #66176.
+
+*mod_python-2.7.10-r1 (04 Sep 2004)
+
+ 04 Sep 2004; Lukasz Strzygowski <lucass@gentoo.org> metadata.xml,
+ +mod_python-2.7.10-r1.ebuild:
+ Fixed issue with detecting if python is compiled with threads.
+ Added description to metadata.
+
+ 14 Jul 2004; Jason Wever <weeve@gentoo.org> mod_python-3.1.3.ebuild:
+ Added ~sparc keyword, resolves bug #57102.
+
+ 12 Jul 2004; Bryan Østergaard <kloeri@gentoo.org>
+ -mod_python-3.0.4-r1.ebuild, -mod_python-3.0.4-r2.ebuild,
+ mod_python-3.1.3.ebuild:
+ Remove old versions, stable on alpha.
+
+ 24 May 2004; Bryan Østergaard <kloeri@gentoo.org> mod_python-3.1.3.ebuild:
+ Keyworded ~alpha, requested in bug #51550.
+
+ 24 May 2004; Chuck Short <zul@gentoo.org> mod_python-3.1.3.ebuild:
+ Marked stable as requested by #51420.
+
+ 04 May 2004; Bryan Østergaard <kloeri@gentoo.org> mod_python-2.7.10.ebuild,
+ mod_python-3.0.4-r1.ebuild, mod_python-3.0.4-r2.ebuild,
+ mod_python-3.1.3.ebuild:
+ Change SRC_URI to mirror://..
+
+ 25 Apr 2004; Aron Griffis <agriffis@gentoo.org> mod_python-2.7.10.ebuild:
+ Add die following econf for bug 48950
+
+ 01 Apr 2004; Bryan Østergaard <kloeri@gentoo.org> mod_python-2.7.10.ebuild,
+ mod_python-3.0.4-r2.ebuild, mod_python-3.0.4.ebuild:
+ Stable on x86.
+
+*mod_python-3.1.3 (29 Feb 2004)
+
+ 29 Feb 2004; <kloeri@gentoo.org> mod_python-3.1.3.ebuild:
+ Version bump.
+
+*mod_python-3.0.4-r2 (29 Jan 2004)
+
+ 29 Jan 2004; Bryan Østergaard,,, <kloeri@gentoo.org>
+ mod_python-3.0.4-r2.ebuild:
+ Fix installation paths, closing bug #39757 and #39758.
+
+*mod_python-3.0.4-r1 (28 Jan 2004)
+
+ 28 Jan 2004; Alastair Tse <liquidx@gentoo.org> mod_python-3.0.4-r1.ebuild:
+ fix missing mod_python.so, add python postinst pyc/pyo generation (#39627)
+
+*mod_python-2.7.10 (24 Jan 2004)
+
+ 24 Jan 2004; Alastair Tse <liquidx@gentoo.org> mod_python-2.7.8.ebuild,
+ mod_python-2.7.9.ebuild, mod_python-3.0.3.ebuild,
+ files/mod_python-3.0.3-dest1.diff, files/mod_python-3.0.3-dest2.diff,
+ files/patch-2.7.8.diff:
+ cleanup vunerable versions, bump 2.7 series due to security update (#39154)
+
+ 13 Dec 2003; Bryan Østergaard,,, <kloeri@gentoo.org>
+ mod_python-3.0.3.ebuild, mod_python-3.0.4.ebuild:
+ Install icons needed for html documentation, closing bug #29271
+
+*mod_python-2.7.9 (12 Dec 2003)
+*mod_python-3.0.4 (12 Dec 2003)
+
+ 12 Dec 2003; Bryan Østergaard,,, <kloeri@gentoo.org>
+ mod_python-2.7.9.ebuild, mod_python-3.0.0_beta4.ebuild,
+ mod_python-3.0.1.ebuild, mod_python-3.0.4.ebuild,
+ files/mod_python-3.0.0_beta4-destdir.diff:
+ Bump versions and remove some old versions.
+
+ 28 Oct 2003; Bryan Østergaard <kloeri@gentoo.org>
+ mod_python-3.0.3.ebuild:
+ Fix bug when using Python-2.3 closing bug #32018.
+
+ 05 Oct 2003; Rob Cakebread <pythonhead@gentoo.org>
+ mod_python-3.0.0_beta4.ebuild, mod_python-3.0.1.ebuild:
+ Added pkg_postinst to tell users to add -D PYTHON to /etc/conf.d/apache2
+
+*mod_python-3.0.3 (05 Oct 2003)
+
+ 05 Oct 2003; Rob Cakebread <pythonhead@gentoo.org> mod_python-3.0.3.ebuild:
+ Version bump. Thanks Bryan Østergaard <kloeri@mailme.dk>
+
+ 09 Jul 2003; Donny Davies <woodchip@gentoo.org> mod_python-2.7.8.ebuild:
+ Description clarify.
+
+*mod_python-3.0.1 (2 Feb 2003)
+
+ 2 Feb 2003; Grant Goodyear <g2boojum@gentoo.org> : Beyond the beta!
+
+*mod_python-3.0.0_beta4 (29 Nov 2002)
+
+ 29 Nov 2002; Donny Davies <woodchip@gentoo.org> : Updated for Apache2.
+
+*mod_python-2.7.8 (21 Oct 2002)
+
+ 27 Nov 2002; phoen][x <phoenix@gentoo.org> ChangeLog, files/mod_python.conf:
+ Fixed a typo in files/mod_python.conf.
+
+ 21 Oct 2002; phoen][x <phoenix@gentoo.org> ChangeLog, mod_python-2.7.8.ebuild,
+ files/digest-mod_python-2.7.8, files/mod_python.conf, files/patch-2.7.8.diff :
+ Initial import. Use this ebuild to add python support to your apache webserver.
diff --git a/www-apache/mod_python/files/16_mod_python.conf b/www-apache/mod_python/files/16_mod_python.conf
new file mode 100644
index 000000000000..c2df73cf8ff2
--- /dev/null
+++ b/www-apache/mod_python/files/16_mod_python.conf
@@ -0,0 +1,40 @@
+<IfDefine PYTHON>
+ <IfModule !mod_python.c>
+ LoadModule python_module modules/mod_python.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_python.c>
+#
+# Mod_python is a module that embeds the Python language interpreter
+# within the server, allowing Apache handlers to be written in Python.
+#
+
+# This will cause files beneath /home/httpd/htdocs with the extension .spam
+# to be handled by the Python script /home/httpd/htdocs/eggs.py
+#
+#<Directory /home/httpd/htdocs>
+# <IfModule mod_mime.c>
+# AddHandler python-program .spam
+# </IfModule>
+# PythonHandler eggs
+#</Directory>
+
+# This will cause all requests to the /python heirachy of your
+# webserver to be handled by the python script /path/to/myhandler.py
+#
+#<Location /python>
+# SetHandler python-program
+# PythonPath "sys.path + ['/path/to']"
+# PythonHandler myhandler
+#</Location>
+
+# This will cause all requests to the /python heirachy of your
+# webserver to be handled by mod_python's Publisher handler
+#
+#<Location /python>
+# SetHandler python-program
+# PythonHandler mod_python.publisher
+#</Location>
+
+</IfModule>
diff --git a/www-apache/mod_python/files/digest-mod_python-3.2.10 b/www-apache/mod_python/files/digest-mod_python-3.2.10
new file mode 100644
index 000000000000..6d9dfb733230
--- /dev/null
+++ b/www-apache/mod_python/files/digest-mod_python-3.2.10
@@ -0,0 +1,3 @@
+MD5 cc6439f546a6e70cfff7ca51b8c62541 mod_python-3.2.10.tgz 365768
+RMD160 2afdd0a80c815f8b9a1b33258e04ae17a12b7dbd mod_python-3.2.10.tgz 365768
+SHA256 ac404c02ee052dcfbd8e303fe9148866c561be9b9a8a12cffee25276e147f13c mod_python-3.2.10.tgz 365768
diff --git a/www-apache/mod_python/files/digest-mod_python-3.3.1 b/www-apache/mod_python/files/digest-mod_python-3.3.1
new file mode 100644
index 000000000000..aa3e51bc56e3
--- /dev/null
+++ b/www-apache/mod_python/files/digest-mod_python-3.3.1
@@ -0,0 +1,3 @@
+MD5 a3b0150176b726bd2833dac3a7837dc5 mod_python-3.3.1.tgz 447954
+RMD160 f78f93172963317f4318f8f2455419743c8fb4f5 mod_python-3.3.1.tgz 447954
+SHA256 ad2331fd5fcfd720ef9e3482973fc2d06eff36ba0c44693cfa42056a62175a6b mod_python-3.3.1.tgz 447954
diff --git a/www-apache/mod_python/metadata.xml b/www-apache/mod_python/metadata.xml
new file mode 100644
index 000000000000..64623d02849f
--- /dev/null
+++ b/www-apache/mod_python/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <herd>apache</herd>
+ <herd>python</herd>
+ <longdescription>
+ 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.
+ </longdescription>
+ <longdescription lang="ja">
+ Mod_PythonはウェブサーバーにPythonインタープリタを埋め込むApacheモジュールです。
+ Mod_PythonはPython言語のウェブベース・アプリケーションを従来のCGIよりも何倍も高>
+ 速に走らせることができ、データデータベースのコネクション保持に関するより高度なア
+ クセス機能やヒット間の他のデータやApache内部へのアクセス機能を持ちます。
+ </longdescription>
+</pkgmetadata>
diff --git a/www-apache/mod_python/mod_python-3.2.10.ebuild b/www-apache/mod_python/mod_python-3.2.10.ebuild
new file mode 100644
index 000000000000..a05bb01e5cc6
--- /dev/null
+++ b/www-apache/mod_python/mod_python-3.2.10.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/mod_python-3.2.10.ebuild,v 1.1 2007/08/19 11:53:43 phreak Exp $
+
+inherit python apache-module multilib autotools
+
+KEYWORDS="alpha amd64 ia64 ppc sparc x86"
+
+DESCRIPTION="An Apache2 module providing an embedded Python interpreter."
+HOMEPAGE="http://www.modpython.org/"
+SRC_URI="mirror://apache/httpd/modpython/${P}.tgz"
+LICENSE="Apache-1.1"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-lang/python"
+RDEPEND="${DEPEND}"
+
+APACHE2_MOD_CONF="16_${PN}"
+APACHE2_MOD_DEFINE="PYTHON"
+
+DOCFILES="README NEWS CREDITS COPYRIGHT"
+
+need_apache2
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Remove optimisations, we do that outside Portage
+ sed -ie 's:--optimize 2:--no-compile:' "dist/Makefile.in"
+
+ # Fix compilation when using Python 2.3 or newer
+ if has_version ">=dev-lang/python-2.3" ; then
+ sed -ie 's:LONG_LONG:PY_LONG_LONG:g' "${S}/src/requestobject.c"
+ fi
+
+ eautoconf
+}
+
+src_compile() {
+ econf --with-apxs=${APXS2} || die "econf failed"
+ emake OPT="`apxs2 -q CFLAGS` -fPIC" || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dohtml -r doc-html/*
+ apache-module_src_install
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize "/usr/$(get_libdir)/python${PYVER}/site-packages/mod_python"
+ apache-module_pkg_postinst
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}
diff --git a/www-apache/mod_python/mod_python-3.3.1.ebuild b/www-apache/mod_python/mod_python-3.3.1.ebuild
new file mode 100644
index 000000000000..1d59a9e0faf2
--- /dev/null
+++ b/www-apache/mod_python/mod_python-3.3.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/mod_python-3.3.1.ebuild,v 1.1 2007/08/19 11:53:43 phreak Exp $
+
+inherit python apache-module multilib
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86"
+
+DESCRIPTION="An Apache2 module providing an embedded Python interpreter."
+HOMEPAGE="http://www.modpython.org/"
+SRC_URI="mirror://apache/httpd/modpython/${P}.tgz"
+LICENSE="Apache-1.1"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-lang/python"
+RDEPEND="${DEPEND}"
+
+APACHE2_MOD_CONF="16_${PN}"
+APACHE2_MOD_DEFINE="PYTHON"
+
+DOCFILES="README NEWS CREDITS"
+
+need_apache2
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Remove optimisations, we do that outside Portage
+ sed -i \
+ -e 's:--optimize 2:--no-compile:' \
+ "dist/Makefile.in"
+}
+
+src_compile() {
+ econf --with-apxs=${APXS2} || die "econf failed"
+ emake OPT="`apxs2 -q CFLAGS` -fPIC" || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dohtml -r doc-html/*
+ apache-module_src_install
+}
+
+src_test() {
+ python_version
+ cd test
+ PYTHONPATH="$(ls -d ${S}/dist/build/lib.*)"
+ sed -i \
+ -e "120ios.environ['PYTHONPATH']=\"${PYTHONPATH}\"" \
+ test.py || die "sed failed"
+ "${python}" test.py || die "tests failed"
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize "/usr/$(get_libdir)/python${PYVER}/site-packages/mod_python"
+ apache-module_pkg_postinst
+}
+
+pkg_postrm() {
+ python_version
+ python_mod_cleanup "/usr/$(get_libdir)/python${PYVER}/site-packages/mod_python"
+}