Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2013 08:09:21 +0000 (UTC)
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318279 - in head/sysutils: . replicant replicant/files
Message-ID:  <201305160809.r4G89L9S035744@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mandree
Date: Thu May 16 08:09:21 2013
New Revision: 318279
URL: http://svnweb.freebsd.org/changeset/ports/318279

Log:
  Add new port sysutils/replicant:
  
  Replicant is a tool for creating replicated state machines.
  
  WWW: https://github.com/rescrv/Replicant
  
  PR:		ports/178665
  Submitted by:	Veniamin Gvozdikov <g.veniamin@googlemail.com>

Added:
  head/sysutils/replicant/
  head/sysutils/replicant/Makefile   (contents, props changed)
  head/sysutils/replicant/distinfo   (contents, props changed)
  head/sysutils/replicant/files/
  head/sysutils/replicant/files/patch-Makefile.in   (contents, props changed)
  head/sysutils/replicant/files/patch-common_packing.cc   (contents, props changed)
  head/sysutils/replicant/files/patch-daemon_object_manager.cc   (contents, props changed)
  head/sysutils/replicant/pkg-descr   (contents, props changed)
  head/sysutils/replicant/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Thu May 16 07:43:44 2013	(r318278)
+++ head/sysutils/Makefile	Thu May 16 08:09:21 2013	(r318279)
@@ -773,6 +773,7 @@
     SUBDIR += relpath
     SUBDIR += rename
     SUBDIR += reoback
+    SUBDIR += replicant
     SUBDIR += respond
     SUBDIR += retail
     SUBDIR += rfstool

Added: head/sysutils/replicant/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/replicant/Makefile	Thu May 16 08:09:21 2013	(r318279)
@@ -0,0 +1,38 @@
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
+# $FreeBSD$
+
+PORTNAME=	replicant
+PORTVERSION=	0.2.1
+CATEGORIES=	sysutils
+MASTER_SITES=	http://hyperdex.org/src/
+
+MAINTAINER=	g.veniamin@googlemail.com
+COMMENT=	Replicant is a tool for creating replicated state machines
+
+BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/libpo6.pc:${PORTSDIR}/devel/libpo6
+LIB_DEPENDS=	busybee:${PORTSDIR}/devel/busybee \
+		e:${PORTSDIR}/devel/libe \
+		glog:${PORTSDIR}/devel/glog \
+		leveldb:${PORTSDIR}/databases/leveldb \
+		popt:${PORTSDIR}/devel/popt
+
+ONLY_FOR_ARCHS=	amd64
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+CONFIGURE_ARGS=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
+USES=		pathfix pkgconfig
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 90014 || !exists(clang++)
+# newer GCC versions than 4.6 do not work; clang 3.1 seems fine;
+# bug report to upstream at: <https://github.com/rescrv/po6/issues/5>;
+USE_GCC=	4.6
+.else
+CC=		clang
+CXX=		clang++
+CPP=		clang-cpp
+.endif
+
+.include <bsd.port.post.mk>

Added: head/sysutils/replicant/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/replicant/distinfo	Thu May 16 08:09:21 2013	(r318279)
@@ -0,0 +1,2 @@
+SHA256 (replicant-0.2.1.tar.gz) = 1a2cc2b5eddf544ccef28efa44c659075612926ff6eb57aa32ae4c5d6ca0404c
+SIZE (replicant-0.2.1.tar.gz) = 397446

Added: head/sysutils/replicant/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/replicant/files/patch-Makefile.in	Thu May 16 08:09:21 2013	(r318279)
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2013-05-14 12:08:06.731909984 +0000
++++ Makefile.in	2013-05-14 12:08:13.759911180 +0000
+@@ -497,7 +497,7 @@
+ 			daemon/object_manager.cc \
+ 			daemon/settings.cc
+ 
+-replicant_daemon_LDADD = $(E_LIBS) $(BUSYBEE_LIBS) -lglog -lleveldb -ldl -lpthread libreplicant-state-machine.la
++replicant_daemon_LDADD = $(E_LIBS) $(BUSYBEE_LIBS) -lglog -lleveldb -lpthread libreplicant-state-machine.la
+ libreplicant_la_CXXFLAGS = $(CXXFLAGS) $(AM_CXXFLAGS)
+ libreplicant_la_SOURCES = \
+ 			common/bootstrap.cc \

Added: head/sysutils/replicant/files/patch-common_packing.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/replicant/files/patch-common_packing.cc	Thu May 16 08:09:21 2013	(r318279)
@@ -0,0 +1,20 @@
+--- common/packing.cc.orig	2013-05-14 11:51:52.766912852 +0000
++++ common/packing.cc	2013-05-14 11:56:57.204910871 +0000
+@@ -50,7 +50,7 @@
+         rhs.pack(&sa, 0);
+ #ifdef _MSC_VER
+         memmove(data, &sa.sin6_addr.u.Byte, 16);
+-#elif defined __APPLE__
++#elif defined __APPLE__ || defined __FreeBSD__
+         memmove(data, &sa.sin6_addr.__u6_addr.__u6_addr8, 16);
+ #else
+         memmove(data, &sa.sin6_addr.__in6_u.__u6_addr8, 16);
+@@ -90,7 +90,7 @@
+         in6_addr ia;
+ #ifdef _MSC_VER
+         memmove(ia.u.Byte, rem.data(), 16);
+-#elif defined __APPLE__
++#elif defined __APPLE__ || defined __FreeBSD__
+         memmove(ia.__u6_addr.__u6_addr8, rem.data(), 16);
+ #else
+         memmove(ia.__in6_u.__u6_addr8, rem.data(), 16);

Added: head/sysutils/replicant/files/patch-daemon_object_manager.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/replicant/files/patch-daemon_object_manager.cc	Thu May 16 08:09:21 2013	(r318279)
@@ -0,0 +1,14 @@
+--- daemon/object_manager.cc.orig	2013-05-14 11:57:51.191911826 +0000
++++ daemon/object_manager.cc	2013-05-14 12:00:23.328908089 +0000
+@@ -60,7 +60,10 @@
+ #include "daemon/object_manager.h"
+ #include "daemon/replicant_state_machine.h"
+ #include "daemon/replicant_state_machine_context.h"
+-#if defined __APPLE__
++#if defined __APPLE__ || defined __FreeBSD__
++#ifdef __FreeBSD__
++#include <sys/stat.h>
++#endif
+ #include "daemon/memstream.h"
+ #endif
+ 

Added: head/sysutils/replicant/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/replicant/pkg-descr	Thu May 16 08:09:21 2013	(r318279)
@@ -0,0 +1,3 @@
+Replicant is a tool for creating replicated state machines
+
+WWW: https://github.com/rescrv/Replicant

Added: head/sysutils/replicant/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/replicant/pkg-plist	Thu May 16 08:09:21 2013	(r318279)
@@ -0,0 +1,17 @@
+bin/replicant
+include/replicant.h
+include/replicant_state_machine.h
+lib/libreplicant-state-machine.a
+lib/libreplicant-state-machine.la
+lib/libreplicant-state-machine.so
+lib/libreplicant-state-machine.so.0
+lib/libreplicant.a
+lib/libreplicant.la
+lib/libreplicant.so
+lib/libreplicant.so.0
+libdata/pkgconfig/replicant.pc
+libexec/replicant-0.2.1/replicant-daemon
+libexec/replicant-0.2.1/replicant-del-object
+libexec/replicant-0.2.1/replicant-new-object
+libexec/replicant-0.2.1/replicant-repair
+@dirrm libexec/replicant-0.2.1



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