wok view apache-mod-wsgi/receipt @ rev 23375

updated perl-net-ip (1.25 -> 1.26)
author Hans-G?nter Theisgen
date Tue Mar 31 13:57:30 2020 +0100 (2020-03-31)
parents 03509d491272
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-wsgi"
4 VERSION="4.6.5"
5 CATEGORY="network"
6 SHORT_DESC="Python WSGI adapter module for Apache."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/GrahamDumpleton/mod_wsgi"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="apache python"
15 BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev apr-util-dev python-dev sed"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --prefix=/usr &&
21 make &&
22 make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/etc/apache/extra
30 cp -a $install/* $fs
31 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
32 }
34 post_install()
35 {
36 # Enable WSGI module
37 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
38 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> "$1/etc/apache/httpd.conf"
39 }
41 post_remove()
42 {
43 # Remove WSGI configuration
44 sed -i s/\# Python.*// "$1/etc/apache/httpd.conf"
45 sed -i s/.*httpd-mod-wsgi.conf// "$1/etc/apache/httpd.conf"
46 }