Commit 70a22535 authored by jgh's avatar jgh
Browse files

- add new port: devel/libslave

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.

WWW: https://github.com/Begun/libslave

PR:		174335
Submitted by:	g.veniamin@googlemail.com
parent 0e7cd689
......@@ -1030,6 +1030,7 @@
SUBDIR += libsigcx
SUBDIR += libsigsegv
SUBDIR += libslang2
SUBDIR += libslave
SUBDIR += libsoup
SUBDIR += libsoup-gnome
SUBDIR += libsoup-reference
......
# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
# $FreeBSD$
PORTNAME= libslave
PORTVERSION= 0.0.${DATE}
CATEGORIES= devel databases
MASTER_SITES= GH GHC
MAINTAINER= g.veniamin@googlemail.com
COMMENT= Mysql replication client library, embeddable into your C++ application
LICENSE= GPLv3
LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs
DATE= 20121210
USE_CMAKE= yes
USE_LDCONFIG= yes
USE_MYSQL= client
USE_GITHUB= yes
GH_ACCOUNT= Begun
GH_COMMIT= 64d548b
GH_TAGNAME= master
PORTEXAMPLES= *
OPTIONS_DEFINE= STATIC TEST EXAMPLES
STATIC_DESC= Build static lib
TEST_DESC= Build test binary
OPTIONS_DEFAULT=STATIC
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSTATIC}
PLIST_SUB+= STATIC=""
CMAKE_ARGS+= -DENABLE_STATIC=ON
.else
CMAKE_ARGS+= -DENABLE_STATIC=OFF
PLIST_SUB+= STATIC="@comment "
.endif
.if ${PORT_OPTIONS:MTEST}
PLIST_SUB+= TEST=""
CMAKE_ARGS+= -DENABLE_TEST=ON
.else
CMAKE_ARGS+= -DENABLE_TEST=OFF
PLIST_SUB+= TEST="@comment "
.endif
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} test ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
SHA256 (libslave-0.0.20121210.tar.gz) = 5062e6c3757af510e7f82eeaa463f13628d5a7a24b77b268fbc10e0fe1929d25
SIZE (libslave-0.0.20121210.tar.gz) = 30057
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.
WWW: https://github.com/Begun/libslave
%%TEST%%bin/slave_test
include/libslave/Logging.h
include/libslave/Slave.h
include/libslave/SlaveStats.h
include/libslave/collate.h
include/libslave/field.h
include/libslave/nanomysql.h
include/libslave/recordset.h
include/libslave/relayloginfo.h
include/libslave/slave_log_event.h
include/libslave/table.h
%%STATIC%%lib/libslave.a
lib/libslave.so
lib/libslave.so.0
@dirrm include/libslave
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment