Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2012 16:22:44 GMT
From:      Veniamin Gvozdikov <g.veniamin@googlemail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/174335: [new port]: devel/libslave Mysql replication client library, embeddable into your C++ application
Message-ID:  <201212101622.qBAGMiL0009187@red.freebsd.org>
Resent-Message-ID: <201212101630.qBAGU1FG091062@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         174335
>Category:       ports
>Synopsis:       [new port]: devel/libslave Mysql replication client library, embeddable into your C++ application
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 10 16:30:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Veniamin Gvozdikov
>Release:        FreeBSD 8.3-RELEASE-p5
>Organization:
>Environment:
FreeBSD ololo 8.3-RELEASE-p5 FreeBSD 8.3-RELEASE-p5 #0: Thu Dec  6 16:25:28 MSK 2012     root@ololo:/usr/obj/usr/src/sys/OLOLO  amd64
>Description:
This is a library that allows any arbitrary C++ application to connect
to a Mysql replication master and read/parse the replication binary
logs.

In effect, any application can now act like a Mysql replication slave,
without having to compile or link with any Mysql server code.

One important use-case for this library is for receiving changes in
the master database in real-time, without having the store the
master's data on the client server.
>How-To-Repeat:

>Fix:
# 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:
#
#	libslave
#	libslave/pkg-plist
#	libslave/distinfo
#	libslave/Makefile
#	libslave/pkg-descr
#
echo c - libslave
mkdir -p libslave > /dev/null 2>&1
echo x - libslave/pkg-plist
sed 's/^X//' >libslave/pkg-plist << '9fa59d1afb10928e1b1b582bfa445d68'
X%%TEST%%bin/slave_test
Xinclude/libslave/Logging.h
Xinclude/libslave/Slave.h
Xinclude/libslave/SlaveStats.h
Xinclude/libslave/collate.h
Xinclude/libslave/field.h
Xinclude/libslave/nanomysql.h
Xinclude/libslave/recordset.h
Xinclude/libslave/relayloginfo.h
Xinclude/libslave/slave_log_event.h
Xinclude/libslave/table.h
X%%STATIC%%lib/libslave.a
Xlib/libslave.so
Xlib/libslave.so.0
X@dirrm include/libslave
9fa59d1afb10928e1b1b582bfa445d68
echo x - libslave/distinfo
sed 's/^X//' >libslave/distinfo << '1fde8392031b436256ed602aa5039ae7'
XSHA256 (libslave-20121210.tar.gz) = 5062e6c3757af510e7f82eeaa463f13628d5a7a24b77b268fbc10e0fe1929d25
XSIZE (libslave-20121210.tar.gz) = 30057
1fde8392031b436256ed602aa5039ae7
echo x - libslave/Makefile
sed 's/^X//' >libslave/Makefile << '97f1ad63c7735d8f4652f1fc5e7a4921'
X# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
X# $FreeBSD$
X
XPORTNAME=	libslave
XPORTVERSION=	20121210
XCATEGORIES=	devel
XMASTER_SITES=	GH GHC
X
XMAINTAINER=	g.veniamin@googlemail.com
XCOMMENT=	Mysql replication client library, embeddable into your C++ application
X
XLIB_DEPENDS=	boost_thread:${PORTSDIR}/devel/boost-libs
X
XUSE_CMAKE=	yes
XUSE_GITHUB=	yes
XUSE_LDCONFIG=	yes
XUSE_MYSQL=	client
XGH_ACCOUNT=	Begun
XGH_COMMIT=	64d548b
XGH_TAGNAME=	master
X
XOPTIONS_DEFINE=	STATIC TEST
XSTATIC_DESC=	Build static lib
XTEST_DESC=	Build test binary
X
XOPTIONS_DEFAULT=STATIC
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MSTATIC}
XPLIST_SUB+=	STATIC=""
XCMAKE_ARGS+=	-DENABLE_STATIC=ON
X.else
XCMAKE_ARGS+=	-DENABLE_STATIC=OFF
XPLIST_SUB+=	STATIC="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MTEST}
XPLIST_SUB+=	TEST=""
XCMAKE_ARGS+=	-DENABLE_TEST=ON
X.else
XCMAKE_ARGS+=	-DENABLE_TEST=OFF
XPLIST_SUB+=	TEST="@comment "
X.endif
X
X.include <bsd.port.mk>
97f1ad63c7735d8f4652f1fc5e7a4921
echo x - libslave/pkg-descr
sed 's/^X//' >libslave/pkg-descr << '541ede52f60e4624db37dc3bbe9fe997'
XThis is a library that allows any arbitrary C++ application to connect
Xto a Mysql replication master and read/parse the replication binary
Xlogs.
X
XIn effect, any application can now act like a Mysql replication slave,
Xwithout having to compile or link with any Mysql server code.
X
XOne important use-case for this library is for receiving changes in
Xthe master database in real-time, without having the store the
Xmaster's data on the client server.
X
XWWW: https://github.com/Begun/libslave
541ede52f60e4624db37dc3bbe9fe997
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212101622.qBAGMiL0009187>