blob: 4670eb8c2de9a7f530b70d48ae876c722222910f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=apache2-mod-wsgi
_realname=mod_wsgi
pkgver=3.4
pkgrel=0
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/bin/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="f42d69190ea0c337ef259cbe8d94d985 mod_wsgi-3.4.tar.gz
e1795e051e7aae1f865fde0d3b86a507 apache2-mod-wsgi.apache2.conf"
sha256sums="ae85c98e9e146840ab3c3e4490e6774f9bef0f99b9f679fca786b2adb5b4b6e8 mod_wsgi-3.4.tar.gz
8196a509f90fa10b9464d1c58f4a13d558259e863ccc2761ee1e2c2fcd323f45 apache2-mod-wsgi.apache2.conf"
sha512sums="55b5a4fc4553f4a41fa064062c9f15800c493ff50397399ef053398920333b92290118fd920d1179d153b8602ec169c3919bec51f8f7f9f28223580dd01c472c mod_wsgi-3.4.tar.gz
5b36a458bd3539e58ea61ec405c4f5c5e0001a644263b0e1f8421a5c7fc7884b6df1355674a9d9b610780b5e9db6ce66d0ae1bbc0e512ecb027c3757209152c8 apache2-mod-wsgi.apache2.conf"
|