[Midnightbsd-cvs] mports [16056] trunk/databases: add lmdb port

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Mar 9 12:10:59 EDT 2014


Revision: 16056
          http://svnweb.midnightbsd.org/mports/?rev=16056
Author:   laffer1
Date:     2014-03-09 12:10:58 -0400 (Sun, 09 Mar 2014)
Log Message:
-----------
add lmdb port

Modified Paths:
--------------
    trunk/databases/Makefile

Added Paths:
-----------
    trunk/databases/lmdb/
    trunk/databases/lmdb/Makefile
    trunk/databases/lmdb/distinfo
    trunk/databases/lmdb/files/
    trunk/databases/lmdb/files/patch-Makefile
    trunk/databases/lmdb/pkg-descr
    trunk/databases/lmdb/pkg-plist

Modified: trunk/databases/Makefile
===================================================================
--- trunk/databases/Makefile	2014-03-09 02:37:58 UTC (rev 16055)
+++ trunk/databases/Makefile	2014-03-09 16:10:58 UTC (rev 16056)
@@ -29,6 +29,7 @@
 SUBDIR += libiodbc
 SUBDIR += libmemcache
 SUBDIR += linux-f10-sqlite3
+SUBDIR += lmdb
 SUBDIR += memcached
 SUBDIR += memcachedb
 SUBDIR += mysql-connector-java

Added: trunk/databases/lmdb/Makefile
===================================================================
--- trunk/databases/lmdb/Makefile	                        (rev 0)
+++ trunk/databases/lmdb/Makefile	2014-03-09 16:10:58 UTC (rev 16056)
@@ -0,0 +1,40 @@
+# $MidnightBSD$
+
+PORTNAME=	lmdb
+PORTVERSION=	0.9.11
+CATEGORIES=	databases
+MASTER_SITES=	https://gitorious.org/${GO_ACCOUNT}/${GO_PROJECT}/archive/${GO_TAGNAME}.tar.gz?dummy= \
+		FREEBSD_LOCAL/delphij
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	OpenLDAP Lightning Memory-Mapped Database
+
+LICENSE=	openldap2.8
+
+# 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}"
+
+USE_LDCONFIG=	yes
+
+GO_ACCOUNT=	mdb
+GO_PROJECT=	mdb
+GO_TAGNAME=	${PORTNAME:U}_${PORTVERSION}
+FETCH_ARGS?=	-o ${DISTDIR}/${DISTFILES}
+
+do-install:
+	${INSTALL_LIB} ${WRKSRC}/liblmdb.a ${PREFIX}/lib/
+	${INSTALL_LIB} ${WRKSRC}/liblmdb.so ${PREFIX}/lib/liblmdb.so.0
+	${LN} -sf liblmdb.so.0 ${PREFIX}/lib/liblmdb.so
+.for f in mdb_stat mdb_copy
+	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
+.endfor
+	${INSTALL_DATA} ${WRKSRC}/lmdb.h ${PREFIX}/include
+.for f in mdb_stat.1 mdb_copy.1
+	${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/man/man1
+.endfor
+
+.include <bsd.port.mk>


Property changes on: trunk/databases/lmdb/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/databases/lmdb/distinfo
===================================================================
--- trunk/databases/lmdb/distinfo	                        (rev 0)
+++ trunk/databases/lmdb/distinfo	2014-03-09 16:10:58 UTC (rev 16056)
@@ -0,0 +1,2 @@
+SHA256 (lmdb-0.9.11.tar.gz) = c1235660f081c5bd6e14b9e4a84ef36c490de34ff09c015519c3f384fd47a0da
+SIZE (lmdb-0.9.11.tar.gz) = 114646

Added: trunk/databases/lmdb/files/patch-Makefile
===================================================================
--- trunk/databases/lmdb/files/patch-Makefile	                        (rev 0)
+++ trunk/databases/lmdb/files/patch-Makefile	2014-03-09 16:10:58 UTC (rev 16056)
@@ -0,0 +1,47 @@
+--- ./Makefile.orig	2013-08-14 09:57:25.000000000 -0700
++++ ./Makefile	2013-08-16 11:35:51.697680677 -0700
+@@ -16,14 +16,12 @@
+ # There may be other macros in mdb.c of interest. You should
+ # read mdb.c before changing any of them.
+ #
+-CC	= gcc
+ W	= -W -Wall -Wno-unused-parameter -Wbad-function-cast
+ THREADS = -pthread
+ OPT = -O2 -g
+-CFLAGS	= $(THREADS) $(OPT) $(W) $(XCFLAGS)
++CFLAGS	= $(XCFLAGS)
+ LDLIBS	=
+ SOLIBS	=
+-prefix	= /usr/local
+ 
+ ########################################################################
+ 
+@@ -32,13 +30,13 @@
+ 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)
+-	for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
+-	for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
+-	for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done
+-	for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done
++	for f in $(IPROGS); do ${INSTALL_PROGRAM} $$f $(DESTDIR)$(prefix)/bin; done
++	for f in $(ILIBS); do ${INSTALL_LIB} $$f $(DESTDIR)$(prefix)/lib; done
++	for f in $(IHDRS); do ${INSTALL_DATA} $$f $(DESTDIR)$(prefix)/include; done
++	for f in $(IDOCS); do ${INSTALL_MAN} $$f $(DESTDIR)$(prefix)/man/man1; done
+ 
+ clean:
+ 	rm -rf $(PROGS) *.[ao] *.so *~ testdb
+@@ -54,7 +52,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


Property changes on: trunk/databases/lmdb/files/patch-Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/databases/lmdb/pkg-descr
===================================================================
--- trunk/databases/lmdb/pkg-descr	                        (rev 0)
+++ trunk/databases/lmdb/pkg-descr	2014-03-09 16:10:58 UTC (rev 16056)
@@ -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/

Added: trunk/databases/lmdb/pkg-plist
===================================================================
--- trunk/databases/lmdb/pkg-plist	                        (rev 0)
+++ trunk/databases/lmdb/pkg-plist	2014-03-09 16:10:58 UTC (rev 16056)
@@ -0,0 +1,8 @@
+bin/mdb_copy
+bin/mdb_stat
+include/lmdb.h
+lib/liblmdb.a
+lib/liblmdb.so
+lib/liblmdb.so.0
+man/man1/mdb_copy.1
+man/man1/mdb_stat.1


Property changes on: trunk/databases/lmdb/pkg-plist
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list