diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-01-13 09:28:15 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-02-11 18:30:33 +0000 |
commit | cdf009775e65737a708c7fd7c6788c7fdd316d2c (patch) | |
tree | f188061fffbc561cbdc1b294d0e6aafe4370eb07 /strata/apache-httpd-server | |
parent | c31a407d14cff4176ea5baf40b64ee21c9988e3d (diff) | |
download | definitions-cdf009775e65737a708c7fd7c6788c7fdd316d2c.tar.gz |
Add mod_wsgi to httpd-apache-server stratum
Diffstat (limited to 'strata/apache-httpd-server')
-rw-r--r-- | strata/apache-httpd-server/apr.morph | 6 | ||||
-rw-r--r-- | strata/apache-httpd-server/mod_wsgi.morph | 10 |
2 files changed, 15 insertions, 1 deletions
diff --git a/strata/apache-httpd-server/apr.morph b/strata/apache-httpd-server/apr.morph index 4c09b98c..6b7c8a41 100644 --- a/strata/apache-httpd-server/apr.morph +++ b/strata/apache-httpd-server/apr.morph @@ -16,5 +16,9 @@ install-commands: config.guess config.sub; do \ cp build/$file "$DESTDIR$PREFIX"/share/apr-1/build/$file ; \ done -# Create a symlink in the build directory to the include directory +# Create a symlink in the build directory to the include directory (this is needed for httpd) - ln -sf /usr/include/apr-2 "$DESTDIR$PREFIX"/share/apr-1/build/ +post-install-commands: +# Copy apr headers needed for mod_wsgi +- cp include/private/apr_support.h "$DESTDIR$PREFIX"/include/apr-2 +- cp include/arch/unix/apr_private.h "$DESTDIR$PREFIX"/include/apr-2 diff --git a/strata/apache-httpd-server/mod_wsgi.morph b/strata/apache-httpd-server/mod_wsgi.morph new file mode 100644 index 00000000..ef354a6c --- /dev/null +++ b/strata/apache-httpd-server/mod_wsgi.morph @@ -0,0 +1,10 @@ +name: mod_wsgi +kind: chunk +configure-commands: +- | + ./configure --prefix="$PREFIX" \ + --with-apxs=/usr/bin/apxs +build-commands: +- make +install-commands: +- PREFIX="$PREFIX" DESTDIR="$DESTDIR" make install |