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

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 11:24:03 2023 +0000 (10 months ago)
parents 079c61a21362
children 096ad9edc98b
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 # 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 }