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

updated apache-mod-wsgi (4.6.5 -> 4.9.0)
author Hans-G?nter Theisgen
date Tue Jun 28 16:29:10 2022 +0100 (22 months ago)
parents 5ea0ce1cecc0
children 343c093ad221
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"
10 REPOLOGY="apmod:wsgi"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
15 DEPENDS="apache python"
16 BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev apr-util-dev python-dev sed"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure --prefix=/usr &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/etc/apache/extra
37 cp -a $install/* $fs
38 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
39 }
41 post_install()
42 {
43 # Enable WSGI module
44 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
45 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> "$1/etc/apache/httpd.conf"
46 }
48 post_remove()
49 {
50 # Remove WSGI configuration
51 sed -i -e s/\# Python.*// \
52 -e s/.*httpd-mod-wsgi.conf// \
53 "$1/etc/apache/httpd.conf"
54 }