diff options
| author | Andrew Manison <amanison@anselsystems.com> | 2011-04-20 03:39:27 +0000 |
|---|---|---|
| committer | Andrew Manison <amanison@anselsystems.com> | 2011-04-20 03:39:27 +0000 |
| commit | 9a2ff063f6ba0dcec5b6a40e3a6cccc04fcceed3 (patch) | |
| tree | 4a2365a18cfc123567f122dbb0510795ca4341ba /testing/apache2-mod-wsgi | |
| parent | 3a40028e50c4e6ab82135d469de4ae8ccb32f7d3 (diff) | |
| parent | 983a11e3031ce51a0c7b0ded0d48713d48474522 (diff) | |
| download | aports-9a2ff063f6ba0dcec5b6a40e3a6cccc04fcceed3.tar.bz2 aports-9a2ff063f6ba0dcec5b6a40e3a6cccc04fcceed3.tar.xz | |
Merge remote-tracking branch 'alpine/master'
Conflicts:
main/libxft/APKBUILD
main/ncftp/APKBUILD
main/spandsp/APKBUILD
testing/openvcp/APKBUILD
Diffstat (limited to 'testing/apache2-mod-wsgi')
| -rw-r--r-- | testing/apache2-mod-wsgi/APKBUILD | 51 | ||||
| -rw-r--r-- | testing/apache2-mod-wsgi/apache2-mod-wsgi.apache2.conf | 1 | ||||
| -rw-r--r-- | testing/apache2-mod-wsgi/apache2-mod-wsgi.post-install | 10 |
3 files changed, 62 insertions, 0 deletions
diff --git a/testing/apache2-mod-wsgi/APKBUILD b/testing/apache2-mod-wsgi/APKBUILD new file mode 100644 index 000000000..89c04f2c2 --- /dev/null +++ b/testing/apache2-mod-wsgi/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Matt Smith <mcs@darkregion.net> +# Maintainer: Matt Smith <mcs@darkregion.net> +pkgname=apache2-mod-wsgi +_realname=mod_wsgi +pkgver=3.3 +pkgrel=1 +pkgdesc="Python WSGI Module for Apache2" +url="http://code.google.com/p/modwsgi/" +arch="all" +license="APACHE" +depends="apache2 python" +depends_dev= +makedepends="$depends_dev apache2-dev python-dev" +install="$pkgname.post-install" +subpackages="$pkgname-doc" +source="http://modwsgi.googlecode.com/files/$_realname-$pkgver.tar.gz + $pkgname.apache2.conf + " + +_builddir="$srcdir"/$_realname-$pkgver +build() { + cd "$_builddir" + CFLAGS="" CXXFLAGS="" CPPFLAGS="" \ + ./configure --prefix=/usr \ + --with-apxs=/usr/sbin/apxs \ + --with-python=/usr/bin/python || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + + # install the apache2 config + install -Dm644 "$srcdir"/$pkgname.apache2.conf \ + "$pkgdir"/etc/apache2/conf.d/wsgi-module.conf || return 1 +} + +doc() { + arch="noarch" + + # doc files + _docs="LICENCE README" + for _doc in $_docs; do + install -Dm644 "$_builddir"/$_doc \ + "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1 + done +} + +md5sums="6172bb2bbabcd0c25867c2bc06f99dbb mod_wsgi-3.3.tar.gz +e1795e051e7aae1f865fde0d3b86a507 apache2-mod-wsgi.apache2.conf" diff --git a/testing/apache2-mod-wsgi/apache2-mod-wsgi.apache2.conf b/testing/apache2-mod-wsgi/apache2-mod-wsgi.apache2.conf new file mode 100644 index 000000000..19f356756 --- /dev/null +++ b/testing/apache2-mod-wsgi/apache2-mod-wsgi.apache2.conf @@ -0,0 +1 @@ +LoadModule wsgi_module modules/mod_wsgi.so diff --git a/testing/apache2-mod-wsgi/apache2-mod-wsgi.post-install b/testing/apache2-mod-wsgi/apache2-mod-wsgi.post-install new file mode 100644 index 000000000..327b0156b --- /dev/null +++ b/testing/apache2-mod-wsgi/apache2-mod-wsgi.post-install @@ -0,0 +1,10 @@ +#!/bin/sh + +echo "*" >&2 +echo "* To finish installing apache2-mod-wsgi:" >&2 +echo "* 1) See if you need to modify the apache2 config:" >&2 +echo "* /etc/apache2/conf.d/wsgi-module.conf" >&2 +echo "* 2) Restart apache2 when done." >&2 +echo "*" >&2 + +exit 0 |
