wok annotate 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
rev   line source
erjo@9845 1 # SliTaz package receipt.
erjo@9845 2
erjo@9845 3 PACKAGE="apache-mod-wsgi"
Hans-G?nter@22486 4 VERSION="4.6.5"
erjo@9845 5 CATEGORY="network"
erjo@9845 6 SHORT_DESC="Python WSGI adapter module for Apache."
erjo@9845 7 MAINTAINER="erjo@slitaz.org"
pascal@15361 8 LICENSE="Apache"
hackdorte@20007 9 WEB_SITE="https://github.com/GrahamDumpleton/mod_wsgi"
Hans-G?nter@25125 10 REPOLOGY="apmod:wsgi"
Hans-G?nter@22486 11
Hans-G?nter@22486 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22486 13 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
erjo@9845 14
erjo@9845 15 DEPENDS="apache python"
Hans-G?nter@22486 16 BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev apr-util-dev python-dev sed"
erjo@9845 17
pascal@25597 18 # What is the latest version available today?
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25597 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 23 }
pascal@24055 24
erjo@9845 25 # Rules to configure and make the package.
erjo@9845 26 compile_rules()
erjo@9845 27 {
Hans-G?nter@22486 28 ./configure --prefix=/usr &&
Hans-G?nter@22486 29 make &&
Hans-G?nter@22486 30 make install
erjo@9845 31 }
erjo@9845 32
erjo@9845 33 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@9845 34 genpkg_rules()
erjo@9845 35 {
erjo@9845 36 mkdir -p $fs/etc/apache/extra
Hans-G?nter@22486 37
Hans-G?nter@22486 38 cp -a $install/* $fs
Hans-G?nter@22486 39 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
erjo@9845 40 }
erjo@9845 41
erjo@9845 42 post_install()
erjo@9845 43 {
Hans-G?nter@22486 44 # Enable WSGI module
Hans-G?nter@22486 45 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
Hans-G?nter@22486 46 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> "$1/etc/apache/httpd.conf"
erjo@9845 47 }
erjo@9845 48
erjo@9845 49 post_remove()
erjo@9845 50 {
Hans-G?nter@22486 51 # Remove WSGI configuration
Hans-G?nter@25125 52 sed -i -e s/\# Python.*// \
Hans-G?nter@25125 53 -e s/.*httpd-mod-wsgi.conf// \
Hans-G?nter@25125 54 "$1/etc/apache/httpd.conf"
erjo@9845 55 }