summaryrefslogtreecommitdiff
path: root/elements/unmaintained/apache-httpd-server/mod_wsgi.bst
blob: c49c16e4a6e2da75b37a2a0fe793e8494c699d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
kind: autotools
depends:
- tools.bst
- pcre-utils.bst
- python2-core.bst
- unmaintained/apache-httpd-server/apr.bst
- unmaintained/apache-httpd-server/httpd-server.bst
- unmaintained/apache-httpd-server/mod_wsgi-metrics.bst
sources:
- kind: git
  url: upstream:python-packages/mod_wsgi
  track: 4.4.5
  ref: 1be8b37aaf07d8cb3083da99d6fda12375221b07
config:
  configure-commands:
  - |
    ./configure --prefix="%{prefix}" \
                --with-apxs=/usr/bin/apxs
  post-install-commands:
  - |
    install -D -m 644 /proc/self/fd/0 <<'EOF' "%{install-root}"/etc/httpd/conf.d/wsgi.conf
    # NOTE: mod_wsgi can not coexist in the same apache process as
    # mod_wsgi_python3.  Only load if mod_wsgi_python3 is not
    # already loaded.

    <IfModule !wsgi_module>
    LoadModule wsgi_module /usr/lib/httpd/modules/mod_wsgi.so
    </IfModule>
    EOF