wok annotate apache-mod-wsgi/receipt @ rev 25359
updated tinyssh (20210601 -> 20220311)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 27 08:03:11 2022 +0100 (2022-07-27) |
parents | 5ea0ce1cecc0 |
children | 343c093ad221 |
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@25125 | 10 REPOLOGY="apmod:wsgi" |
Hans-G?nter@22486 | 11 |
Hans-G?nter@22486 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22486 | 13 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
erjo@9845 | 14 |
erjo@9845 | 15 DEPENDS="apache python" |
Hans-G?nter@22486 | 16 BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev apr-util-dev python-dev sed" |
erjo@9845 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
erjo@9845 | 24 # Rules to configure and make the package. |
erjo@9845 | 25 compile_rules() |
erjo@9845 | 26 { |
Hans-G?nter@22486 | 27 ./configure --prefix=/usr && |
Hans-G?nter@22486 | 28 make && |
Hans-G?nter@22486 | 29 make install |
erjo@9845 | 30 } |
erjo@9845 | 31 |
erjo@9845 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@9845 | 33 genpkg_rules() |
erjo@9845 | 34 { |
erjo@9845 | 35 mkdir -p $fs/etc/apache/extra |
Hans-G?nter@22486 | 36 |
Hans-G?nter@22486 | 37 cp -a $install/* $fs |
Hans-G?nter@22486 | 38 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra |
erjo@9845 | 39 } |
erjo@9845 | 40 |
erjo@9845 | 41 post_install() |
erjo@9845 | 42 { |
Hans-G?nter@22486 | 43 # Enable WSGI module |
Hans-G?nter@22486 | 44 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf" |
Hans-G?nter@22486 | 45 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> "$1/etc/apache/httpd.conf" |
erjo@9845 | 46 } |
erjo@9845 | 47 |
erjo@9845 | 48 post_remove() |
erjo@9845 | 49 { |
Hans-G?nter@22486 | 50 # Remove WSGI configuration |
Hans-G?nter@25125 | 51 sed -i -e s/\# Python.*// \ |
Hans-G?nter@25125 | 52 -e s/.*httpd-mod-wsgi.conf// \ |
Hans-G?nter@25125 | 53 "$1/etc/apache/httpd.conf" |
erjo@9845 | 54 } |