Commit 974fd320 authored by Axel Auweter's avatar Axel Auweter
Browse files

Add Apache HTTPD for dcdbquery CGI support.

parent e5036eae
......@@ -11,6 +11,7 @@ SNMP_VERSION = 5.7.3
OPENSSL_VERSION = 1.0.1s
CPPDRV_VERSION = 2.0.1
LIBUV_VERSION = 0.10.36
HTTPD_VERSION = 2.4.18
SOURCEFORGE_MROR = netcologne
BOOST_VERSION_U = $(subst .,_,$(BOOST_VERSION))
......@@ -21,9 +22,10 @@ DISTFILES = apache-cassandra-$(CASSANDRA_VERSION).tar.gz;http://mirrors.sonic.ne
net-snmp-$(SNMP_VERSION).zip;http://$(SOURCEFORGE_MROR).dl.sourceforge.net/project/net-snmp/net-snmp/$(SNMP_VERSION)/net-snmp-$(SNMP_VERSION).zip \
openssl-$(OPENSSL_VERSION).tar.gz;ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/openssl-$(OPENSSL_VERSION).tar.gz \
cpp-driver-$(CPPDRV_VERSION).tar.gz;https://github.com/datastax/cpp-driver/archive/$(CPPDRV_VERSION).tar.gz \
libuv-v$(LIBUV_VERSION).tar.gz;http://dist.libuv.org/dist/v$(LIBUV_VERSION)/libuv-v$(LIBUV_VERSION).tar.gz
libuv-v$(LIBUV_VERSION).tar.gz;http://dist.libuv.org/dist/v$(LIBUV_VERSION)/libuv-v$(LIBUV_VERSION).tar.gz \
httpd-$(HTTPD_VERSION).tar.gz;http://mirror.softaculous.com/apache//httpd/httpd-$(HTTPD_VERSION).tar.gz
DISTFILES_HASHES = apache-cassandra-2.2.5.tar.gz;c3952585a03f15490da6b14f4f4a2087;mosquitto-1.3.5.tar.gz;55094ad4dc7c7985377f43d4fc3d09da;OpenIPMI-2.0.21.tar.gz;dc0b42ae40b3f1d0db2a94b75b95fae1;boost_1_57_0.tar.gz;25f9a8ac28beeb5ab84aa98510305299;net-snmp-5.7.3.zip;9f682bd70c717efdd9f15b686d07baee;openssl-1.0.1s.tar.gz;562986f6937aabc7c11a6d376d8a0d26;cpp-driver-2.0.1.tar.gz;70bf83e1cbd0d35b7e5ed66fc4dccbb1;libuv-v0.10.36.tar.gz;8eb77b4fee4f311c114a9fee06f5a2ab;
DISTFILES_HASHES = apache-cassandra-2.2.5.tar.gz;c3952585a03f15490da6b14f4f4a2087;mosquitto-1.3.5.tar.gz;55094ad4dc7c7985377f43d4fc3d09da;OpenIPMI-2.0.21.tar.gz;dc0b42ae40b3f1d0db2a94b75b95fae1;boost_1_57_0.tar.gz;25f9a8ac28beeb5ab84aa98510305299;net-snmp-5.7.3.zip;9f682bd70c717efdd9f15b686d07baee;openssl-1.0.1s.tar.gz;562986f6937aabc7c11a6d376d8a0d26;cpp-driver-2.0.1.tar.gz;70bf83e1cbd0d35b7e5ed66fc4dccbb1;libuv-v0.10.36.tar.gz;8eb77b4fee4f311c114a9fee06f5a2ab;httpd-2.4.18.tar.gz;2f90ce3426541817e0dfd01cae086b60;
FETCH = wget -c --no-check-certificate -O -
MD5 = $(if $(shell which md5),md5,md5sum --tag)
......@@ -41,6 +43,8 @@ CASSANDRA_COMMITLOG_SEGMENT_SIZE_IN_MB = 16
CASSANDRA_TOMBSTONE_WARN_THRESHOLD = 100000
CASSANDRA_TOMBSTONE_FAILURE_THRESHOLD = 10000000
HTTPD_PORT = 8080
DISTFILESNAMES = $(foreach f,$(DISTFILES),$(shell echo "$(f)" | sed 's/;.*//'))
DISTFILESPATHS = $(foreach f,$(DISTFILES),$(shell echo "$(f)" | sed 's/.tar.gz;.*//' | sed 's/.zip;.*//' ))
......@@ -285,6 +289,26 @@ $(DCDBDEPSPATH)/.prerequesites: $(DCDBDEPSPATH)/.extract-distfiles
echo "Skipping cpp-driver (already built)..."; \
fi
$(eval H := $(shell echo "$(DISTFILESPATHS)" | sed 's/.*httpd/httpd/' | sed 's/\ .*//'))
@if [ ! -e $(DCDBDEPSPATH)/$(H)/.installed ]; then \
echo ""; \
echo "Building Apache HTTPD server..."; \
cd $(DCDBDEPSPATH)/$(H) && ./configure --prefix=$(DCDBDEPLOYPATH); \
cd $(DCDBDEPSPATH)/$(H) && make -j $(MAKETHREADS) && make install && touch $(DCDBDEPSPATH)/$(H)/.installed; \
echo "Configuring Apache HTTPD server:"; \
echo " Setting listen port: $(HTTPD_PORT)"; \
sed -i -e 's/Listen\ 80/Listen $(HTTPD_PORT)/' $(DCDBDEPLOYPATH)/conf/httpd.conf; \
echo " Enabling mod_cgid..."; \
sed -i -e 's/#LoadModule\ cgid_module.*/LoadModule\ cgid_module\ modules\/mod_cgid.so/' $(DCDBDEPLOYPATH)/conf/httpd.conf; \
echo " Setting symlink for dcdbquery..."; \
ln -s $(DCDBDEPLOYPATH)/bin/dcdbquery $(DCDBDEPLOYPATH)/cgi-bin/; \
echo " Adding cgi-bin SymLinksIfOwnerMatch option..."; \
sed -i -e '/<Directory.*cgi-bin.>/,/<\/Directory>/ s/Options.*/Options\ SymLinksIfOwnerMatch/' $(DCDBDEPLOYPATH)/conf/httpd.conf; \
touch $(DCDBDEPSPATH)/$(H)/.installed; \
else \
echo "Skipping Apache HTTPD server (already built)..."; \
fi
@echo ""
@echo "Staging and configuring Cassandra..."
@$(eval C := $(shell echo "$(DISTFILESPATHS)" | sed 's/.*apache-cassandra/apache-cassandra/' | sed 's/\ .*//'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment