wok-current view apache-mod-wsgi/receipt @ rev 9845
Add: apache-mod-wsgi'
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun May 15 23:51:51 2011 +0200 (2011-05-15) |
parents | |
children | 6020e5c397e2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-wsgi"
4 VERSION="3.3"
5 CATEGORY="network"
6 SHORT_DESC="Python WSGI adapter module for Apache."
7 MAINTAINER="erjo@slitaz.org"
8 WEB_SITE="http://code.google.com/p/modwsgi/"
9 SOURCE="mod_wsgi"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WGET_URL="http://modwsgi.googlecode.com/files/$TARBALL"
13 DEPENDS="apache python"
14 BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev python-dev sed acl acl-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure
20 sed -i -e "s!^DESTDIR =!DESTDIR = $WOK/$PACKAGE/install! " Makefile
21 make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/etc/apache/extra
28 cp -a $install/* $fs
29 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
30 }
32 post_install()
33 {
34 # Enable WSGI module
35 echo "# Python WSGI module" >> $1/etc/apache/httpd.conf
36 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> $1/etc/apache/httpd.conf
37 }
39 post_remove()
40 {
41 # Remove WSGI configuration
42 sed -i s/\# Python.*// $1/etc/apache/httpd.conf
43 sed -i s/.*httpd-mod-wsgi.conf// $1/etc/apache/httpd.conf
44 }