diff options
Diffstat (limited to 'meta-openstack/recipes-support/mod-wsgi/mod-wsgi_3.4.bb')
| -rw-r--r-- | meta-openstack/recipes-support/mod-wsgi/mod-wsgi_3.4.bb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/mod-wsgi/mod-wsgi_3.4.bb b/meta-openstack/recipes-support/mod-wsgi/mod-wsgi_3.4.bb new file mode 100644 index 0000000..af0dd3d --- /dev/null +++ b/meta-openstack/recipes-support/mod-wsgi/mod-wsgi_3.4.bb | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | SUMMARY = "Supports the Python WSGI interface" | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | The aim of mod_wsgi is to implement a simple to use Apache module which can host \ | ||
| 4 | any Python application which supports the Python WSGI interface. The module would \ | ||
| 5 | be suitable for use in hosting high performance production web sites, as well as \ | ||
| 6 | your average self managed personal sites running on web hosting services." | ||
| 7 | |||
| 8 | HOMEPAGE = "http://code.google.com/p/modwsgi/" | ||
| 9 | LICENSE = "Apache-2.0" | ||
| 10 | LIC_FILES_CHKSUM = "file://LICENCE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 11 | |||
| 12 | SRCNAME = "mod_wsgi" | ||
| 13 | SRC_URI = "\ | ||
| 14 | http://modwsgi.googlecode.com/files/${SRCNAME}-${PV}.tar.gz \ | ||
| 15 | file://configure_var.patch \ | ||
| 16 | " | ||
| 17 | |||
| 18 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
| 19 | |||
| 20 | SRC_URI[md5sum] = "f42d69190ea0c337ef259cbe8d94d985" | ||
| 21 | SRC_URI[sha256sum] = "ae85c98e9e146840ab3c3e4490e6774f9bef0f99b9f679fca786b2adb5b4b6e8" | ||
| 22 | |||
| 23 | inherit autotools distutils-base | ||
| 24 | |||
| 25 | DEPENDS += "apache2-native apache2 python-native" | ||
| 26 | RDEPENDS = "python" | ||
| 27 | |||
| 28 | EXTRA_OECONF = "\ | ||
| 29 | --with-apxs=${STAGING_BINDIR_CROSS}/apxs \ | ||
| 30 | --disable-framework \ | ||
| 31 | PYTHON_VERSION=${PYTHON_BASEVERSION} \ | ||
| 32 | PYTHON_INCLUDEPY=-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \ | ||
| 33 | PYTHON_CFLAGS='-DNDEBUG' \ | ||
| 34 | PYTHON_LIBDIR=${STAGING_LIBDIR} \ | ||
| 35 | PYTHON_CFGDIR=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/config \ | ||
| 36 | PYTHON_FRAMEWORKDIR='no-framework' \ | ||
| 37 | PYTHON_FRAMEWORKPREFIX=' ' \ | ||
| 38 | PYTHON_FRAMEWORK=' ' \ | ||
| 39 | PYTHON_LIBS='-lpthread -ldl -lpthread -lutil' \ | ||
| 40 | PYTHON_SYSLIBS='-lm' \ | ||
| 41 | " | ||
| 42 | |||
| 43 | CFLAGS += " -I${STAGING_INCDIR}/apache2" | ||
| 44 | |||
| 45 | FILES_${PN} += "/etc/apache2/" | ||
| 46 | FILES_${PN}-dbg += "${libdir}/apache2/modules/.debug" | ||
| 47 | |||
| 48 | do_install_append() { | ||
| 49 | mkdir -p ${D}/etc/apache2/modules.d/ | ||
| 50 | echo "LoadModule wsgi_module ${libdir}/apache2/modules/mod_wsgi.so" > \ | ||
| 51 | ${D}/etc/apache2/modules.d/wsgi.load | ||
| 52 | } | ||
| 53 | |||
| 54 | # to load: | ||
| 55 | # LoadModule wsgi_module modules/mod_wsgi.so | ||
| 56 | |||
| 57 | # Apache/2.2.2 (Unix) mod_wsgi/1.0 Python/2.3 configured | ||
