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

slitaz-base-files: set correct SLITAZ_ARCH in slitaz.conf (affected x86_64) - thanks shann
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Aug 10 15:39:58 2018 +0300 (2018-08-10)
parents dc626da69d4e
children d5aab818505e
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"
10 REPOLOGY="apmod:wsgi"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/GrahamDumpleton/mod_wsgi/archive/$VERSION.tar.gz"
15 BUILD_DEPENDS="apache-dev perl apr-dev apr-util-dev python-dev"
17 compile_rules() {
18 ./configure $CONFIGURE_ARGS &&
19 make &&
20 make install || return 1
22 install -Dm644 $stuff/httpd-mod-wsgi.conf \
23 $install/etc/apache/extra/httpd-mod-wsgi.conf
24 }
26 genpkg_rules() {
27 copy @std
28 DEPENDS="apache python"
29 }
31 post_install() {
32 # Enable WSGI module
33 cat >> "$1/etc/apache/httpd.conf" <<EOT
34 # Python WSGI module
35 Include /etc/apache/extra/httpd-mod-wsgi.conf
36 EOT
37 }
39 post_remove() {
40 # Remove WSGI configuration
41 sed -i '/# Python WSGI module/d; /.*httpd-mod-wsgi.conf/d' \
42 "$1/etc/apache/httpd.conf"
43 }