wok view apache-mod-wsgi/receipt @ rev 24117
Add sokojs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 03 18:33:51 2021 +0000 (2021-10-03) |
parents | e0d8b796f528 |
children | 079c61a21362 |
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"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="apache python"
15 BUILD_DEPENDS="acl acl-dev apache apache-dev apr-dev apr-util-dev python-dev sed"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr &&
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/etc/apache/extra
36 cp -a $install/* $fs
37 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
38 }
40 post_install()
41 {
42 # Enable WSGI module
43 echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
44 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf " >> "$1/etc/apache/httpd.conf"
45 }
47 post_remove()
48 {
49 # Remove WSGI configuration
50 sed -i s/\# Python.*// "$1/etc/apache/httpd.conf"
51 sed -i s/.*httpd-mod-wsgi.conf// "$1/etc/apache/httpd.conf"
52 }