wok annotate apache-mod-wsgi/receipt @ rev 13208
postgis: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 06 15:22:20 2012 +0200 (2012-08-06) |
parents | d996f3dd694e |
children | 55489d2f9985 |
rev | line source |
---|---|
erjo@9845 | 1 # SliTaz package receipt. |
erjo@9845 | 2 |
erjo@9845 | 3 PACKAGE="apache-mod-wsgi" |
erjo@9845 | 4 VERSION="3.3" |
erjo@9845 | 5 CATEGORY="network" |
erjo@9845 | 6 SHORT_DESC="Python WSGI adapter module for Apache." |
erjo@9845 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@9845 | 8 WEB_SITE="http://code.google.com/p/modwsgi/" |
erjo@9845 | 9 SOURCE="mod_wsgi" |
erjo@9845 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
erjo@9845 | 11 WGET_URL="http://modwsgi.googlecode.com/files/$TARBALL" |
erjo@9845 | 12 |
erjo@9845 | 13 DEPENDS="apache python" |
erjo@9845 | 14 BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev python-dev sed acl acl-dev" |
erjo@9845 | 15 |
erjo@9845 | 16 # Rules to configure and make the package. |
erjo@9845 | 17 compile_rules() |
erjo@9845 | 18 { |
slaxemulator@9846 | 19 cd $src |
erjo@9845 | 20 ./configure |
erjo@9845 | 21 sed -i -e "s!^DESTDIR =!DESTDIR = $WOK/$PACKAGE/install! " Makefile |
erjo@9845 | 22 make && make install |
erjo@9845 | 23 } |
erjo@9845 | 24 |
erjo@9845 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@9845 | 26 genpkg_rules() |
erjo@9845 | 27 { |
erjo@9845 | 28 mkdir -p $fs/etc/apache/extra |
erjo@9845 | 29 cp -a $install/* $fs |
erjo@9845 | 30 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra |
erjo@9845 | 31 } |
erjo@9845 | 32 |
erjo@9845 | 33 post_install() |
erjo@9845 | 34 { |
erjo@9845 | 35 # Enable WSGI module |
erjo@9845 | 36 echo "# Python WSGI module" >> $1/etc/apache/httpd.conf |
erjo@9845 | 37 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> $1/etc/apache/httpd.conf |
erjo@9845 | 38 } |
erjo@9845 | 39 |
erjo@9845 | 40 post_remove() |
erjo@9845 | 41 { |
erjo@9845 | 42 # Remove WSGI configuration |
erjo@9845 | 43 sed -i s/\# Python.*// $1/etc/apache/httpd.conf |
erjo@9845 | 44 sed -i s/.*httpd-mod-wsgi.conf// $1/etc/apache/httpd.conf |
erjo@9845 | 45 } |