wok annotate apache-mod-wsgi/receipt @ rev 22524

updated azpainter (2.1.3 -> 2.1.5)
author Hans-G?nter Theisgen
date Thu Jan 02 15:37:23 2020 +0100 (2020-01-02)
parents 03509d491272
children 5ea0ce1cecc0
rev   line source
erjo@9845 1 # SliTaz package receipt.
erjo@9845 2
erjo@9845 3 PACKAGE="apache-mod-wsgi"
Hans-G?nter@22486 4 VERSION="4.6.5"
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"
hackdorte@20007 9 WEB_SITE="https://github.com/GrahamDumpleton/mod_wsgi"
Hans-G?nter@22486 10
Hans-G?nter@22486 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22486 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
erjo@9845 13
erjo@9845 14 DEPENDS="apache python"
Hans-G?nter@22486 15 BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev apr-util-dev python-dev sed"
erjo@9845 16
erjo@9845 17 # Rules to configure and make the package.
erjo@9845 18 compile_rules()
erjo@9845 19 {
Hans-G?nter@22486 20 ./configure --prefix=/usr &&
Hans-G?nter@22486 21 make &&
Hans-G?nter@22486 22 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
Hans-G?nter@22486 29
Hans-G?nter@22486 30 cp -a $install/* $fs
Hans-G?nter@22486 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 {
Hans-G?nter@22486 36 # Enable WSGI module
Hans-G?nter@22486 37 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
Hans-G?nter@22486 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 {
Hans-G?nter@22486 43 # Remove WSGI configuration
Hans-G?nter@22486 44 sed -i s/\# Python.*// "$1/etc/apache/httpd.conf"
Hans-G?nter@22486 45 sed -i s/.*httpd-mod-wsgi.conf// "$1/etc/apache/httpd.conf"
erjo@9845 46 }