[PATCH] www/py-django: Add FastCGI support

Li-Wen Hsu lwhsu at lwhsu.org
Sun Feb 11 21:51:58 UTC 2007


>Submitter-Id:	current-users
>Originator:	Li-Wen Hsu
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] www/py-django: Add FastCGI support
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 6.2-STABLE i386
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007
>Description:
-Add FastCGI support

Port maintainer (python at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py24-django-0.95_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/py-django/Makefile /home/lwhsu/ports/www/py-django/Makefile
--- /usr/ports/www/py-django/Makefile	Sat Nov 18 02:07:44 2006
+++ /home/lwhsu/ports/www/py-django/Makefile	Mon Feb 12 05:43:48 2007
@@ -7,7 +7,7 @@
 
 PORTNAME?=	django
 PORTVERSION?=	0.95
-PORTREVISION?=	1
+PORTREVISION?=	2
 CATEGORIES=	www python
 MASTER_SITES?=	http://media.djangoproject.com/releases/${PORTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -32,7 +32,8 @@
 OPTIONS=	MOD_PYTHON3	"Install Apache2 with mod_python3"	off \
 		POSTGRESQL	"PostgreSQL support"	off \
 		MYSQL	"MySQL support"	off \
-		SQLITE	"SQLite support"	off
+		SQLITE	"SQLite support"	off \
+		FASTCGI	"FastCGI support"	off
 
 # bypass infrastructure bug
 OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
@@ -53,6 +54,11 @@
 
 .if defined(WITH_SQLITE)
 RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
+.endif
+
+.if defined(WITH_FASTCGI)
+PYFLUP_EGG!=	${MAKE} -f ${PORTSDIR}/www/py-flup/Makefile -V PYFLUP_EGG
+RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/${PYFLUP_EGG}/flup/__init__.py:${PORTSDIR}/www/py-flup
 .endif
 
 post-install:
--- py24-django-0.95_2.patch ends here ---



More information about the freebsd-python mailing list