From owner-svn-ports-head@FreeBSD.ORG Mon Mar 11 23:58:02 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C44087FC; Mon, 11 Mar 2013 23:58:02 +0000 (UTC) (envelope-from delphij@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 A4957ABC; Mon, 11 Mar 2013 23:58:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2BNw2U0044243; Mon, 11 Mar 2013 23:58:02 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2BNw1WJ044238; Mon, 11 Mar 2013 23:58:01 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201303112358.r2BNw1WJ044238@svn.freebsd.org> From: Xin LI Date: Mon, 11 Mar 2013 23:58:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313947 - in head/databases: . lmdb lmdb/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.14 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, 11 Mar 2013 23:58:02 -0000 Author: delphij Date: Mon Mar 11 23:58:01 2013 New Revision: 313947 URL: http://svnweb.freebsd.org/changeset/ports/313947 Log: LMDB is an ultra-fast, ultra-compact key-value data store developed by Symas for the OpenLDAP Project. PR: ports/174007 Added: head/databases/lmdb/ head/databases/lmdb/Makefile (contents, props changed) head/databases/lmdb/distinfo (contents, props changed) head/databases/lmdb/files/ head/databases/lmdb/files/patch-Makefile (contents, props changed) head/databases/lmdb/pkg-descr (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Mon Mar 11 23:54:38 2013 (r313946) +++ head/databases/Makefile Mon Mar 11 23:58:01 2013 (r313947) @@ -178,6 +178,7 @@ SUBDIR += linux-oracle-instantclient-sdk SUBDIR += linux-oracle-instantclient-sqlplus SUBDIR += liquibase + SUBDIR += lmdb SUBDIR += lsdb SUBDIR += luasql-mysql SUBDIR += luasql-postgres Added: head/databases/lmdb/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/lmdb/Makefile Mon Mar 11 23:58:01 2013 (r313947) @@ -0,0 +1,29 @@ +# Created by: Xin Li +# $FreeBSD$ + +PORTNAME= lmdb +PORTVERSION= 0.9.6 +CATEGORIES= databases +MASTER_SITES= https://gitorious.org/${GO_ACCOUNT}/${GO_PROJECT}/archive-tarball/${GO_TAGNAME}?dummy= + +MAINTAINER= delphij@FreeBSD.org +COMMENT= OpenLDAP Lightning Memory-Mapped Database + +# XXX FreeBSD does not implement O_DSYNC and fdatasync at this time. +CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync +WRKSRC= ${WRKDIR}/mdb-mdb/libraries/liblmdb +MAKE_ENV+= CC="${CC}" +MAKE_ENV+= XCFLAGS="${CFLAGS} ${PTHREAD_LIBS}" prefix="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" +MAKE_ENV+= INSTALL_LIB="${INSTALL_LIB}" INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}" + +GO_ACCOUNT= mdb +GO_PROJECT= mdb +GO_TAGNAME= ${PORTNAME:U}_${PORTVERSION:S/./_/g} +FETCH_ARGS?= -o - > ${DISTDIR}/${DISTFILES} + +MAN1= mdb_stat.1 mdb_copy.1 +PLIST_FILES= lib/liblmdb.a lib/liblmdb.so +PLIST_FILES+= bin/mdb_stat bin/mdb_copy +PLIST_FILES+= include/lmdb.h + +.include Added: head/databases/lmdb/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/lmdb/distinfo Mon Mar 11 23:58:01 2013 (r313947) @@ -0,0 +1,2 @@ +SHA256 (lmdb-0.9.6.tar.gz) = dddbf8de3f1802d6060f14bbcd37397fbebaf10971a20bfe5f2dcb008a44f14d +SIZE (lmdb-0.9.6.tar.gz) = 96903 Added: head/databases/lmdb/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/lmdb/files/patch-Makefile Mon Mar 11 23:58:01 2013 (r313947) @@ -0,0 +1,42 @@ +--- ./Makefile.orig 2013-02-25 05:06:51.000000000 -0800 ++++ ./Makefile 2013-03-11 12:29:40.265384057 -0700 +@@ -1,23 +1,21 @@ +-CC = gcc + W = -W -Wall -Wno-unused-parameter -Wbad-function-cast + OPT = -O2 -g +-CFLAGS = -pthread $(OPT) $(W) $(XCFLAGS) ++CFLAGS = $(XCFLAGS) + LDLIBS = + SOLIBS = +-prefix = /usr/local + + IHDRS = lmdb.h + ILIBS = liblmdb.a liblmdb.so + IPROGS = mdb_stat mdb_copy + IDOCS = mdb_stat.1 mdb_copy.1 + PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5 +-all: $(ILIBS) $(PROGS) ++all: $(ILIBS) $(IPROGS) + + install: $(ILIBS) $(IPROGS) $(IHDRS) +- cp $(IPROGS) $(DESTDIR)$(prefix)/bin +- cp $(ILIBS) $(DESTDIR)$(prefix)/lib +- cp $(IHDRS) $(DESTDIR)$(prefix)/include +- cp $(IDOCS) $(DESTDIR)$(prefix)/man/man1 ++ ${INSTALL_PROGRAM} $(IPROGS) $(DESTDIR)$(prefix)/bin ++ ${INSTALL_LIB} $(ILIBS) $(DESTDIR)$(prefix)/lib ++ ${INSTALL_DATA} $(IHDRS) $(DESTDIR)$(prefix)/include ++ ${INSTALL_MAN} $(IDOCS) $(DESTDIR)$(prefix)/man/man1 + + clean: + rm -rf $(PROGS) *.[ao] *.so *~ testdb +@@ -33,7 +31,9 @@ + $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.o midl.o $(SOLIBS) + + mdb_stat: mdb_stat.o liblmdb.a ++ ${CC} ${LDFLAGS} -o ${.TARGET} mdb_stat.o liblmdb.a + mdb_copy: mdb_copy.o liblmdb.a ++ ${CC} ${LDFLAGS} -o ${.TARGET} mdb_copy.o liblmdb.a + mtest: mtest.o liblmdb.a + mtest2: mtest2.o liblmdb.a + mtest3: mtest3.o liblmdb.a Added: head/databases/lmdb/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/lmdb/pkg-descr Mon Mar 11 23:58:01 2013 (r313947) @@ -0,0 +1,13 @@ +LMDB is an ultra-fast, ultra-compact key-value data +store developed by Symas for the OpenLDAP Project. + +It uses memory-mapped files, so it has the read +performance of a pure in-memory database while still +offering the persistence of standard disk-based +databases, and is only limited to the size of the +virtual address space, (it is not limited to the +size of physical RAM). LMDB was originally called +MDB, but was renamed to avoid confusion with other +software associated with the name MDB. + +WWW: http://symas.com/mdb/