Commit 7cc6e4ef authored by Alain Takoudjou's avatar Alain Takoudjou

proxysql: cleanup, fixes

parent 5acb3689
......@@ -20,21 +20,21 @@ parts =
[proxysql]
recipe = slapos.recipe.cmmi
url = https://github.com/sysown/proxysql/archive/v2.0.10.tar.gz
md5sum = 761c6f4ec7239deaf22c7291acd1ccdc
compile-dir = ${:prefix}__compile__/proxysql-2.0.10
prefix = ${buildout:parts-directory}/${:_buildout_section_name_}
url = https://github.com/sysown/proxysql/archive/v2.0.11.tar.gz
md5sum = 290fc4eaa1f92426caa3ffde3156a178
prefix = @@LOCATION@@
# Patch installation path for SlapOS
pre-configure =
mkdir -p ${:prefix}/bin ${:prefix}/etc/init.d ${:prefix}/lib/systemd/system
sed -i "s#/usr/bin#${:prefix}/bin#" ${:compile-dir}/Makefile
sed -i "s# /etc# ${:prefix}/etc#g" ${:compile-dir}/Makefile
sed -i "s#/usr/lib#${:prefix}/lib#" ${:compile-dir}/Makefile
sed -i "s#/var/lib#${:prefix}/lib#g" ${:compile-dir}/Makefile
sed -i "s#useradd#echo useradd#g" ${:compile-dir}/Makefile
sed -i "s#systemctl#echo systemctl#g" ${:compile-dir}/Makefile
sed -i "s#chkconfig#echo chkconfig#g" ${:compile-dir}/Makefile
sed -i "s#update-rc.d#echo update-rc.d#g" ${:compile-dir}/Makefile
sed -i "
s#/usr/bin#${:prefix}/bin#
s# /etc# ${:prefix}/etc#g
s#/usr/lib#${:prefix}/lib#
s#/var/lib#${:prefix}/lib#g
s#useradd#echo useradd#g
s#systemctl#echo systemctl#g
s#chkconfig#echo chkconfig#g
s#update-rc.d#echo update-rc.d#g" Makefile
configure-command = true
environment =
......@@ -46,6 +46,4 @@ environment =
CMAKE_INCLUDE_PATH=${openssl:location}/include:${gnutls:location}/include
CMAKE_LIBRARY_PATH=${openssl:location}/lib:${gnutls:location}/lib:${curl:location}/lib
LIBTOOL=libtool
ACLOCAL_PATH=${pkgconfig:location}/share/aclocal:${libtool:location}/share/aclocal
\ No newline at end of file
ACLOCAL_PATH=${pkgconfig:location}/share/aclocal:${libtool:location}/share/aclocal
\ No newline at end of file
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