aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-10-28 09:20:02 +0800
committerwill <will@FreeBSD.org>2000-10-28 09:20:02 +0800
commit1d4c0fdb1664d08e5ecfcfe0b2f4973d0c4ad19d (patch)
treee61b7325a6a7dc210ddd41b92d9d18422418036a /www
parent3f072062163f31cf40fafccd74437d20382c5908 (diff)
downloadfreebsd-ports-gnome-1d4c0fdb1664d08e5ecfcfe0b2f4973d0c4ad19d.tar.gz
freebsd-ports-gnome-1d4c0fdb1664d08e5ecfcfe0b2f4973d0c4ad19d.tar.zst
freebsd-ports-gnome-1d4c0fdb1664d08e5ecfcfe0b2f4973d0c4ad19d.zip
Add mod_python 2.6, an Apache module that allows embedding python within
the Apache http server for performance and flexibility boosts. PR: 20885 Submitted by: Chang, Hye-Shik <perky@python.or.kr>
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_python/Makefile57
-rw-r--r--www/mod_python/distinfo2
-rw-r--r--www/mod_python/pkg-comment1
-rw-r--r--www/mod_python/pkg-descr9
-rw-r--r--www/mod_python/pkg-plist12
-rw-r--r--www/mod_python3/Makefile57
-rw-r--r--www/mod_python3/distinfo2
-rw-r--r--www/mod_python3/pkg-comment1
-rw-r--r--www/mod_python3/pkg-descr9
-rw-r--r--www/mod_python3/pkg-plist12
11 files changed, 163 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 1fb63510fd01..4166435aea7a 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -98,6 +98,7 @@
SUBDIR += mod_perl
SUBDIR += mod_php3
SUBDIR += mod_php4
+ SUBDIR += mod_python
SUBDIR += mod_roaming
SUBDIR += mod_ruby
SUBDIR += mod_zap
diff --git a/www/mod_python/Makefile b/www/mod_python/Makefile
new file mode 100644
index 000000000000..32a8d8a6f622
--- /dev/null
+++ b/www/mod_python/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: mod_python
+# Date created: 28 August 2000
+# Whom: Hye-Shik Chang <perky@freebsd-kr.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_python
+PORTVERSION= 2.6
+CATEGORIES= www python
+MASTER_SITES= ftp://freebsd-kr.org/pub/FreeBSD/ \
+ http://www.modpython.org/dist/ \
+ ftp://ftp.python.org/pub/python/src/ \
+ ftp://ftp.cdrom.com/pub/python/www.python.org/ftp/python/src/ \
+ http://sunsite.org.uk/Mirrors/ftp.python.org/pub/www.python.org/ftp/python/src/
+DISTFILES= mod_python-${PORTVERSION}.tgz ${PYTHON_DISTFILE}
+
+MAINTAINER= perky@freebsd-kr.org
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 \
+ ${LOCALBASE}/bin/${PYTHON_VERSION}:${PORTSDIR}/lang/python
+RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
+
+APXS= ${PREFIX}/sbin/apxs
+PYTHON_VERSION= python1.5
+PYTHON_NO_DEPENDS= yes
+
+.if exists(${APXS})
+AP_LIBEXEC!= ${APXS} -q LIBEXEC
+.else
+AP_LIBEXEC= ${PREFIX}/libexec/apache
+.endif
+
+COMPILEALL= ${PYTHON_LIBDIR}/compileall.py
+
+PLIST_SUB+= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///} \
+ PYTHON_SITELIBDIR="${PYTHON_SITELIBDIR:S/^${PREFIX}\///}"
+
+do-build:
+ @${ECHO} "=> Building lib${PYTHON_VERSION}.a for mod_python ..."
+ cd ${PYTHON_WRKSRC} && ./configure && ${MAKE} lib${PYTHON_VERSION}.a
+ @${ECHO} "=> Building mod_python.so ..."
+ cd ${WRKSRC}/src;${APXS} -I../../Python-1.5.2/Include -I../../Python-1.5.2 -I${WRKSRC}/src/include -c mod_python.c -lm ../../Python-1.5.2/lib${PYTHON_VERSION}.a
+ ${PYTHON_CMD} ${COMPILEALL} ${WRKSRC}/lib/python/mod_python
+
+do-install:
+ cd ${WRKSRC}/src;${APXS} -i -a mod_python.so
+ ${MKDIR} ${PYTHON_SITELIBDIR}/mod_python
+ ${INSTALL_SCRIPT} ${WRKSRC}/lib/python/mod_python/* ${PYTHON_SITELIBDIR}/mod_python
+
+post-install:
+ @${ECHO_MSG} "======================================================="
+ @${ECHO_MSG} " mod_python was installed successfully."
+ @${ECHO_MSG} " please read the manual at http://www.modpython.org"
+ @${ECHO_MSG} "======================================================="
+
+.include <bsd.port.mk>
diff --git a/www/mod_python/distinfo b/www/mod_python/distinfo
new file mode 100644
index 000000000000..28616745d17d
--- /dev/null
+++ b/www/mod_python/distinfo
@@ -0,0 +1,2 @@
+MD5 (mod_python-2.6.tgz) = a71a014662a02648f4c2970814b296fd
+MD5 (py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
diff --git a/www/mod_python/pkg-comment b/www/mod_python/pkg-comment
new file mode 100644
index 000000000000..29297814bfad
--- /dev/null
+++ b/www/mod_python/pkg-comment
@@ -0,0 +1 @@
+Apache module for integrating Python
diff --git a/www/mod_python/pkg-descr b/www/mod_python/pkg-descr
new file mode 100644
index 000000000000..30d57845ab11
--- /dev/null
+++ b/www/mod_python/pkg-descr
@@ -0,0 +1,9 @@
+Mod_python allows embedding Python within the Apache http server
+for a considerable boost in performance and added flexibility
+in designing web based applications.
+
+WWW: http://www.modpython.org/
+developed by Gregory Trubetskoy <grisha@ispol.com>
+
+- Hye-Shik "Perky" Chang
+perky@freebsd-kr.org
diff --git a/www/mod_python/pkg-plist b/www/mod_python/pkg-plist
new file mode 100644
index 000000000000..ae8efc48d8a3
--- /dev/null
+++ b/www/mod_python/pkg-plist
@@ -0,0 +1,12 @@
+%%AP_LIBEXEC%%/mod_python.so
+%%PYTHON_SITELIBDIR%%/mod_python/__init__.py
+%%PYTHON_SITELIBDIR%%/mod_python/__init__.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/apache.py
+%%PYTHON_SITELIBDIR%%/mod_python/apache.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/cgihandler.py
+%%PYTHON_SITELIBDIR%%/mod_python/cgihandler.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/httpdapi.py
+%%PYTHON_SITELIBDIR%%/mod_python/httpdapi.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/zhandler.py
+%%PYTHON_SITELIBDIR%%/mod_python/zhandler.pyc
+@dirrm %%PYTHON_SITELIBDIR%%/mod_python
diff --git a/www/mod_python3/Makefile b/www/mod_python3/Makefile
new file mode 100644
index 000000000000..32a8d8a6f622
--- /dev/null
+++ b/www/mod_python3/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: mod_python
+# Date created: 28 August 2000
+# Whom: Hye-Shik Chang <perky@freebsd-kr.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_python
+PORTVERSION= 2.6
+CATEGORIES= www python
+MASTER_SITES= ftp://freebsd-kr.org/pub/FreeBSD/ \
+ http://www.modpython.org/dist/ \
+ ftp://ftp.python.org/pub/python/src/ \
+ ftp://ftp.cdrom.com/pub/python/www.python.org/ftp/python/src/ \
+ http://sunsite.org.uk/Mirrors/ftp.python.org/pub/www.python.org/ftp/python/src/
+DISTFILES= mod_python-${PORTVERSION}.tgz ${PYTHON_DISTFILE}
+
+MAINTAINER= perky@freebsd-kr.org
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 \
+ ${LOCALBASE}/bin/${PYTHON_VERSION}:${PORTSDIR}/lang/python
+RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
+
+APXS= ${PREFIX}/sbin/apxs
+PYTHON_VERSION= python1.5
+PYTHON_NO_DEPENDS= yes
+
+.if exists(${APXS})
+AP_LIBEXEC!= ${APXS} -q LIBEXEC
+.else
+AP_LIBEXEC= ${PREFIX}/libexec/apache
+.endif
+
+COMPILEALL= ${PYTHON_LIBDIR}/compileall.py
+
+PLIST_SUB+= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///} \
+ PYTHON_SITELIBDIR="${PYTHON_SITELIBDIR:S/^${PREFIX}\///}"
+
+do-build:
+ @${ECHO} "=> Building lib${PYTHON_VERSION}.a for mod_python ..."
+ cd ${PYTHON_WRKSRC} && ./configure && ${MAKE} lib${PYTHON_VERSION}.a
+ @${ECHO} "=> Building mod_python.so ..."
+ cd ${WRKSRC}/src;${APXS} -I../../Python-1.5.2/Include -I../../Python-1.5.2 -I${WRKSRC}/src/include -c mod_python.c -lm ../../Python-1.5.2/lib${PYTHON_VERSION}.a
+ ${PYTHON_CMD} ${COMPILEALL} ${WRKSRC}/lib/python/mod_python
+
+do-install:
+ cd ${WRKSRC}/src;${APXS} -i -a mod_python.so
+ ${MKDIR} ${PYTHON_SITELIBDIR}/mod_python
+ ${INSTALL_SCRIPT} ${WRKSRC}/lib/python/mod_python/* ${PYTHON_SITELIBDIR}/mod_python
+
+post-install:
+ @${ECHO_MSG} "======================================================="
+ @${ECHO_MSG} " mod_python was installed successfully."
+ @${ECHO_MSG} " please read the manual at http://www.modpython.org"
+ @${ECHO_MSG} "======================================================="
+
+.include <bsd.port.mk>
diff --git a/www/mod_python3/distinfo b/www/mod_python3/distinfo
new file mode 100644
index 000000000000..28616745d17d
--- /dev/null
+++ b/www/mod_python3/distinfo
@@ -0,0 +1,2 @@
+MD5 (mod_python-2.6.tgz) = a71a014662a02648f4c2970814b296fd
+MD5 (py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
diff --git a/www/mod_python3/pkg-comment b/www/mod_python3/pkg-comment
new file mode 100644
index 000000000000..29297814bfad
--- /dev/null
+++ b/www/mod_python3/pkg-comment
@@ -0,0 +1 @@
+Apache module for integrating Python
diff --git a/www/mod_python3/pkg-descr b/www/mod_python3/pkg-descr
new file mode 100644
index 000000000000..30d57845ab11
--- /dev/null
+++ b/www/mod_python3/pkg-descr
@@ -0,0 +1,9 @@
+Mod_python allows embedding Python within the Apache http server
+for a considerable boost in performance and added flexibility
+in designing web based applications.
+
+WWW: http://www.modpython.org/
+developed by Gregory Trubetskoy <grisha@ispol.com>
+
+- Hye-Shik "Perky" Chang
+perky@freebsd-kr.org
diff --git a/www/mod_python3/pkg-plist b/www/mod_python3/pkg-plist
new file mode 100644
index 000000000000..ae8efc48d8a3
--- /dev/null
+++ b/www/mod_python3/pkg-plist
@@ -0,0 +1,12 @@
+%%AP_LIBEXEC%%/mod_python.so
+%%PYTHON_SITELIBDIR%%/mod_python/__init__.py
+%%PYTHON_SITELIBDIR%%/mod_python/__init__.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/apache.py
+%%PYTHON_SITELIBDIR%%/mod_python/apache.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/cgihandler.py
+%%PYTHON_SITELIBDIR%%/mod_python/cgihandler.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/httpdapi.py
+%%PYTHON_SITELIBDIR%%/mod_python/httpdapi.pyc
+%%PYTHON_SITELIBDIR%%/mod_python/zhandler.py
+%%PYTHON_SITELIBDIR%%/mod_python/zhandler.pyc
+@dirrm %%PYTHON_SITELIBDIR%%/mod_python