FreeBSD Bugzilla – Attachment 138630 Details for
Bug 184654
New port: databases/galera Synchronous multi-master replication engine
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
galera.shar.txt
galera.shar.txt (text/plain; charset=US-ASCII), 11.12 KB, created by
Horia Racoviceanu
on 2014-04-01 20:46:39 UTC
(
hide
)
Description:
galera.shar.txt
Filename:
MIME Type:
Creator:
Horia Racoviceanu
Created:
2014-04-01 20:46:39 UTC
Size:
11.12 KB
patch
obsolete
># 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: ># ># galera ># galera/files ># galera/files/garb.in ># galera/Makefile ># galera/distinfo ># galera/pkg-descr ># >echo c - galera >mkdir -p galera > /dev/null 2>&1 >echo c - galera/files >mkdir -p galera/files > /dev/null 2>&1 >echo x - galera/files/garb.in >sed 's/^X//' >galera/files/garb.in << '257044ddbaf13cd105f11ad73bf9a165' >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# >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/garb.pid"} >X >Xprocname="%%PREFIX%%/bin/garbd" >Xcommand="/usr/sbin/daemon" >Xcommand_args="-c -f -u nobody -p $garb_pid_file $procname" >Xstart_precmd="${name}_prestart" >Xstart_postcmd="${name}_poststart" >Xstop_precmd="${name}_prestop" >Xexport %%LD_LIBRARY_PATH%% >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 # Find a working node >X for ADDRESS in ${garb_galera_nodes} 0; do >X HOST=$(echo $ADDRESS | cut -d \: -f 1) >X PORT=$(echo $ADDRESS | cut -d \: -f 2) >X PORT=${PORT:-$GALERA_PORT} >X nc -z $HOST $PORT >/dev/null 2>&1 && break >X done >X [ ${ADDRESS} == "0" ] && err 1 "None of the nodes in $garb_galera_nodes is accessible" >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" >257044ddbaf13cd105f11ad73bf9a165 >echo x - galera/Makefile >sed 's/^X//' >galera/Makefile << 'a56e76b7267450f451944cd75a5ade44' >X# Created by: Horia Racoviceanu <horia@racoviceanu.com> >X# $FreeBSD$ >X >XPORTNAME= galera >XPORTVERSION= 25.3.5 >XDISTVERSIONSUFFIX= -src >XCATEGORIES= databases >XMASTER_SITES= https://launchpadlibrarian.net/170877450/ >X >XMAINTAINER= horia@racoviceanu.com >XCOMMENT= Synchronous multi-master replication engine >X >XLICENSE= GPLv2 >X >XBUILD_DEPENDS= checkmk:${PORTSDIR}/devel/libcheck \ >X doxygen:${PORTSDIR}/devel/doxygen \ >X ${PYTHON_PKGNAMEPREFIX}cloud_sptheme>=0:${PORTSDIR}/textproc/py-cloud_sptheme >XLIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs \ >X libexecinfo.so:${PORTSDIR}/devel/libexecinfo >X >XUSES= scons shebangfix >X >XUSE_CXXSTD= c++11 >XUSE_LDCONFIG= yes >XUSE_OPENSSL= yes >XUSE_PYTHON= yes >X >XMAKE_CMD= ${SCONS} -j${MAKE_JOBS_NUMBER} --config=force >X >XSHEBANG_FILES= docs/sphinx-* >X >XPLIST_FILES= %%GARB%%bin/garbd \ >X lib/libgalera_smm.so \ >X lib/libgalera.so >X >XPORTDOCS= * >X >XDOCSRCDIR1= ${WRKSRC} >XDOC_FILES1= AUTHORS README >X >XDOCSRCDIR2= ${DOCSRCDIR1}/docs/build/doc >X >XDOCSRCDIR3= ${DOCSRCDIR1}/galerautils >XDOCSDIR3= ${DOCSDIR}/galerautils >XDOC_FILES3= ChangeLog README >X >XDOCSRCDIR4= ${DOCSRCDIR1}/gcache >XDOCSDIR4= ${DOCSDIR}/gcache >XDOC_FILES4= AUTHORS README >X >XDOCSRCDIR5= ${DOCSRCDIR1}/gcs >XDOCSDIR5= ${DOCSDIR}/gcs >XDOC_FILES5= ChangeLog README doc/*.txt doc/*.odt doc/*.png >X >XOPTIONS_DEFINE= BOOSTPOOL BPOSTATIC DEBUG DOCS GARB TEST >XOPTIONS_GROUP= DOCS >XOPTIONS_GROUP_DOCS= EPUB JSON LATEX PICKLE >XOPTIONS_DEFAULT=GARB >XOPTIONS_SUB= yes >X >XBOOSTPOOL_DESC= Use boost pool allocator >XBPOSTATIC_DESC= Use static boost_program_options >XEPUB_DESC= EPUB support >XPICKLE_DESC= Pickle support >XGARB_DESC= Galera Arbitrator >X >XGARB_USE= RC_SUBR=garb >X >X.include <bsd.port.pre.mk> >X >X.if ${OSVERSION} > 1000000 >XBUILD_DEPENDS+= asio>=0:${PORTSDIR}/net/asio >XRUN_DEPENDS:= ${BUILD_DEPENDS} >X.else >XUSE_GCC= yes >X.endif >X >X.if ${OSVERSION} < 900506 >XIGNORE= need __WORDSIZE found in FreeBSD 9 >X.endif >X >X.if ${PORT_OPTIONS:MBOOSTPOOL} >XMAKE_CMD+= boost_pool=1 >X.endif >X >X.if ${PORT_OPTIONS:MBPOSTATIC} >XMAKE_CMD+= bpostatic=${PREFIX}/lib/libboost_program_options.so >X.endif >X >X.if ${PORT_OPTIONS:MDEBUG} >XMAKE_CMD+= debug=3 >X.endif >X >X.if ${PORT_OPTIONS:MGARB} >XSUB_LIST= LD_LIBRARY_PATH=${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH >X.endif >X >Xpost-patch: >X @${REINPLACE_CMD} -e '/-Werror/d' ${WRKSRC}/SConstruct >X >X.if ${OSVERSION} > 1000000 >X @${REINPLACE_CMD} -e '/#\/asio/d' ${WRKSRC}/SConstruct >X @${REINPLACE_CMD} -e 's|LLONG_MAX|gu::LOG_MAX|' \ >X ${WRKSRC}/galera/src/monitor.hpp >X.endif >X >X.if ! ${PORT_OPTIONS:MGARB} >X @${REINPLACE_CMD} -e "s|'galera/SConscript',|'galera/SConscript'])|; \ >X /'garb\/SConscript'])/d" ${WRKSRC}/SConscript >X.endif >X >X @${REINPLACE_CMD} -e "s|'tests', 1|'tests', 0|" ${WRKSRC}/SConstruct >X >X.if ! ${PORT_OPTIONS:MTEST} >X @${REINPLACE_CMD} -e 's| tests/SConscript||' \ >X ${WRKSRC}/galerautils/SConscript ${WRKSRC}/gcache/SConscript >X @${REINPLACE_CMD} -e "s|, 'tests/SConscript'||" \ >X ${WRKSRC}/galera/SConscript >X.endif >X >X @${REINPLACE_CMD} -e "s|\[u'Codership Oy'\], 1|\[u'Codership Oy'\], 8|" \ >X ${WRKSRC}/docs/pasture/source/conf.py >X >X.for d in galerautils gcomm gcs >X @${REINPLACE_CMD} -e 's|= ./|= ../../docs/build/doc/${d}|; \ >X s|= man|= ../../man|' ${WRKSRC}/${d}/doc/Doxyfile >X >X. if ! ${PORT_OPTIONS:MDOCS} >X @${MKDIR} ${WRKSRC}/docs/build/doc/${d} >X @${REINPLACE_CMD} -e '/GENERATE_HTML / s|YES|NO|' \ >X ${WRKSRC}/${d}/doc/Doxyfile >X. elif ${PORT_OPTIONS:MLATEX} >X @${REINPLACE_CMD} -e '/GENERATE_LATEX/ s|NO|YES|; s|= a4wide|= a4|; \ >X /LATEX_OUTPUT/ s|latex|&|' ${WRKSRC}/${d}/doc/Doxyfile >X. endif >X.endfor >X >Xpost-build: >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b man \ >X -d build/doctrees source build/man/man1) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b man \ >X -d build/doctrees/pasture pasture/source build/man/man8) >X >X.if ${PORT_OPTIONS:MDOCS} >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b html \ >X -d build/doctrees source build/doc/galera/html) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b text \ >X -d build/doctrees source build/doc/galera/text) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b html \ >X -d build/doctrees/pasture pasture/source build/doc/pasture/html) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b text \ >X -d build/doctrees/pasture pasture/source build/doc/pasture/text) >X >X. if ${PORT_OPTIONS:MEPUB} >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b epub \ >X -d build/doctrees source build/doc/galera/epub) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b epub \ >X -d build/doctrees/pasture pasture/source build/doc/pasture/epub) >X. endif >X >X. if ${PORT_OPTIONS:MJSON} >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b json \ >X -d build/doctrees source build/doc/galera/json) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b json \ >X -d build/doctrees/pasture pasture/source build/doc/pasture/json) >X. endif >X >X. if ${PORT_OPTIONS:MLATEX} >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b latex \ >X -d build/doctrees source build/doc/galera/latex) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b latex \ >X -d build/doctrees/pasture pasture/source \ >X build/doc/pasture/latex) >X. endif >X >X. if ${PORT_OPTIONS:MPICKLE} >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b pickle \ >X -d build/doctrees source build/doc/galera/pickle) >X @(cd ${BUILD_WRKSRC}/docs && sphinx-build -a -b pickle \ >X -d build/doctrees/pasture \ >X pasture/source build/doc/pasture/pickle) >X. endif >X.endif >X >X @(cd ${BUILD_WRKSRC}/galerautils/doc && doxygen Doxyfile) >X @(cd ${BUILD_WRKSRC}/gcomm/doc && doxygen Doxyfile) >X @(cd ${BUILD_WRKSRC}/gcs/doc && doxygen Doxyfile) >X >Xdo-install: >X ${INSTALL_LIB} ${WRKDIR}/${DISTNAME}/libgalera_smm.so \ >X ${STAGEDIR}${PREFIX}/lib/ >X @(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libgalera_smm.so \ >X libgalera.so) >X >X.if ${PORT_OPTIONS:MGARB} >X ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/garb/garbd \ >X ${STAGEDIR}${PREFIX}/bin/ >X.endif >X >X @(cd ${WRKSRC}/docs/build/man/man1 && ${INSTALL_MAN} \ >X ${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/) >X @(cd ${WRKSRC}/docs/build/man/man3 && ${RM} _*.3 && ${INSTALL_MAN} \ >X *.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/) >X @(cd ${WRKSRC}/docs/build/man/man8 && ${INSTALL_MAN} \ >X ${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/) >X >X @cd ${STAGEDIR}${MANPREFIX} && \ >X ${FIND} -H -s man/man*/ -maxdepth 1 -type f -print | \ >X ${SED} 's|$$|.gz|' >> ${TMPPLIST} >X >Xpost-install: >X.if ${PORT_OPTIONS:MDOCS} >X @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR4} >X ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} >X (cd ${DOCSRCDIR2} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) >X ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3} >X ${INSTALL_DATA} ${DOC_FILES4:S|^|${DOCSRCDIR4}/|} ${STAGEDIR}${DOCSDIR4} >X ${INSTALL_DATA} ${DOC_FILES5:S|^|${DOCSRCDIR5}/|} ${STAGEDIR}${DOCSDIR5} >X.endif >X >X.include <bsd.port.post.mk> >a56e76b7267450f451944cd75a5ade44 >echo x - galera/distinfo >sed 's/^X//' >galera/distinfo << '7a063854f908d24c7d2d206b7a92676b' >XSHA256 (galera-25.3.5-src.tar.gz) = 9e6d718bac9608c69cbfc0662963b29c13659c576aaa8469b6a325d75603f7a3 >XSIZE (galera-25.3.5-src.tar.gz) = 3820268 >7a063854f908d24c7d2d206b7a92676b >echo x - galera/pkg-descr >sed 's/^X//' >galera/pkg-descr << '379cdda07570333c04313562f33484b8' >XGalera wsrep provider to 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 >379cdda07570333c04313562f33484b8 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 184654
:
138629
| 138630