wok-next view apache-mod-wsgi/receipt @ rev 20797

alien: up (8.95), androguard: up (3.2.0), apache-mod-wsgi: up (4.6.4), apng2gif: up (1.8), apngdis: up (2.9), aqualung: up (1.0+20170926)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 11 15:37:34 2018 +0300 (2018-06-11)
parents 9e01bc6321ea
children d958fec46c9f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="apache-mod-wsgi"
4 VERSION="4.6.4"
5 CATEGORY="network"
6 SHORT_DESC="Python WSGI adapter module for Apache"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="Apache2"
9 WEB_SITE="https://github.com/GrahamDumpleton/mod_wsgi"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/GrahamDumpleton/mod_wsgi/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="apache-dev perl apr-dev apr-util-dev python-dev"
16 compile_rules() {
17 ./configure $CONFIGURE_ARGS &&
18 make &&
19 make install || return 1
21 install -Dm644 $stuff/httpd-mod-wsgi.conf \
22 $install/etc/apache/extra/httpd-mod-wsgi.conf
23 }
25 genpkg_rules() {
26 copy @std
27 DEPENDS="apache python"
28 }
30 post_install() {
31 # Enable WSGI module
32 cat >> "$1/etc/apache/httpd.conf" <<EOT
33 # Python WSGI module
34 Include /etc/apache/extra/httpd-mod-wsgi.conf
35 EOT
36 }
38 post_remove() {
39 # Remove WSGI configuration
40 sed -i '/# Python WSGI module/d; /.*httpd-mod-wsgi.conf/d' \
41 "$1/etc/apache/httpd.conf"
42 }