wok-next annotate apache-mod-wsgi/receipt @ rev 20199

Up firmware (fix some multiline or empty descriptions), gettext, gtk-theme-blackbird, libmpd, libmpdclient, openbox & openbox-max (keep default Clearlooks theme), xfce4-icon-theme, xfce4-taskmanager, xfmpc. terminal -> xfce4-terminal, xfce4-ristretto -> ristretto (weird, but we agreed to call packages according to sources tarballs).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 03 16:28:49 2017 +0200 (2017-11-03)
parents 191b99ca9dc2
children dc626da69d4e
rev   line source
erjo@9845 1 # SliTaz package receipt.
erjo@9845 2
erjo@9845 3 PACKAGE="apache-mod-wsgi"
pascal@15129 4 VERSION="3.4"
erjo@9845 5 CATEGORY="network"
erjo@9845 6 SHORT_DESC="Python WSGI adapter module for Apache."
erjo@9845 7 MAINTAINER="erjo@slitaz.org"
pascal@15361 8 LICENSE="Apache"
erjo@9845 9 WEB_SITE="http://code.google.com/p/modwsgi/"
erjo@9845 10 SOURCE="mod_wsgi"
erjo@9845 11 TARBALL="$SOURCE-$VERSION.tar.gz"
erjo@9845 12 WGET_URL="http://modwsgi.googlecode.com/files/$TARBALL"
erjo@9845 13
erjo@9845 14 DEPENDS="apache python"
erjo@9845 15 BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev python-dev sed acl acl-dev"
erjo@9845 16
erjo@9845 17 # Rules to configure and make the package.
erjo@9845 18 compile_rules()
erjo@9845 19 {
slaxemulator@9846 20 cd $src
erjo@9845 21 ./configure
erjo@9845 22 sed -i -e "s!^DESTDIR =!DESTDIR = $WOK/$PACKAGE/install! " Makefile
erjo@9845 23 make && make install
erjo@9845 24 }
erjo@9845 25
erjo@9845 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@9845 27 genpkg_rules()
erjo@9845 28 {
erjo@9845 29 mkdir -p $fs/etc/apache/extra
erjo@9845 30 cp -a $install/* $fs
erjo@9845 31 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
erjo@9845 32 }
erjo@9845 33
erjo@9845 34 post_install()
erjo@9845 35 {
erjo@9845 36 # Enable WSGI module
pascal@18730 37 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
pascal@18730 38 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> "$1/etc/apache/httpd.conf"
erjo@9845 39 }
erjo@9845 40
erjo@9845 41 post_remove()
erjo@9845 42 {
erjo@9845 43 # Remove WSGI configuration
pascal@18730 44 sed -i s/\# Python.*// "$1/etc/apache/httpd.conf"
pascal@18730 45 sed -i s/.*httpd-mod-wsgi.conf// "$1/etc/apache/httpd.conf"
erjo@9845 46 }