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

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents d958fec46c9f
children
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="devel@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 }