summaryrefslogtreecommitdiff
path: root/strata/apache-httpd-server
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-10-31 15:35:03 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-11-11 17:36:41 +0900
commit82d358156d80fabb06702023178445ec90b7ada9 (patch)
treeb6783c139d95c608dc7bf1ce85e5a213a4397cf4 /strata/apache-httpd-server
parentec458e22d52b15458636a1f550e55e92a4fee962 (diff)
downloaddefinitions-82d358156d80fabb06702023178445ec90b7ada9.tar.gz
Moving unmaintained systems, clusters and their strata to unmaintained directory
This includes ceph, chef, cxmanage, java, openstack, nodejs, ocaml, qt4, qt5 (system only, qt5 is used by ivi projects), swift, web, xfce and zookeeper systems. All strata which is referred to exclusively by systems and clusters in the unmaintained directory have also been moved to the unmaintained directory. Change-Id: If60b0fa8bc1d7f9c53137fa7106b396668682a9a
Diffstat (limited to 'strata/apache-httpd-server')
-rw-r--r--strata/apache-httpd-server/apr.morph22
-rw-r--r--strata/apache-httpd-server/httpd-server.morph67
-rw-r--r--strata/apache-httpd-server/mod_wsgi.morph18
3 files changed, 0 insertions, 107 deletions
diff --git a/strata/apache-httpd-server/apr.morph b/strata/apache-httpd-server/apr.morph
deleted file mode 100644
index aaba1954..00000000
--- a/strata/apache-httpd-server/apr.morph
+++ /dev/null
@@ -1,22 +0,0 @@
-name: apr
-kind: chunk
-build-system: autotools
-configure-commands:
-- ./buildconf
-- |
- ./configure --prefix="$PREFIX" \
- --disable-static \
- --enable-threads \
- --with-installbuilddir="$PREFIX"/share/apr-1/build
-post-install-commands:
-# 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/
-# 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/httpd-server.morph b/strata/apache-httpd-server/httpd-server.morph
deleted file mode 100644
index 41f0c36b..00000000
--- a/strata/apache-httpd-server/httpd-server.morph
+++ /dev/null
@@ -1,67 +0,0 @@
-name: httpd-server
-kind: chunk
-build-system: autotools
-configure-commands:
-- ./buildconf --with-apr=/usr/share/apr-1
-# We override --libexecdir with the same value as --enable-layout=RPM
-# ought to provide, because otherwise there is a bug where when mod_wsgi
-# calls apxs, it fails as follows because the variable is empty.
-#
-#/usr/share/apr-1/build/libtool --silent --mode=link gcc -std=gnu99
-# -o src/server/mod_wsgi.la -rpath # -module -avoid-version
-# src/server/wsgi_validate.lo src/server/wsgi_stream.lo
-# src/server/wsgi_server.lo src/server/wsgi_restrict.lo
-# src/server/wsgi_metrics.lo src/server/wsgi_logger.lo
-# src/server/wsgi_interp.lo src/server/wsgi_daemon.lo
-# src/server/wsgi_convert.lo src/server/wsgi_buckets.lo
-# src/server/wsgi_apache.lo src/server/mod_wsgi.lo
-# -L/usr/lib -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm
-# libtool: error: only absolute run-paths are allowed
-# apxs:Error: Command failed with rc=65536
-#
-- |
- ./configure --prefix="$PREFIX" \
- --libexecdir="$PREFIX"/lib/httpd/modules \
- --enable-layout=RPM \
- --enable-mpms-shared=all \
- --with-apr="$PREFIX"/bin/apr-2-config \
- --enable-suexec --with-suexec \
- --with-suexec-caller=apache \
- --with-suexec-docroot=/var/www \
- --with-suexec-logfile=/var/log/httpd/suexec.log \
- --with-suexec-bin="$PREFIX"/sbin/suexec \
- --with-suexec-uidmin=500 --with-suexec-gidmin=100\
- --with-suexec-userdir=public_html \
- --enable-pie \
- --with-pcre \
- --enable-mods-shared=all \
- --enable-ssl --with-ssl \
- --enable-case-filter --enable-case-filter-in \
- --enable-cgid --enable-cgi\
- --enable-so
-post-install-commands:
-# Add perl interpreter path to apxs script, required for loading mod_wsgi.
-- |
- sed -i 's|#!/replace/with/path/to/perl/interpreter -w|#!/usr/bin/perl -w|g' \
- "$DESTDIR$PREFIX"/bin/apxs
-# Add conf.d directory where apache will look for other configurations to load.
-- mkdir -p "$DESTDIR"/etc/httpd/conf.d
-- echo 'Include /etc/httpd/conf.d/*.conf' >> "$DESTDIR"/etc/httpd/conf/httpd.conf
-####################################################################################
-# This chunk should add an apache user and an apache group, create the apache home
-# directory and move suexec to /usr/lib/httpd/suexec as system-integration time.
-# This is not possible because linux-user-chroot drops all capabilities for security so
-# it does not allow to change the owners of directories or files.
-# So for now you should create a script which includes the following commands:
-# - mkdir -p /var/www
-# - groupadd -r apache
-# - |
-# useradd -c "Apache Server" -d /var/www -g apache \
-# -s /bin/false apache
-#
-# - mkdir -p /usr/lib/httpd
-# - mv -v /usr/bin/suexec /usr/lib/httpd/suexec
-# - chgrp apache /usr/lib/httpd/suexec
-# - chmod 4754 /usr/lib/httpd/suexec
-# - chown -R apache:apache /var/www
-####################################################################################
diff --git a/strata/apache-httpd-server/mod_wsgi.morph b/strata/apache-httpd-server/mod_wsgi.morph
deleted file mode 100644
index 86004ad3..00000000
--- a/strata/apache-httpd-server/mod_wsgi.morph
+++ /dev/null
@@ -1,18 +0,0 @@
-name: mod_wsgi
-kind: chunk
-build-system: autotools
-configure-commands:
-- |
- ./configure --prefix="$PREFIX" \
- --with-apxs=/usr/bin/apxs
-post-install-commands:
-- |
- install -D -m 644 /proc/self/fd/0 <<'EOF' "$DESTDIR"/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