svn commit: r308935 - in head/devel: . libslave
Jason Helfman
jgh at FreeBSD.org
Sat Dec 15 08:11:03 UTC 2012
Author: jgh
Date: Sat Dec 15 08:11:02 2012
New Revision: 308935
URL: http://svnweb.freebsd.org/changeset/ports/308935
Log:
- 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 at googlemail.com
Added:
head/devel/libslave/
head/devel/libslave/Makefile (contents, props changed)
head/devel/libslave/distinfo (contents, props changed)
head/devel/libslave/pkg-descr (contents, props changed)
head/devel/libslave/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sat Dec 15 07:59:00 2012 (r308934)
+++ head/devel/Makefile Sat Dec 15 08:11:02 2012 (r308935)
@@ -1030,6 +1030,7 @@
SUBDIR += libsigcx
SUBDIR += libsigsegv
SUBDIR += libslang2
+ SUBDIR += libslave
SUBDIR += libsoup
SUBDIR += libsoup-gnome
SUBDIR += libsoup-reference
Added: head/devel/libslave/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libslave/Makefile Sat Dec 15 08:11:02 2012 (r308935)
@@ -0,0 +1,56 @@
+# Created by: Gvozdikov Veniamin <g.veniamin at googlemail.com>
+# $FreeBSD$
+
+PORTNAME= libslave
+PORTVERSION= 0.0.${DATE}
+CATEGORIES= devel databases
+MASTER_SITES= GH GHC
+
+MAINTAINER= g.veniamin at 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>
Added: head/devel/libslave/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libslave/distinfo Sat Dec 15 08:11:02 2012 (r308935)
@@ -0,0 +1,2 @@
+SHA256 (libslave-0.0.20121210.tar.gz) = 5062e6c3757af510e7f82eeaa463f13628d5a7a24b77b268fbc10e0fe1929d25
+SIZE (libslave-0.0.20121210.tar.gz) = 30057
Added: head/devel/libslave/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libslave/pkg-descr Sat Dec 15 08:11:02 2012 (r308935)
@@ -0,0 +1,12 @@
+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
Added: head/devel/libslave/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libslave/pkg-plist Sat Dec 15 08:11:02 2012 (r308935)
@@ -0,0 +1,15 @@
+%%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
+ at dirrm include/libslave
More information about the svn-ports-head
mailing list