From owner-svn-ports-head@freebsd.org Mon Oct 12 04:54:20 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1306AA1155D; Mon, 12 Oct 2015 04:54:20 +0000 (UTC) (envelope-from alfred@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0E3CA0A; Mon, 12 Oct 2015 04:54:19 +0000 (UTC) (envelope-from alfred@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9C4sIcK028147; Mon, 12 Oct 2015 04:54:18 GMT (envelope-from alfred@FreeBSD.org) Received: (from alfred@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9C4sInX028140; Mon, 12 Oct 2015 04:54:18 GMT (envelope-from alfred@FreeBSD.org) Message-Id: <201510120454.t9C4sInX028140@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: alfred set sender to alfred@FreeBSD.org using -f From: Alfred Perlstein Date: Mon, 12 Oct 2015 04:54:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399111 - in head/databases: . jlog jlog/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 04:54:20 -0000 Author: alfred (src committer) Date: Mon Oct 12 04:54:18 2015 New Revision: 399111 URL: https://svnweb.freebsd.org/changeset/ports/399111 Log: New port: databases/jlog JLog is short for "journaled log" and this package is really an API and implementation that is libjlog. What is libjlog? libjlog is a pure C, very simple durable message queue with multiple subscribers and publishers (both thread and multi-process safe). The basic concept is that publishers can open a log and write messages to it while subscribers open the log and consume messages from it. "That sounds easy." libjlog abstracts away the need to perform log rotation or maintenance by publishing into fixed size log buffers and eliminating old log buffers when there are no more consumers pending. WWW: https://labs.omniti.com/labs/jlog Reviewed by: brnrd Added: head/databases/jlog/ head/databases/jlog/Makefile (contents, props changed) head/databases/jlog/distinfo (contents, props changed) head/databases/jlog/files/ head/databases/jlog/files/patch-Makefile.in (contents, props changed) head/databases/jlog/files/patch-jlog_io.c (contents, props changed) head/databases/jlog/pkg-descr (contents, props changed) head/databases/jlog/pkg-plist (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Mon Oct 12 03:18:17 2015 (r399110) +++ head/databases/Makefile Mon Oct 12 04:54:18 2015 (r399111) @@ -122,6 +122,7 @@ SUBDIR += jdbc-oracle8i SUBDIR += jdbc-oracle9i SUBDIR += jdbm2 + SUBDIR += jlog SUBDIR += jrobin SUBDIR += jrrd SUBDIR += kbibtex Added: head/databases/jlog/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/jlog/Makefile Mon Oct 12 04:54:18 2015 (r399111) @@ -0,0 +1,38 @@ +# Created by: alfred +# $FreeBSD$ + +PORTNAME= jlog +# version is YYYYMMDDxx <- xx is 00, 01 as needed per day +PORTVERSION= 1.2.2.s2015012200 +CATEGORIES= databases + +MAINTAINER= alfred@FreeBSD.org +COMMENT= Journaled log library + +LICENSE= BSD3CLAUSE + +BUILD_DEPENDS= autoconf-2.13:${PORTSDIR}/devel/autoconf213 + +USE_GITHUB= yes +GH_ACCOUNT= omniti-labs +# cf3085fe contains c++ fixes and other additions over the 1.2.2 release +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= cf3085f + +GNU_CONFIGURE= yes +USES= perl5 shebangfix + +OPTIONS_DEFINE= PERL +OPTIONS_DEFAULT= PERL +OPTIONS_SUB= yes + +SHEBANG_FILES= jlog_change_endian.pl jlog_sanity_check.pl +perl_OLD_CMD= /opt/msys/3rdParty/bin/perl + +PERL_CONFIGURE_ON= --with-perl-lib=site +PERL_CONFIGURE_WITH= perl + +pre-configure: + (cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf-2.13) + +.include Added: head/databases/jlog/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/jlog/distinfo Mon Oct 12 04:54:18 2015 (r399111) @@ -0,0 +1,2 @@ +SHA256 (omniti-labs-jlog-1.2.2.s2015012200-cf3085f_GH0.tar.gz) = 3954102e3c3939a815e22a53258edfa6364395e12bb4dd327ed0425b07dc05b3 +SIZE (omniti-labs-jlog-1.2.2.s2015012200-cf3085f_GH0.tar.gz) = 86598 Added: head/databases/jlog/files/patch-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/jlog/files/patch-Makefile.in Mon Oct 12 04:54:18 2015 (r399111) @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2015-01-27 07:13:25 UTC ++++ Makefile.in +@@ -93,7 +93,7 @@ + $(INSTALL) -m 0755 libjlog.$(DOTSO) $(DESTDIR)$(libdir)/libjlog.$(DOTSO) + $(INSTALL) -m 0644 jlog.h $(DESTDIR)$(includedir)/jlog.h + $(INSTALL) -m 0644 jlog_config.h $(DESTDIR)$(includedir)/jlog_config.h +- cd perl ; make install DESTDIR=$(DESTDIR) INSTALLDIRS=vendor ++ cd perl ; make install DESTDIR=$(DESTDIR) INSTALLDIRS=site + + clean: + rm -f *.o *.lo *.$(DOTSO) *.a jthreadtest Added: head/databases/jlog/files/patch-jlog_io.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/jlog/files/patch-jlog_io.c Mon Oct 12 04:54:18 2015 (r399111) @@ -0,0 +1,10 @@ +--- jlog_io.c.orig 2015-08-14 14:37:55.150718000 -0700 ++++ jlog_io.c 2015-08-14 14:38:46.803672000 -0700 +@@ -129,6 +129,7 @@ + assert(jlog_hash_delete(&jlog_files, (void *)&f->id, sizeof(jlog_file_id), + NULL, NULL)); + while (close(f->fd) == -1 && errno == EINTR) ; ++ pthread_mutex_destroy(&(f->lock)); + free(f); + } + pthread_mutex_unlock(&jlog_files_lock); Added: head/databases/jlog/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/jlog/pkg-descr Mon Oct 12 04:54:18 2015 (r399111) @@ -0,0 +1,11 @@ +JLog is short for "journaled log" and this package is really an API +and implementation that is libjlog. What is libjlog? libjlog is a +pure C, very simple durable message queue with multiple subscribers +and publishers (both thread and multi-process safe). The basic +concept is that publishers can open a log and write messages to it +while subscribers open the log and consume messages from it. "That +sounds easy." libjlog abstracts away the need to perform log rotation +or maintenance by publishing into fixed size log buffers and +eliminating old log buffers when there are no more consumers pending. + +WWW: https://labs.omniti.com/labs/jlog Added: head/databases/jlog/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/jlog/pkg-plist Mon Oct 12 04:54:18 2015 (r399111) @@ -0,0 +1,14 @@ +bin/jlog_change_endian +bin/jlog_sanity_check +bin/jlogctl +include/jlog.h +include/jlog_config.h +lib/libjlog.a +lib/libjlog.so +%%SITE_ARCH%%/JLog.pm +%%SITE_ARCH%%/JLog/Reader.pm +%%SITE_ARCH%%/JLog/Writer.pm +%%SITE_ARCH%%/auto/JLog/JLog.so +%%PERL5_MAN3%%/JLog.3.gz +%%PERL5_MAN3%%/JLog::Reader.3.gz +%%PERL5_MAN3%%/JLog::Writer.3.gz