wok-current view apache-mod-wsgi/receipt @ rev 25788
Mass update to fix build with gcc10 and up others packages
| author | Stanislas Leduc <shann@slitaz.org> |
|---|---|
| date | Tue Sep 30 07:43:04 2025 +0000 (3 weeks ago) |
| parents | 5926178cd6fa |
| children |
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-wsgi"
4 VERSION="4.9.4"
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 \
17 apr-util-dev python-dev sed"
19 HOST_ARCH="i486 x86_64"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --prefix=/usr \
32 --with-python=python &&
33 make &&
34 make DESTDIR=$install install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc/apache/extra
42 cp -a $install/* $fs
43 cp $stuff/httpd-mod-wsgi.conf $fs/etc/apache/extra
44 }
46 post_install()
47 {
48 if ! grep -q WSGI_PY2 "$1/etc/apache/httpd.conf"; then
49 # Enable WSGI_PY2 module
50 echo "# Python WSGI_PY2 module" >> "$1/etc/apache/httpd.conf"
51 echo "Include /etc/apache/extra/httpd-mod-wsgi.conf" >> "$1/etc/apache/httpd.conf"
52 fi
53 }
55 post_remove()
56 {
57 # Remove WSGI configuration
58 sed -i -e s/\# Python WSGI_PY2.*// \
59 -e s/.*httpd-mod-wsgi.conf// \
60 "$1/etc/apache/httpd.conf"
61 }