Date: Mon, 12 Oct 2015 04:54:18 +0000 (UTC) From: Alfred Perlstein <alfred@FreeBSD.org> 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 Message-ID: <201510120454.t9C4sInX028140@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510120454.t9C4sInX028140>