# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # galera26 # galera26/pkg-message # galera26/distinfo # galera26/Makefile # galera26/files # galera26/files/garb.sh.in # galera26/pkg-descr # echo c - galera26 mkdir -p galera26 > /dev/null 2>&1 echo x - galera26/pkg-message sed 's/^X//' >galera26/pkg-message << 'ccde246f3fdfe9a7d66e88719b974504' X[ X{ type: install X message: <galera26/distinfo << '39110cf8e6366ea8bb3706b757d10a25' XTIMESTAMP = 1568151779 XSHA256 (codership-galera-release_26.4.2_GH0.tar.gz) = 367ff81e52d2b3c95e8bf2092616f7d1dcfb9723a91fa13e7e5a7b4573f7dcd1 XSIZE (codership-galera-release_26.4.2_GH0.tar.gz) = 3397996 XSHA256 (codership-wsrep-API-75a5f452f2ba07b0f4a3a9a94825fccc71b27398_GH0.tar.gz) = ac782d33d84a874d89bbe4eeb818ab56ae729aee4c491f91892694a2e134c558 XSIZE (codership-wsrep-API-75a5f452f2ba07b0f4a3a9a94825fccc71b27398_GH0.tar.gz) = 50214 39110cf8e6366ea8bb3706b757d10a25 echo x - galera26/Makefile sed 's/^X//' >galera26/Makefile << '242e8ade7e29f2634a2bbbf973fe2045' X# Created by: Nicolas Embriz X# $FreeBSD: $ X XPORTNAME= galera XPORTVERSION?= 26.4.2 XPKGNAMESUFFIX= 26 XPORTREVISION= 0 XDISTVERSIONPREFIX?= release_ XCATEGORIES= databases X XMAINTAINER= devel@galeracluster.com XCOMMENT= Synchronous multi-master replication engine X XLICENSE= GPLv2 X XBROKEN_aarch64= fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var' XBROKEN_armv6= fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var' XBROKEN_armv7= fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var' XNOT_FOR_ARCHS= i386 X# On i386 older versions of clang produce: X# cannot compile this atomic library call yet ... __atomic_add_fetch X# whereas newer ones generate a call to __atomic_add_fetch which ends up with X# undefined reference at link time: X# undefined reference to `__atomic_fetch_add_8' X# https://bugs.llvm.org//show_bug.cgi?id=23262 X# https://bugs.llvm.org//show_bug.cgi?id=24908 X# https://tracker.crystax.net/issues/1263 XNOT_FOR_ARCHS_REASON_i386=Uses 64 bit atomics that clang cannot generate on i386 X XBUILD_DEPENDS= checkmk:devel/check \ X ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs XLIB_DEPENDS= libboost_date_time.so:devel/boost-libs X XUSES= compiler:c++11-lang python:build scons ssl X XUSE_LDCONFIG= yes X XUSE_GITHUB= yes XGH_TUPLE?= codership:galera:${DISTVERSIONPREFIX}${PORTVERSION}${DISTVERSIONSUFFIX} \ X codership:wsrep-API:75a5f452f2ba07b0f4a3a9a94825fccc71b27398:dummy/wsrep/src X XLDFLAGS+= -lboost_program_options -lboost_system XMAKE_ARGS+= revno=${GH_TAGNAME} system_asio=0 tests=0 X XUSE_RC_SUBR= garb.sh X X# Abuse TEST_TARGET to append tests=1 (which is not a target, strictly X# speaking) at the end of the "scons ..." command so that it overrides X# tests=0 from ${MAKE_ARGS}. To rerun the tests a second time, remove X# all *.passed files: find ./work -name *.passed -print -delete XTEST_TARGET= deterministic_tests=1 tests=1 X XPLIST_FILES= bin/garbd \ X lib/libgalera.so \ X lib/libgalera_smm.so X XOPTIONS_DEFINE= BOOSTPOOL BPOSTATIC DEBUG X XBOOSTPOOL_DESC= Use boost pool allocator XBPOSTATIC_DESC= Use static boost_program_options X XBOOSTPOOL_MAKE_ARGS= boost_pool=1 XBPOSTATIC_MAKE_ARGS= bpostatic=${LOCALBASE}/lib/libboost_program_options.a XDEBUG_MAKE_ARGS= debug=0 X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/garb/garbd ${STAGEDIR}${PREFIX}/bin/ X ${INSTALL_LIB} ${WRKSRC}/libgalera_smm.so ${STAGEDIR}${PREFIX}/lib/ X @(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libgalera_smm.so \ X libgalera.so) X X.include 242e8ade7e29f2634a2bbbf973fe2045 echo c - galera26/files mkdir -p galera26/files > /dev/null 2>&1 echo x - galera26/files/garb.sh.in sed 's/^X//' >galera26/files/garb.sh.in << 'f76ab75cf4a72e30c30b9b47e4259b7c' X#!/bin/sh X# X# garb.sh for rc.d usage (c) 2013 Codership Oy X# $Id$ X X# PROVIDE: garb X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add the following line to /etc/rc.conf to enable Galera Arbitrator Daemon (garbd): X# garb_enable (bool): Set to "NO" by default. X# Set it to "YES" to enable Galera Arbitrator Daemon. X# garb_galera_nodes (str): A space-separated list of node addresses (address[:port]) in the cluster X# (default empty). X# garb_galera_group (str): Galera cluster name, should be the same as on the rest of the nodes. X# (default empty). X# Optional: X# garb_galera_options (str): Optional Galera internal options string (e.g. SSL settings) X# see http://www.codership.com/wiki/doku.php?id=galera_parameters X# (default empty). X# garb_log_file (str): Log file for garbd (default empty). Optional, by default logs to syslog X# garb_pid_file (str): Custum PID file path and name. X# Default to "/var/run/garb.pid". X# X X. /etc/rc.subr X Xname="garb" Xrcvar=garb_enable X Xload_rc_config $name X X# set defaults X: ${garb_enable="NO"} X: ${garb_galera_nodes=""} X: ${garb_galera_group=""} X: ${garb_galera_options=""} X: ${garb_log_file=""} X: ${garb_pid_file="/var/run/garbd"} X Xprocname="/usr/local/bin/garbd" Xcommand="/usr/sbin/daemon" Xcommand_args="-c -f -u nobody -p $garb_pid_file $procname" Xstart_precmd="${name}_prestart" X#start_cmd="${name}_start" Xstart_postcmd="${name}_poststart" Xstop_precmd="${name}_prestop" X#stop_cmd="${name}_stop" X#stop_postcmd="${name}_poststop" X#extra_commands="reload" X#reload_cmd="${name}_reload" X#export LD_LIBRARY_PATH=/usr/local/lib/gcc44 X Xgarb_prestart() X{ X [ "$(id -ur)" != "0" ] && err 4 "root rights are required to start $name" X [ -r "$garb_pid_file" ] && err 0 "$procname is already running with PID $(cat $garb_pid_file)" X [ -x "$procname" ] || err 5 "$procname is not found" X X # check that node addresses are configured X [ -z "$garb_galera_nodes" ] && err 6 "List of garb_galera_nodes is not configured" X [ -z "$garb_galera_group" ] && err 6 "garb_galera_group name is not configured" X X GALERA_PORT=${GALERA_PORT:-4567} X X # Concatenate all nodes in the list (for backward compatibility) X ADDRESS= X for NODE in ${garb_galera_nodes}; do X [ -z "$ADDRESS" ] && ADDRESS="$NODE" || ADDRESS="$ADDRESS,$NODE" X done X X command_args="$command_args -a gcomm://$ADDRESS" X [ -n "$garb_galera_group" ] && command_args="$command_args -g $garb_galera_group" X [ -n "$garb_galera_options" ] && command_args="$command_args -o $garb_galera_options" X [ -n "$garb_log_file" ] && command_args="$command_args -l $garb_log_file" X return 0 X} X Xgarb_poststart() X{ X local timeout=15 X while [ ! -f "$garb_pid_file" -a $timeout -gt 0 ]; do X timeout=$(( timeout - 1 )) X sleep 1 X done X return 0 X} X Xgarb_prestop() { X [ "$(id -ur)" != "0" ] && err 4 "root rights are required to stop $name" X [ -r $garb_pid_file ] || err 0 "" X return 0 X} X Xrun_rc_command "$1" f76ab75cf4a72e30c30b9b47e4259b7c echo x - galera26/pkg-descr sed 's/^X//' >galera26/pkg-descr << '7680b7446fd71ee72742e684d5aa350f' XGalera v26 wsrep provider library for Galera Cluster for MySQL, an easy-to-use Xhigh-availability solution with high system up-time, no data loss, Xand scalability for future growth. X XWWW: http://galeracluster.com/ 7680b7446fd71ee72742e684d5aa350f exit