Import libzdb

ok landry@

A small, easy to use Open Source Database Connection Pool Library with
the following features:

 - Thread safe Database Connection Pool
 - Connect to multiple database systems
 - Zero runtime configuration, connect using a URL scheme
 - Supports MySQL, PostgreSQL, SQLite and Oracle.
This commit is contained in:
kirby 2014-10-04 18:30:27 +00:00
parent 0a83fb01e6
commit d3387696cb
4 changed files with 74 additions and 0 deletions

50
databases/libzdb/Makefile Normal file
View File

@ -0,0 +1,50 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/10/04 18:30:27 kirby Exp $
COMMENT = easy to use database connection pool Library
DISTNAME = libzdb-2.12
SHARED_LIBS += zdb 0.0 # 10.0
CATEGORIES = databases
HOMEPAGE = http://www.tildeslash.com/libzdb/#
WANTLIB += pthread sqlite3
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = http://www.tildeslash.com/libzdb/dist/
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--with-postgresql=no \
--with-mysql=no
FLAVORS = mysql postgresql
FLAVOR ?=
.if ${FLAVOR:Mmysql}
LIB_DEPENDS+= databases/mariadb
WANTLIB += lib/mysql/mysqlclient
WANTLIB += crypto m ssl stdc++ z
CONFIGURE_ARGS+= --with-mysql
.endif
.if ${FLAVOR:Mpostgresql}
LIB_DEPENDS+= databases/postgresql
WANTLIB += pq
WANTLIB+= crypto ssl
CONFIGURE_ARGS+= --with-postgresql
.endif
do-test:
${WRKBUILD}/test/exception
${WRKBUILD}/test/select
${WRKBUILD}/test/unit
# Next test requires manual steps for SQL server configuration.
# ${WRKBUILD}/test/pool interactive test
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (libzdb-2.12.tar.gz) = N+a9PYJUvn2P4UGc8FALkAZ4PQ41RO7v/F5pVMvNB9Q=
SIZE (libzdb-2.12.tar.gz) = 599160

View File

@ -0,0 +1,7 @@
A small, easy to use Open Source Database Connection Pool Library with
the following features:
- Thread safe Database Connection Pool
- Connect to multiple database systems
- Zero runtime configuration, connect using a URL scheme
- Supports MySQL, PostgreSQL, SQLite and Oracle.

View File

@ -0,0 +1,15 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/10/04 18:30:27 kirby Exp $
include/zdb/
include/zdb/Connection.h
include/zdb/ConnectionPool.h
include/zdb/Exception.h
include/zdb/PreparedStatement.h
include/zdb/ResultSet.h
include/zdb/SQLException.h
include/zdb/URL.h
include/zdb/zdb.h
lib/libzdb.a
lib/libzdb.la
@lib lib/libzdb.so.${LIBzdb_VERSION}
lib/pkgconfig/
lib/pkgconfig/zdb.pc