build-homepage: exclude interpreter plugins
@@ -9,17 +9,19 @@ set -x
ROOT_DIR=$PWD
# build the applications
-mkdir -p build
-cd build
+rm -rf build && mkdir -p build && cd build
+# concrete install location is configurable
+if [ -z "${INSTALL_PATH}" ] ; then
INSTALL_PATH="/usr/local/elektra_backend"
+fi
C_FLAGS='-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-protector-strong -Wstack-protector -fPIE -pie'
LD_FLAGS='-Wl,-z,now -Wl,-z,relro'
cmake -DENABLE_ASAN=ON -DBUILD_FULL=OFF -DBUILD_SHARED=ON -DBUILD_STATIC=OFF -DBUILD_DOCUMENTATION=OFF \
-DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}" -DINSTALL_SYSTEM_FILES=OFF \
- -DPLUGINS='ALL;-fstab;-semlock;file;-xerces' \
+ -DPLUGINS='ALL;-fstab;-semlock;file;-xerces;-ruby;-lua;-python;-python2' \
-DTOOLS='kdb;rest-backend;rest-frontend' \
-DCMAKE_C_FLAGS="$C_FLAGS" \
-DCMAKE_CXX_FLAGS="$C_FLAGS" \
@@ -32,8 +34,8 @@ make -j 3
make run_nokdbtests
# rotate backup of previous website
-rm -rf /usr/local/share/elektra/tool_data_backup
-cp -ra /usr/local/share/elektra/tool_data /usr/local/share/elektra/tool_data_backup
+rm -rf ${INSTALL_PATH}/share/elektra/tool_data_backup
+cp -ra ${INSTALL_PATH}/share/elektra/tool_data ${INSTALL_PATH}/share/elektra/tool_data_backup
# if tests were ok, we can install
make install
