diff options
author | miwi <miwi@FreeBSD.org> | 2008-06-21 07:12:20 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-06-21 07:12:20 +0800 |
commit | 058cf6a0a33f520360adace0c1bcb2bc5606b474 (patch) | |
tree | 435d35c5d74abe658cdcc7a8dffc7f970cd5544f /www/mod_wsgi3 | |
parent | 907d359ceca96f119b5c21afd552efa14d886213 (diff) | |
download | freebsd-ports-gnome-058cf6a0a33f520360adace0c1bcb2bc5606b474.tar.gz freebsd-ports-gnome-058cf6a0a33f520360adace0c1bcb2bc5606b474.tar.zst freebsd-ports-gnome-058cf6a0a33f520360adace0c1bcb2bc5606b474.zip |
The mod_wsgi adapter is an Apache module that provides a WSGI compliant
interface for hosting Python based web applications within Apache. The
adapter is written completely in C code against the Apache C runtime and
for hosting WSGI applications within Apache has a lower overhead than using
existing WSGI adapters for mod_python or CGI.
WWW: http://www.modwsgi.org/
PR: ports/122612
Submitted by: Douglas Thrift
Diffstat (limited to 'www/mod_wsgi3')
-rw-r--r-- | www/mod_wsgi3/Makefile | 28 | ||||
-rw-r--r-- | www/mod_wsgi3/distinfo | 3 | ||||
-rw-r--r-- | www/mod_wsgi3/pkg-descr | 7 | ||||
-rw-r--r-- | www/mod_wsgi3/pkg-message | 5 | ||||
-rw-r--r-- | www/mod_wsgi3/pkg-plist | 5 |
5 files changed, 48 insertions, 0 deletions
diff --git a/www/mod_wsgi3/Makefile b/www/mod_wsgi3/Makefile new file mode 100644 index 000000000000..c14edd658bfc --- /dev/null +++ b/www/mod_wsgi3/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: mod_wsgi +# Date created: 07 April 2008 +# Whom: Douglas Thrift +# +# $FreeBSD$ +# + +PORTNAME= mod_wsgi +PORTVERSION= 2.0 +CATEGORIES= www python +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} + +MAINTAINER= douglas@douglasthrift.net +COMMENT= Python WSGI adapter module for Apache + +PROJECTHOST= modwsgi + +USE_APACHE= 1.3+ +USE_PYTHON= 2.3+ + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}" + +post-install: + @${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/${MODULENAME}.so" + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/mod_wsgi3/distinfo b/www/mod_wsgi3/distinfo new file mode 100644 index 000000000000..1a8a9876cb1e --- /dev/null +++ b/www/mod_wsgi3/distinfo @@ -0,0 +1,3 @@ +MD5 (mod_wsgi-2.0.tar.gz) = 72e871d4fda1da33829ae3c7f3f2aeb6 +SHA256 (mod_wsgi-2.0.tar.gz) = 6ccf94e88ecce945fe1c7bf1dd77abc725c8623b96b93a0cd9e3d0692b30500b +SIZE (mod_wsgi-2.0.tar.gz) = 96622 diff --git a/www/mod_wsgi3/pkg-descr b/www/mod_wsgi3/pkg-descr new file mode 100644 index 000000000000..626edd10ab45 --- /dev/null +++ b/www/mod_wsgi3/pkg-descr @@ -0,0 +1,7 @@ +The mod_wsgi adapter is an Apache module that provides a WSGI compliant +interface for hosting Python based web applications within Apache. The +adapter is written completely in C code against the Apache C runtime and +for hosting WSGI applications within Apache has a lower overhead than using +existing WSGI adapters for mod_python or CGI. + +WWW: http://www.modwsgi.org/ diff --git a/www/mod_wsgi3/pkg-message b/www/mod_wsgi3/pkg-message new file mode 100644 index 000000000000..dea5054f301f --- /dev/null +++ b/www/mod_wsgi3/pkg-message @@ -0,0 +1,5 @@ +================================================================================ + +For more information, see http://www.modwsgi.org/. + +================================================================================ diff --git a/www/mod_wsgi3/pkg-plist b/www/mod_wsgi3/pkg-plist new file mode 100644 index 000000000000..45d83308c5b6 --- /dev/null +++ b/www/mod_wsgi3/pkg-plist @@ -0,0 +1,5 @@ +@comment $FreeBSD$ +@unexec /usr/bin/sed -i '' '/LoadModule %%AP_NAME%%_module/d' %D/%%APACHEETCDIR%%/httpd.conf +%%APACHEMODDIR%%/%%AP_MODULE%% +@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %D/%F +@unexec echo "Don't forget to remove all mod_wsgi-related directives in your httpd.conf" |