wok rev 22486

updated apache-mod-wsgi (3.4 -> 4.6.5)
author Hans-G?nter Theisgen
date Mon Dec 30 17:42:26 2019 +0100 (2019-12-30)
parents 637a2ffc4fa0
children ae1c8d5e635b
files apache-mod-wsgi/receipt
line diff
     1.1 --- a/apache-mod-wsgi/receipt	Mon Dec 30 17:22:25 2019 +0100
     1.2 +++ b/apache-mod-wsgi/receipt	Mon Dec 30 17:42:26 2019 +0100
     1.3 @@ -1,46 +1,46 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="apache-mod-wsgi"
     1.7 -VERSION="3.4"
     1.8 +VERSION="4.6.5"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Python WSGI adapter module for Apache."
    1.11  MAINTAINER="erjo@slitaz.org"
    1.12  LICENSE="Apache"
    1.13  WEB_SITE="https://github.com/GrahamDumpleton/mod_wsgi"
    1.14 -SOURCE="mod_wsgi"
    1.15 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.16 -WGET_URL="http://modwsgi.googlecode.com/files/$TARBALL"
    1.17 +
    1.18 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.19 +WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
    1.20  
    1.21  DEPENDS="apache python"
    1.22 -BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev python-dev sed acl acl-dev"
    1.23 +BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev apr-util-dev python-dev sed"
    1.24  
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 -	cd $src
    1.29 -	./configure 
    1.30 -	sed -i -e "s!^DESTDIR =!DESTDIR = $WOK/$PACKAGE/install! " Makefile
    1.31 -	make && make install
    1.32 +	./configure --prefix=/usr &&
    1.33 +	make &&
    1.34 +	make install
    1.35  }
    1.36  
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38  genpkg_rules()
    1.39  {
    1.40  	mkdir -p $fs/etc/apache/extra
    1.41 -	cp -a $install/* $fs
    1.42 -	cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
    1.43 +
    1.44 +	cp -a $install/*		$fs
    1.45 +	cp $stuff/httpd-mod-wsgi.conf	$fs/etc/apache/extra
    1.46  }
    1.47  
    1.48  post_install()
    1.49  {
    1.50 -		# Enable WSGI module
    1.51 -		echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
    1.52 -		echo "Include /etc/apache/extra/httpd-mod-wsgi.conf  " >> "$1/etc/apache/httpd.conf"
    1.53 +	# Enable WSGI module
    1.54 +	echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
    1.55 +	echo "Include /etc/apache/extra/httpd-mod-wsgi.conf  " >> "$1/etc/apache/httpd.conf"
    1.56  }
    1.57  
    1.58  post_remove()
    1.59  {
    1.60 -		# Remove WSGI configuration
    1.61 -		sed -i s/\# Python.*// "$1/etc/apache/httpd.conf"
    1.62 -		sed -i s/.*httpd-mod-wsgi.conf// "$1/etc/apache/httpd.conf"
    1.63 +	# Remove WSGI configuration
    1.64 +	sed -i s/\# Python.*//			"$1/etc/apache/httpd.conf"
    1.65 +	sed -i s/.*httpd-mod-wsgi.conf//	"$1/etc/apache/httpd.conf"
    1.66  }