wok-6.x view apache-mod-wsgi/receipt @ rev 15253
valgrind: remove wrong error trigger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 23 19:22:50 2013 +0000 (2013-09-23) |
parents | 6020e5c397e2 |
children | 191b99ca9dc2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-wsgi"
4 VERSION="3.4"
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 }