buildout.cfg 2.53 KB
Newer Older
Alain Takoudjou's avatar
Alain Takoudjou committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[buildout]
extends =
  ../autoconf/buildout.cfg
  ../automake/buildout.cfg
  ../libtool/buildout.cfg
  ../cmake/buildout.cfg
  ../openssl/buildout.cfg
  ../patch/buildout.cfg
  ../git/buildout.cfg
  ../openssl/buildout.cfg
  ../bzip2/buildout.cfg
  ../perl/buildout.cfg
  ../gnutls/buildout.cfg
  ../curl/buildout.cfg
  ../gnutls/buildout.cfg
  ../libzip/buildout.cfg
17 18 19 20
  ../m4/buildout.cfg
  ../pcre/buildout.cfg
  ../jemalloc/buildout.cfg
  ../libmicrohttpd/buildout.cfg
Alain Takoudjou's avatar
Alain Takoudjou committed
21 22 23 24 25 26

parts =
  proxysql

[proxysql]
recipe = slapos.recipe.cmmi
27 28 29
version = v2.0.12
url = https://github.com/sysown/proxysql/archive/${:version}.tar.gz
md5sum = 70ec17fe73703a25730fdd44b6bc3ef5
Alain Takoudjou's avatar
Alain Takoudjou committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
prefix = @@LOCATION@@
# Patch installation path for SlapOS
pre-configure =
  mkdir -p ${:prefix}/bin ${:prefix}/etc/init.d ${:prefix}/lib/systemd/system
  sed -ri "
    s#(\s)/usr/bin#\1${:prefix}/bin#g
    s#(\s)/etc#\1${:prefix}/etc#g
    s#(\s)/usr/lib#\1${:prefix}/lib#
    s#(\s)/var/lib#\1${:prefix}/lib#g
    s#(\s)useradd#\1echo useradd#g
    s#(\s)systemctl#\1echo systemctl#g
    s#(\s)chkconfig#\1echo chkconfig#g
    s#(\s)update-rc.d#\1echo update-rc.d#g" Makefile

configure-command = true
environment =
46 47 48
  GIT_VERSION=${:version}
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig:${gnutls:location}/lib/pkgconfig:${libgcrypt:location}/lib/pkgconfig:${zlib:location}/lib/pkgconfig:${pcre:location}/lib/pkgconfig
  PATH=${m4:location}/bin:${libtool:location}/bin:${libgcrypt:location}/bin:${curl:location}/bin:${perl:location}/bin:${pkgconfig:location}/bin:${bzip2:location}/bin:${autoconf:location}/bin:${git:location}/bin:${automake:location}/bin:${patch:location}/bin:${cmake:location}/bin:%(PATH)s
Alain Takoudjou's avatar
Alain Takoudjou committed
49 50
  CXXFLAGS=-I${openssl:location}/include -I${gnutls:location}/include -I${zlib:location}/include
  CFLAGS=-I${gnutls:location}/include
51 52 53
  LDFLAGS=-L${openssl:location}/lib -Wl,-rpath -Wl,${gnutls:location}/lib -L${gnutls:location}/lib -Wl,-rpath=${curl:location}/lib -L${libtool:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -L${curl:location}/lib -L${pcre:location}/lib -L${jemalloc:location}/lib -L${libmicrohttpd:location}/lib
  CMAKE_INCLUDE_PATH=${openssl:location}/include:${gnutls:location}/include:${curl:location}/include:${pcre:location}/include:${jemalloc:location}/include:${libmicrohttpd:location}/include
  CMAKE_LIBRARY_PATH=${openssl:location}/lib:${gnutls:location}/lib:${curl:location}/lib:${pcre:location}/lib:${jemalloc:location}/lib:${libmicrohttpd:location}/lib
Alain Takoudjou's avatar
Alain Takoudjou committed
54
  LIBTOOL=libtool
55
  ACLOCAL_PATH=${pkgconfig:location}/share/aclocal:${libtool:location}/share/aclocal