diff options
author | Matt Smith <mcs@darkregion.net> | 2011-04-12 05:30:00 -0500 |
---|---|---|
committer | Matt Smith <mcs@darkregion.net> | 2011-04-12 05:30:00 -0500 |
commit | 6288394c61a6a6af98b1eb40e20e1f3ccf6c850e (patch) | |
tree | 1965de25fbe3c9168833cfa5fa05bf437f4f39d3 | |
parent | c3833d0cb48b3282425065ccf6d59d96ee60a54e (diff) | |
download | alpine_aports-6288394c61a6a6af98b1eb40e20e1f3ccf6c850e.tar.bz2 alpine_aports-6288394c61a6a6af98b1eb40e20e1f3ccf6c850e.tar.xz alpine_aports-6288394c61a6a6af98b1eb40e20e1f3ccf6c850e.zip |
testing/apache2-mod-wsgi: new aport (rebuild; pkgrel -r1)
Python WSGI Module for Apache2
http://code.google.com/p/modwsgi/
-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 0000000000..89c04f2c24 --- /dev/null +++ b/testing/apache2-mod-wsgi/APKBUILD | |||
@@ -0,0 +1,51 @@ | |||
1 | # Contributor: Matt Smith <mcs@darkregion.net> | ||
2 | # Maintainer: Matt Smith <mcs@darkregion.net> | ||
3 | pkgname=apache2-mod-wsgi | ||
4 | _realname=mod_wsgi | ||
5 | pkgver=3.3 | ||
6 | pkgrel=1 | ||
7 | pkgdesc="Python WSGI Module for Apache2" | ||
8 | url="http://code.google.com/p/modwsgi/" | ||
9 | arch="all" | ||
10 | license="APACHE" | ||
11 | depends="apache2 python" | ||
12 | depends_dev= | ||
13 | makedepends="$depends_dev apache2-dev python-dev" | ||
14 | install="$pkgname.post-install" | ||
15 | subpackages="$pkgname-doc" | ||
16 | source="http://modwsgi.googlecode.com/files/$_realname-$pkgver.tar.gz | ||
17 | $pkgname.apache2.conf | ||
18 | " | ||
19 | |||
20 | _builddir="$srcdir"/$_realname-$pkgver | ||
21 | build() { | ||
22 | cd "$_builddir" | ||
23 | CFLAGS="" CXXFLAGS="" CPPFLAGS="" \ | ||
24 | ./configure --prefix=/usr \ | ||
25 | --with-apxs=/usr/sbin/apxs \ | ||
26 | --with-python=/usr/bin/python || return 1 | ||
27 | make || return 1 | ||
28 | } | ||
29 | |||
30 | package() { | ||
31 | cd "$_builddir" | ||
32 | make DESTDIR="$pkgdir" install || return 1 | ||
33 | |||
34 | # install the apache2 config | ||
35 | install -Dm644 "$srcdir"/$pkgname.apache2.conf \ | ||
36 | "$pkgdir"/etc/apache2/conf.d/wsgi-module.conf || return 1 | ||
37 | } | ||
38 | |||
39 | doc() { | ||
40 | arch="noarch" | ||
41 | |||
42 | # doc files | ||
43 | _docs="LICENCE README" | ||
44 | for _doc in $_docs; do | ||
45 | install -Dm644 "$_builddir"/$_doc \ | ||
46 | "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1 | ||
47 | done | ||
48 | } | ||
49 | |||
50 | md5sums="6172bb2bbabcd0c25867c2bc06f99dbb mod_wsgi-3.3.tar.gz | ||
51 | 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 0000000000..19f356756b --- /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 0000000000..327b0156b9 --- /dev/null +++ b/testing/apache2-mod-wsgi/apache2-mod-wsgi.post-install | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | echo "*" >&2 | ||
4 | echo "* To finish installing apache2-mod-wsgi:" >&2 | ||
5 | echo "* 1) See if you need to modify the apache2 config:" >&2 | ||
6 | echo "* /etc/apache2/conf.d/wsgi-module.conf" >&2 | ||
7 | echo "* 2) Restart apache2 when done." >&2 | ||
8 | echo "*" >&2 | ||
9 | |||
10 | exit 0 | ||