diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/mod_wsgi |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/mod_wsgi')
-rw-r--r-- | extra/mod_wsgi/PKGBUILD | 29 | ||||
-rw-r--r-- | extra/mod_wsgi/mod_wsgi.install | 14 |
2 files changed, 43 insertions, 0 deletions
diff --git a/extra/mod_wsgi/PKGBUILD b/extra/mod_wsgi/PKGBUILD new file mode 100644 index 000000000..293fcc9d5 --- /dev/null +++ b/extra/mod_wsgi/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 102102 2010-12-06 00:38:58Z ibiru $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Ryan Coyner <rcoyner@gmail.com> + +pkgname=mod_wsgi +pkgver=3.3 +pkgrel=2 +pkgdesc="Python WSGI adapter module for Apache" +arch=('i686' 'x86_64') +url="http://www.modwsgi.org/" +license=('APACHE') +depends=('apache' 'python2') +install=mod_wsgi.install +source=(http://modwsgi.googlecode.com/files/${pkgname}-${pkgver}.tar.gz) +md5sums=('6172bb2bbabcd0c25867c2bc06f99dbb') +sha1sums=('f32d38e5d3ed5de1efd5abefb52678f833dc9166') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr \ + --with-apxs=/usr/sbin/apxs \ + --with-python=/usr/bin/python2 + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/extra/mod_wsgi/mod_wsgi.install b/extra/mod_wsgi/mod_wsgi.install new file mode 100644 index 000000000..d26d61631 --- /dev/null +++ b/extra/mod_wsgi/mod_wsgi.install @@ -0,0 +1,14 @@ +post_install() { +/bin/cat << ENDOFMESSAGE +==> +==> +==> To install mod_wsgi, add the following line in +==> /etc/httpd/conf/httpd.conf file : +==> +==> LoadModule wsgi_module modules/mod_wsgi.so +==> +==> and restart/reload Apache. +==> +==> +ENDOFMESSAGE +} |