wok-current annotate apache-mod-wsgi/receipt @ rev 25634

Mass update, new toolchain gcc 8.3.0, glibc 2.28.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Jan 14 08:12:37 2024 +0000 (20 months ago)
parents 079c61a21362
children 5926178cd6fa
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"
shann@25634 16 BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev \
shann@25634 17 apr-util-dev python-dev sed"
erjo@9845 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;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 }