From: Brian Evans Date: Tue, 18 Aug 2015 20:41:08 +0000 (-0400) Subject: sys-cluster/galera: Remove netcat which is no longer needed in the init X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7bc2bba0d3610ed3c482bd329a39c81227008539;p=gentoo.git sys-cluster/galera: Remove netcat which is no longer needed in the init Upstream https://github.com/codership/galera/commit/6209a777da487764a728fcb6e9e1f20f82968ee0 removes it Package-Manager: portage-2.2.20.1 --- diff --git a/sys-cluster/galera/files/garb.sh b/sys-cluster/galera/files/garb.sh index 63e88dff5cdf..da7d55093f5d 100644 --- a/sys-cluster/galera/files/garb.sh +++ b/sys-cluster/galera/files/garb.sh @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2014 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { @@ -22,21 +22,7 @@ start() { GALERA_PORT="${GALERA_PORT:-4567}" - for ADDRESS in ${GALERA_NODES} 0; do - HOST=$(echo $ADDRESS | cut -d \: -f 1 ) - PORT=$(echo $ADDRESS | cut -d \: -f 2 ) - if [ "x${HOST}" = "x${PORT}" ]; then - PORT=${GALERA_PORT} - fi - PORT=${PORT:-$GALERA_PORT} - nc -z ${HOST} ${PORT} > /dev/null && break - done - if [ ${ADDRESS} = "0" ]; then - eerror "None of the nodes in GALERA_NODES is accessible" - return 1 - fi - - OPTIONS="-a gcomm://${ADDRESS} -g ${GALERA_GROUP}" + OPTIONS="-a gcomm://${GALERA_NODES// /,} -g ${GALERA_GROUP}" [ -n "${GALERA_OPTIONS}" ] && OPTIONS="${OPTIONS} -o ${GALERA_OPTIONS}" [ -n "${LOG_FILE}" ] && OPTIONS="${OPTIONS} -l ${LOG_FILE}" diff --git a/sys-cluster/galera/galera-25.3.10.ebuild b/sys-cluster/galera/galera-25.3.10.ebuild index bbaad5afa792..96a2e5c8f38a 100644 --- a/sys-cluster/galera/galera-25.3.10.ebuild +++ b/sys-cluster/galera/galera-25.3.10.ebuild @@ -28,13 +28,7 @@ DEPEND="${DEPEND} >=dev-cpp/asio-1.4.8[ssl?] " #Run time only -RDEPEND="${CDEPEND} - garbd? ( || ( - net-analyzer/netcat - net-analyzer/netcat6 - net-analyzer/gnu-netcat - net-analyzer/openbsd-netcat - ) )" +RDEPEND="${CDEPEND}" S="${WORKDIR}/${MY_P}"