wok-next annotate apache-mod-wsgi/receipt @ rev 21693
updated go-bin (1.10.2 -> 1.14.4)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 30 15:23:03 2020 +0100 (2020-06-30) |
parents | d958fec46c9f |
children |
rev | line source |
---|---|
al@20797 | 1 # SliTaz package receipt v2. |
erjo@9845 | 2 |
erjo@9845 | 3 PACKAGE="apache-mod-wsgi" |
al@20797 | 4 VERSION="4.6.4" |
erjo@9845 | 5 CATEGORY="network" |
al@20797 | 6 SHORT_DESC="Python WSGI adapter module for Apache" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@20797 | 8 LICENSE="Apache2" |
al@20797 | 9 WEB_SITE="https://github.com/GrahamDumpleton/mod_wsgi" |
al@20882 | 10 REPOLOGY="apmod:wsgi" |
erjo@9845 | 11 |
al@20797 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20797 | 13 WGET_URL="https://github.com/GrahamDumpleton/mod_wsgi/archive/$VERSION.tar.gz" |
erjo@9845 | 14 |
al@20797 | 15 BUILD_DEPENDS="apache-dev perl apr-dev apr-util-dev python-dev" |
al@20797 | 16 |
al@20797 | 17 compile_rules() { |
al@20797 | 18 ./configure $CONFIGURE_ARGS && |
al@20797 | 19 make && |
al@20797 | 20 make install || return 1 |
al@20797 | 21 |
al@20797 | 22 install -Dm644 $stuff/httpd-mod-wsgi.conf \ |
al@20797 | 23 $install/etc/apache/extra/httpd-mod-wsgi.conf |
erjo@9845 | 24 } |
erjo@9845 | 25 |
al@20797 | 26 genpkg_rules() { |
al@20797 | 27 copy @std |
al@20797 | 28 DEPENDS="apache python" |
erjo@9845 | 29 } |
erjo@9845 | 30 |
al@20797 | 31 post_install() { |
al@20797 | 32 # Enable WSGI module |
al@20797 | 33 cat >> "$1/etc/apache/httpd.conf" <<EOT |
al@20797 | 34 # Python WSGI module |
al@20797 | 35 Include /etc/apache/extra/httpd-mod-wsgi.conf |
al@20797 | 36 EOT |
erjo@9845 | 37 } |
erjo@9845 | 38 |
al@20797 | 39 post_remove() { |
al@20797 | 40 # Remove WSGI configuration |
al@20797 | 41 sed -i '/# Python WSGI module/d; /.*httpd-mod-wsgi.conf/d' \ |
al@20797 | 42 "$1/etc/apache/httpd.conf" |
erjo@9845 | 43 } |