summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2002-11-29 11:25:36 +0000
committerDonny Davies <woodchip@gentoo.org>2002-11-29 11:25:36 +0000
commitc1f5846714d6eea705277b2ae25278d73d5e650d (patch)
treef4a4261d40cfd758eab77687447f194caf5e18ac /dev-python/mod_python/files
parentupdated for Apache2 (diff)
downloadhistorical-c1f5846714d6eea705277b2ae25278d73d5e650d.tar.gz
historical-c1f5846714d6eea705277b2ae25278d73d5e650d.tar.bz2
historical-c1f5846714d6eea705277b2ae25278d73d5e650d.zip
updated for Apache2
Diffstat (limited to 'dev-python/mod_python/files')
-rw-r--r--dev-python/mod_python/files/16_mod_python.conf40
-rw-r--r--dev-python/mod_python/files/digest-mod_python-3.0.0_beta41
-rw-r--r--dev-python/mod_python/files/mod_python-3.0.0_beta4-destdir.diff29
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/mod_python/files/16_mod_python.conf b/dev-python/mod_python/files/16_mod_python.conf
new file mode 100644
index 000000000000..b678da4f188d
--- /dev/null
+++ b/dev-python/mod_python/files/16_mod_python.conf
@@ -0,0 +1,40 @@
+<IfDefine PYTHON>
+ <IfModule !mod_python.c>
+ LoadModule python_module extramodules/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/dev-python/mod_python/files/digest-mod_python-3.0.0_beta4 b/dev-python/mod_python/files/digest-mod_python-3.0.0_beta4
new file mode 100644
index 000000000000..8b7911290d67
--- /dev/null
+++ b/dev-python/mod_python/files/digest-mod_python-3.0.0_beta4
@@ -0,0 +1 @@
+MD5 3846e3dc817cb8aca702e9d66ff2ce73 mod_python-3.0.0-BETA4.tgz 211306
diff --git a/dev-python/mod_python/files/mod_python-3.0.0_beta4-destdir.diff b/dev-python/mod_python/files/mod_python-3.0.0_beta4-destdir.diff
new file mode 100644
index 000000000000..1b040ca9962f
--- /dev/null
+++ b/dev-python/mod_python/files/mod_python-3.0.0_beta4-destdir.diff
@@ -0,0 +1,29 @@
+--- Makefile.in.orig 2002-11-27 10:51:39.000000000 -0500
++++ Makefile.in 2002-11-27 10:52:16.000000000 -0500
+@@ -92,7 +92,7 @@
+ @echo
+ @echo "Performing DSO installation."
+ @echo
+- $(INSTALL) src/mod_python.so $(LIBEXECDIR)
++ $(INSTALL) src/mod_python.so $(DESTDIR)$(LIBEXECDIR)
+ @$(MAKE) install_py_lib
+ @echo
+ @echo "Now don't forget to edit your main config and add"
+@@ -102,13 +102,13 @@
+ @echo
+
+ install_py_lib:
+- $(INSTALL) -d $(PY_STD_LIB)/site-packages/mod_python
++ $(INSTALL) -d $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
+ @for f in `ls lib/python/mod_python/*.py`; \
+ do \
+- $(INSTALL) $$f $(PY_STD_LIB)/site-packages/mod_python; \
++ $(INSTALL) $$f $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python; \
+ done
+- ${PYTHON_BIN} $(PY_STD_LIB)/compileall.py $(PY_STD_LIB)/site-packages/mod_python
+- ${PYTHON_BIN} -O $(PY_STD_LIB)/compileall.py $(PY_STD_LIB)/site-packages/mod_python
++ ${PYTHON_BIN} $(PY_STD_LIB)/compileall.py $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
++ ${PYTHON_BIN} -O $(PY_STD_LIB)/compileall.py $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
+
+ clean:
+ cd src && $(MAKE) clean