@ -10,7 +10,7 @@ DEBUG=${ALL_DEBUG}
#export DEBUG
#export OPTZ
#export EXTRALINK
CURVER = 1.2.2
CURVER = 1.2.3
DISTRO := $( shell gawk -F= '/^NAME/{print $$2}' /etc/os-release)
.PHONY : default
@ -48,7 +48,7 @@ clean:
cd lib && ${ MAKE } clean
cd src && ${ MAKE } clean
packages : centos 6.7 centos 7 centos 6.7-dbg centos 7-dbg ubuntu 12 ubuntu 14 debian 7 debian 8 ubuntu 12-dbg ubuntu 14-dbg debian 7-dbg debian 8-dbg
packages : centos 6.7 centos 7 centos 6.7-dbg centos 7-dbg ubuntu 12 ubuntu 14 debian 7 debian 8 ubuntu 12-dbg ubuntu 14-dbg debian 7-dbg debian 8-dbg ubuntu 16 ubuntu 16-dbg
.PHONY : packages
@ -70,8 +70,8 @@ ubuntu12: binaries/proxysql_${CURVER}-ubuntu12_amd64.deb
ubuntu14 : binaries /proxysql_ ${CURVER }-ubuntu 14_amd 64.deb
.PHONY : ubuntu 14
ubuntu1 5: binaries /proxysql_ ${CURVER }-ubuntu 15 _amd 64.deb
.PHONY : ubuntu 15
ubuntu1 6: binaries /proxysql_ ${CURVER }-ubuntu 16 _amd 64.deb
.PHONY : ubuntu 16
debian7 : binaries /proxysql_ ${CURVER }-debian 7_amd 64.deb
.PHONY : debian 7
@ -85,8 +85,8 @@ ubuntu12-dbg: binaries/proxysql_${CURVER}-dbg-ubuntu12_amd64.deb
ubuntu14-dbg : binaries /proxysql_ ${CURVER }-dbg -ubuntu 14_amd 64.deb
.PHONY : ubuntu 14-dbg
ubuntu1 5-dbg: binaries /proxysql_ ${CURVER }-dbg -ubuntu 15 _amd 64.deb
.PHONY : ubuntu 15 -dbg
ubuntu1 6-dbg: binaries /proxysql_ ${CURVER }-dbg -ubuntu 16 _amd 64.deb
.PHONY : ubuntu 16 -dbg
debian7-dbg : binaries /proxysql_ ${CURVER }-dbg -debian 7_amd 64.deb
.PHONY : debian 7-dbg
@ -194,18 +194,18 @@ binaries/proxysql_${CURVER}-ubuntu14_amd64.deb:
docker stop ubuntu14_build
docker rm ubuntu14_build
binaries/proxysql_${CURVER}-ubuntu1 5 _amd64.deb:
docker stop ubuntu15 _build || true
docker rm ubuntu15 _build || true
docker create --name ubuntu15_build renecannao/proxysql:build-ubuntu15 bash -c "while : ; do sleep 10 ; done"
docker start ubuntu15 _build
docker exec ubuntu15 _build bash -c " cd /opt; git clone -b v ${ CURVER } https://github.com/sysown/proxysql.git proxysql "
docker exec ubuntu15 _build bash -c " cd /opt/proxysql; ${ MAKE } clean && ${ MAKE } -j 4 build_deps && ${ MAKE } -j 4 "
docker cp docker/images/proxysql/ubuntu-15.10-build/proxysql.ctl ubuntu15 _build:/opt/proxysql/
docker exec ubuntu15 _build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl"
docker cp ubuntu15 _build:/opt/proxysql/proxysql_${ CURVER } _amd64.deb ./binaries/proxysql_${ CURVER } -ubuntu15 _amd64.deb
docker stop ubuntu15 _build
docker rm ubuntu15 _build
binaries/proxysql_${CURVER}-ubuntu1 6 _amd64.deb:
docker stop ubuntu16 _build || true
docker rm ubuntu16 _build || true
docker create --name ubuntu16_build renecannao/proxysql:build-ubuntu16 bash -c "while : ; do sleep 10 ; done"
docker start ubuntu16 _build
docker exec ubuntu16 _build bash -c " cd /opt; git clone -b v ${ CURVER } https://github.com/sysown/proxysql.git proxysql "
docker exec ubuntu16 _build bash -c " cd /opt/proxysql; ${ MAKE } clean && ${ MAKE } -j 4 build_deps && ${ MAKE } -j 4 "
docker cp docker/images/proxysql/ubuntu-16.04-build/proxysql.ctl ubuntu16 _build:/opt/proxysql/
docker exec ubuntu16 _build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl"
docker cp ubuntu16 _build:/opt/proxysql/proxysql_${ CURVER } _amd64.deb ./binaries/proxysql_${ CURVER } -ubuntu16 _amd64.deb
docker stop ubuntu16 _build
docker rm ubuntu16 _build
binaries/proxysql_${CURVER}-debian7_amd64.deb :
docker stop debian7_build || true
@ -260,18 +260,18 @@ binaries/proxysql_${CURVER}-dbg-ubuntu14_amd64.deb:
docker stop ubuntu14_build
docker rm ubuntu14_build
binaries/proxysql_${CURVER}-dbg-ubuntu1 5 _amd64.deb:
docker stop ubuntu15 _build || true
docker rm ubuntu15 _build || true
docker create --name ubuntu15_build renecannao/proxysql:build-ubuntu15 bash -c "while : ; do sleep 10 ; done"
docker start ubuntu15 _build
docker exec ubuntu15 _build bash -c " cd /opt; git clone -b v ${ CURVER } https://github.com/sysown/proxysql.git proxysql "
docker exec ubuntu15 _build bash -c " cd /opt/proxysql; ${ MAKE } clean && ${ MAKE } -j 4 build_deps && ${ MAKE } debug "
docker cp docker/images/proxysql/ubuntu-15.10-build/proxysql.ctl ubuntu15 _build:/opt/proxysql/
docker exec ubuntu15 _build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl"
docker cp ubuntu15 _build:/opt/proxysql/proxysql_${ CURVER } _amd64.deb ./binaries/proxysql_${ CURVER } -ubuntu15 _amd64.deb
docker stop ubuntu15 _build
docker rm ubuntu15 _build
binaries/proxysql_${CURVER}-dbg-ubuntu1 6 _amd64.deb:
docker stop ubuntu16 _build || true
docker rm ubuntu16 _build || true
docker create --name ubuntu16_build renecannao/proxysql:build-ubuntu16 bash -c "while : ; do sleep 10 ; done"
docker start ubuntu16 _build
docker exec ubuntu16 _build bash -c " cd /opt; git clone -b v ${ CURVER } https://github.com/sysown/proxysql.git proxysql "
docker exec ubuntu16 _build bash -c " cd /opt/proxysql; ${ MAKE } clean && ${ MAKE } -j 4 build_deps && ${ MAKE } debug "
docker cp docker/images/proxysql/ubuntu-16.04-build/proxysql.ctl ubuntu16 _build:/opt/proxysql/
docker exec ubuntu16 _build bash -c "cd /opt/proxysql; cp src/proxysql . ; equivs-build proxysql.ctl"
docker cp ubuntu16 _build:/opt/proxysql/proxysql_${ CURVER } _amd64.deb ./binaries/proxysql_${ CURVER } -ubuntu16 _amd64.deb
docker stop ubuntu16 _build
docker rm ubuntu16 _build
binaries/proxysql_${CURVER}-dbg-debian7_amd64.deb :
docker stop debian7_build || true