From owner-svn-ports-all@FreeBSD.ORG Sat Dec 15 08:11:03 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B92A8B67; Sat, 15 Dec 2012 08:11:03 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 93C108FC0C; Sat, 15 Dec 2012 08:11:03 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBF8B3xw001025; Sat, 15 Dec 2012 08:11:03 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBF8B29S001014; Sat, 15 Dec 2012 08:11:02 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201212150811.qBF8B29S001014@svn.freebsd.org> From: Jason Helfman Date: Sat, 15 Dec 2012 08:11:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308935 - in head/devel: . libslave X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 08:11:03 -0000 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@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 +# $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 + +.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 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 +@dirrm include/libslave