wok-6.x view apache-mod-wsgi/receipt @ rev 10705
libgd: build /usr/bin/gdlib-config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 28 12:40:01 2011 +0200 (2011-05-28) |
parents | d996f3dd694e |
children | 55489d2f9985 |
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 cd $src
20 ./configure
21 sed -i -e "s!^DESTDIR =!DESTDIR = $WOK/$PACKAGE/install! " Makefile
22 make && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/etc/apache/extra
29 cp -a $install/* $fs
30 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
31 }
33 post_install()
34 {
35 # Enable WSGI module
36 echo "# Python WSGI module" >> $1/etc/apache/httpd.conf
37 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> $1/etc/apache/httpd.conf
38 }
40 post_remove()
41 {
42 # Remove WSGI configuration
43 sed -i s/\# Python.*// $1/etc/apache/httpd.conf
44 sed -i s/.*httpd-mod-wsgi.conf// $1/etc/apache/httpd.conf
45 }