From f8eb83406fba143734ae81fee0f9f8d633e6b2ae Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Thu, 12 Feb 2015 13:02:00 +0000 Subject: Add apache httpd server and mod_wsgi module Add apache-httpd server and mod_wsgi which is a module to host any python application with python wsgi inteface. NOTE: apache-httpd server need to configure an user and group to run this can not be configured in this patch because some bug when changing owners of files and directories in system-integration commands. See more information on httpd-server.morph chunk --- strata/apache-httpd-server/apr.morph | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 strata/apache-httpd-server/apr.morph (limited to 'strata/apache-httpd-server/apr.morph') diff --git a/strata/apache-httpd-server/apr.morph b/strata/apache-httpd-server/apr.morph new file mode 100644 index 00000000..87e05910 --- /dev/null +++ b/strata/apache-httpd-server/apr.morph @@ -0,0 +1,25 @@ +name: apr +kind: chunk +configure-commands: +- ./buildconf +- | + ./configure --prefix="$PREFIX" \ + --disable-static \ + --enable-threads \ + --with-installbuilddir="$PREFIX"/share/apr-1/build +build-commands: +- make +install-commands: +- PREFIX="$PREFIX" DESTDIR="$DESTDIR" make install +# Install files required for apr-util and httpd +- | + for file in find_apr.m4 apr_common.m4 install.sh gen-build.py get-version.sh \ + 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 (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 -- cgit v1.2.1