[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[new] www/mod_python



Hi porters,

here is a new port, www/mod_python:

pkg/DESCR:
----------
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 anc access to Apache internals.

I also attach a patch for lang/python/Makefile.inc. Why?
Because in our port python is compiled by default --with-threads, which 
Apache does not support --> mod_python won't work.

Tell me if I did it the right way, or provide me with another option.

Thanks in advance.

cheers.

- xavier. 

-- 
   xavier.santolaria -- (xavier@santolaria.net|xsa@bsdcow.net)

mod_python-2.7.8.tgz

Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/lang/python/Makefile.inc,v
retrieving revision 1.8
diff -u -r1.8 Makefile.inc
--- Makefile.inc	8 Oct 2002 02:52:25 -0000	1.8
+++ Makefile.inc	18 May 2003 17:23:31 -0000
@@ -32,7 +32,7 @@
 PERMIT_DISTFILES_CDROM=	Yes
 PERMIT_DISTFILES_FTP=	Yes
 
-FLAVORS=	no_mpz no_tkinter no_expat
+FLAVORS=	no_mpz no_tkinter no_expat no_threads
 FLAVOR?=
 
 MULTI_PACKAGES=	-tests -tools
@@ -111,7 +111,13 @@
 
 CONFIGURE_STYLE= autoconf dest
 CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
-CONFIGURE_ARGS+= --with-fpectl --with-threads --without-pymalloc
+CONFIGURE_ARGS+= --with-fpectl --without-pymalloc
+
+.if empty(FLAVOR:L:Mno_threads)
+CONFIGURE_ARGS+= --with-threads
+.else
+CONFIGURE_ARGS+= --without-threads
+.endif
 
 REGRESS_TARGET=	test
 

PGP signature