wok-next view apache-mod-wsgi/receipt @ rev 20806
I. node update: security -> https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/ 9.5.0 -> 9.11.2 II. add checksum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 08:26:54 2018 +0000 (2018-06-13) |
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 }