From 52769535fd40e4e526fa83f9cb68754a490cb022 Mon Sep 17 00:00:00 2001 From: vanilla Date: Sat, 3 Jun 2006 03:02:17 +0000 Subject: Add libzdb, it's a thread-safe connection pool library. --- databases/Makefile | 1 + databases/libzdb/Makefile | 44 ++++++++++++++++++++++++++++++++++ databases/libzdb/distinfo | 3 +++ databases/libzdb/files/patch-configure | 11 +++++++++ databases/libzdb/pkg-descr | 6 +++++ databases/libzdb/pkg-plist | 8 +++++++ 6 files changed, 73 insertions(+) create mode 100644 databases/libzdb/Makefile create mode 100644 databases/libzdb/distinfo create mode 100644 databases/libzdb/files/patch-configure create mode 100644 databases/libzdb/pkg-descr create mode 100644 databases/libzdb/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index e1e02d9f5227..c60ceae5848a 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -101,6 +101,7 @@ SUBDIR += libpbl SUBDIR += libsdb SUBDIR += libudbc + SUBDIR += libzdb SUBDIR += linux-oracle-instantclient-basic SUBDIR += linux-oracle-instantclient-sdk SUBDIR += linux-oracle-instantclient-sqlplus diff --git a/databases/libzdb/Makefile b/databases/libzdb/Makefile new file mode 100644 index 000000000000..5988cdfb0038 --- /dev/null +++ b/databases/libzdb/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: libzdb +# Date created: Nov 28 2005 +# Whom: vanilla@ +# +# $FreeBSD$ +# + +PORTNAME= libzdb +PORTVERSION= 1.0.3 +CATEGORIES= databases +MASTER_SITES= http://www.tildeslash.com/libzdb/dist/ + +MAINTAINER= vanilla@FreeBSD.org +COMMENT= Thread-safe connection pool library + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_AUTOTOOLS= libtool:15 +INSTALLS_SHLIB= yes +CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" + +OPTIONS= MYSQL "Add MySQL support" on \ + SQLITE " Add Sqlite support" on + +.include + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql=${PREFIX} +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/mysql" \ + LDFLAGS="-L${LOCALBASE}/lib/mysql" +.else +CONFIGURE_ARGS+= --without-mysql +.endif + +.if defined(WITH_SQLITE) +USE_SQLITE= 3 +CONFIGURE_ARGS+= --with-sqlite=${PREFIX} +.else +CONFIGURE_ARGS+= --without-sqlite +.endif + +.include diff --git a/databases/libzdb/distinfo b/databases/libzdb/distinfo new file mode 100644 index 000000000000..706e1be4d8bd --- /dev/null +++ b/databases/libzdb/distinfo @@ -0,0 +1,3 @@ +MD5 (libzdb-1.0.3.tar.gz) = 0f87108b4a27a2bc6fc0cb013e104d0b +SHA256 (libzdb-1.0.3.tar.gz) = dec47324c7ad94190c3d72fff9e7bb88ff12ce23096ca9602dcb57d6da5afcdb +SIZE (libzdb-1.0.3.tar.gz) = 486561 diff --git a/databases/libzdb/files/patch-configure b/databases/libzdb/files/patch-configure new file mode 100644 index 000000000000..5121b0f2c290 --- /dev/null +++ b/databases/libzdb/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Fri Feb 17 12:20:06 2006 ++++ configure Fri Feb 17 12:21:32 2006 +@@ -19185,7 +19185,7 @@ + _ACEOF + + mysql="yes" +- if test -r "$with_mysql/lib/libmysqlclient.a"; then ++ if test -r "$with_mysql/lib/mysql/libmysqlclient.a"; then + DB_CPPFLAGS="$DB_CPPFLAGS -I$with_mysql/include" + DB_LDFLAGS="$DB_LDFLAGS -L$with_mysql/lib/ -lmysqlclient" + else diff --git a/databases/libzdb/pkg-descr b/databases/libzdb/pkg-descr new file mode 100644 index 000000000000..e4db78a55db9 --- /dev/null +++ b/databases/libzdb/pkg-descr @@ -0,0 +1,6 @@ +The Zild Database Library implements a small and fast database API +with the following features: C database library - easy to use API +- connect to multiple database systems - zero runtime configuration, +connect using URL scheme - Thread safe Connection Pooling. + +WWW: http://www.tildeslash.com/libzdb/ diff --git a/databases/libzdb/pkg-plist b/databases/libzdb/pkg-plist new file mode 100644 index 000000000000..41d74caa3922 --- /dev/null +++ b/databases/libzdb/pkg-plist @@ -0,0 +1,8 @@ +include/Connection.h +include/ConnectionPool.h +include/PreparedStatement.h +include/ResultSet.h +include/URL.h +lib/libzdb.a +lib/libzdb.so +lib/libzdb.so.1 -- cgit