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

Up advancecomp (2.6), apache (2.4.58), apache-mod-perl (2.0.13), apache-mod-wsgi (5.0.0), apr (1.7.4), awstats (7.9), gzip (1.13), zbar (0.23.93), zlib (1.3.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 24 19:18:54 2024 +0000 (2 months ago)
parents 343c093ad221
children
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-wsgi"
4 VERSION="5.0.0"
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure --prefix=/usr &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc/apache/extra
38 cp -a $install/* $fs
39 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
40 }
42 post_install()
43 {
44 # Enable WSGI module
45 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
46 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> "$1/etc/apache/httpd.conf"
47 }
49 post_remove()
50 {
51 # Remove WSGI configuration
52 sed -i -e s/\# Python.*// \
53 -e s/.*httpd-mod-wsgi.conf// \
54 "$1/etc/apache/httpd.conf"
55 }