Commit ce562b29 authored by Dmitry Blinov's avatar Dmitry Blinov Committed by Esteban Blanc

make qcom and statussrv listen to SlapOS-given IP

parent 8f2222a7
......@@ -7,14 +7,11 @@ extends =
parts = meson
[meson]
#recipe = zc.recipe.egg:scripts
#egg = meson
recipe = plone.recipe.command
command =
bash -c "${python3:executable} -m venv --clear ${:location} && \
recipe = slapos.recipe.cmmi
url = https://github.com/mesonbuild/meson/archive/0.52.0.tar.gz
md5sum = fea87e71e6d21d377f2cb82cc52914a7
configure-command = true
make-binary = bash -c "${python3:executable} -m venv --clear ${:location} && \
. ${:location}/bin/activate && \
pip install meson==0.52 --prefix ${:location}"
pip install . --prefix ${:location}"
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
......@@ -309,6 +309,8 @@ compile-dir = ${:location}__compile__
#sanitizer-flags = -fsanitize=address
sanitizer-flags =
configure-command =
sed -i 's#l.sa.sin_addr.s_addr = htonl(INADDR_ANY)#l.sa.sin_addr.s_addr = inet_addr(getenv("SLAP_DEPLOY_IP"))#' ${:compile-dir}/src/exe/rt_qmon/src/rt_qmon.c
sed -i 's#soap_bind(\&soap, NULL, 18084, 100)#soap_bind(\&soap, getenv("SLAP_DEPLOY_IP"), 18084, 100)#' ${:compile-dir}/src/exe/rt_statussrv/src/rt_statussrv.cpp
sed -i "s#aroot=/usr/local/adm#aroot=${:aroot}#" ${:compile-dir}/build.sh
sed -i "s#(cross_compile)#(cross_compile) ${:rpaths} #" ${:compile-dir}/xtt/exe/wb_ge/qt/link_rule.mk
sed -i "/chmod a+x pkg_unpack.sh/a sed -i '/USER/,\$d' pkg_unpack.sh" ${:compile-dir}/src/exp/com/src/pwr_pkg.sh
......
......@@ -142,7 +142,7 @@ command = echo 'cp -r {{ proview_directory }}/local/adm/db/ ${:pwr-db}/.. '
$pwr_exe/rt_xtt &
EOF
update-command = echo updating and doing nothing
update-command = ${:command}
stop-on-error = true
[proview-environment]
......@@ -175,6 +175,7 @@ recipe = collective.recipe.template
input = inline:#!/bin/bash
umask 022
export HOME=${buildout:directory}
export SLAP_DEPLOY_IP={{ ipv4 }}
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
......
......@@ -68,7 +68,7 @@ mode = 0644
[template-proview-r]
<= download-base
md5sum = b1f31e7f5f9d6eab35842dac5e5697a4
md5sum = c6570f720fe924616f65ec7f36c373ba
filename = instance-proview-r.cfg.jinja2.in
[template-pwrp-profile]
......
Markdown is supported
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