diff options
author | wiz <wiz@pkgsrc.org> | 2015-08-30 17:41:51 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-08-30 17:41:51 +0000 |
commit | ce72efe4aa588430e64eb6f29ff5ee325deb1284 (patch) | |
tree | 1afa019b146e9779223e0b93a2bb172144bdb0ca /databases | |
parent | 408a1c30bd446361442f92406ae9f1e825a083b6 (diff) | |
download | pkgsrc-ce72efe4aa588430e64eb6f29ff5ee325deb1284.tar.gz |
Import libzdb-3.0 as databases/libzdb.
Packaged for wip by udontknow and tnn.
The Zild Database Library implements a small, fast, and easy to
use database API with thread-safe connection pooling. The library
can connect transparently to multiple database systems, has zero
configuration and connections are specified via a standard URL
scheme.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/libzdb/DESCR | 5 | ||||
-rw-r--r-- | databases/libzdb/Makefile | 20 | ||||
-rw-r--r-- | databases/libzdb/PLIST | 11 | ||||
-rw-r--r-- | databases/libzdb/buildlink3.mk | 29 | ||||
-rw-r--r-- | databases/libzdb/distinfo | 5 | ||||
-rw-r--r-- | databases/libzdb/options.mk | 50 |
6 files changed, 120 insertions, 0 deletions
diff --git a/databases/libzdb/DESCR b/databases/libzdb/DESCR new file mode 100644 index 00000000000..1a7cdc00949 --- /dev/null +++ b/databases/libzdb/DESCR @@ -0,0 +1,5 @@ +The Zild Database Library implements a small, fast, and easy to +use database API with thread-safe connection pooling. The library +can connect transparently to multiple database systems, has zero +configuration and connections are specified via a standard URL +scheme. diff --git a/databases/libzdb/Makefile b/databases/libzdb/Makefile new file mode 100644 index 00000000000..3d71f6214c6 --- /dev/null +++ b/databases/libzdb/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2015/08/30 17:41:51 wiz Exp $ + +DISTNAME= libzdb-3.0 +CATEGORIES= databases +MASTER_SITES= http://www.tildeslash.com/libzdb/dist/ + +MAINTAINER= evaldo@gardenali.biz +HOMEPAGE= http://www.tildeslash.com/libzdb/ +COMMENT= Zild Database Library, a fast thread-safe connection pooling library +LICENSE= gnu-gpl-v3 + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= gmake + +PKGCONFIG_OVERRIDE+= zdb.pc.in + +.include "options.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/libzdb/PLIST b/databases/libzdb/PLIST new file mode 100644 index 00000000000..8427a8081f0 --- /dev/null +++ b/databases/libzdb/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2015/08/30 17:41:51 wiz Exp $ +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.la +lib/pkgconfig/zdb.pc diff --git a/databases/libzdb/buildlink3.mk b/databases/libzdb/buildlink3.mk new file mode 100644 index 00000000000..8f6058011fc --- /dev/null +++ b/databases/libzdb/buildlink3.mk @@ -0,0 +1,29 @@ +# $NetBSD: buildlink3.mk,v 1.1 2015/08/30 17:41:51 wiz Exp $ + +BUILDLINK_TREE+= libzdb + +.if !defined(LIBZDB_BUILDLINK3_MK) +LIBZDB_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libzdb+= libzdb>=2.6 +BUILDLINK_PKGSRCDIR.libzdb?= ../../databases/libzdb + +pkgbase := libzdb +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.libzdb:Msqlite) +. include "../../databases/sqlite3/buildlink3.mk" +.endif +.if !empty(PKG_BUILD_OPTIONS.libzdb:Mpgsql) +. include "../../mk/pgsql.buildlink3.mk" +.endif +.if !empty(PKG_BUILD_OPTIONS.libzdb:Mmysql) +. include "../../mk/mysql.buildlink3.mk" +.endif +.if !empty(PKG_BUILD_OPTIONS.libzdb:Mssl) +. include "../../security/openssl/buildlink3.mk" +.endif + +.endif # LIBZDB_BUILDLINK3_MK + +BUILDLINK_TREE+= -libzdb diff --git a/databases/libzdb/distinfo b/databases/libzdb/distinfo new file mode 100644 index 00000000000..14e163e6aa9 --- /dev/null +++ b/databases/libzdb/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/08/30 17:41:51 wiz Exp $ + +SHA1 (libzdb-3.0.tar.gz) = bcf14c11cfcd0c05ecc8740f43cd0d6170406dc1 +RMD160 (libzdb-3.0.tar.gz) = 951c2db724f17c54f951d0afb7866496d3654e8a +Size (libzdb-3.0.tar.gz) = 700284 bytes diff --git a/databases/libzdb/options.mk b/databases/libzdb/options.mk new file mode 100644 index 00000000000..52d4e9adb9e --- /dev/null +++ b/databases/libzdb/options.mk @@ -0,0 +1,50 @@ +# $NetBSD: options.mk,v 1.1 2015/08/30 17:41:51 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libzdb +PKG_SUPPORTED_OPTIONS= ssl libzdb-sqliteunlock +PKG_SUGGESTED_OPTIONS= ssl mysql pgsql sqlite +PKG_OPTIONS_NONEMPTY_SETS= database +PKG_OPTIONS_SET.database= mysql pgsql sqlite + +.include "../../mk/bsd.options.mk" + +### +### Support using a MySQL database server +### +.if !empty(PKG_OPTIONS:Mmysql) +. include "../../mk/mysql.buildlink3.mk" +CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config +.else +CONFIGURE_ARGS+= --without-mysql +.endif + +### +### Support using a PostgreSQL database server +### +.if !empty(PKG_OPTIONS:Mpgsql) +. include "../../mk/pgsql.buildlink3.mk" +CONFIGURE_ARGS+= --with-postgresql=${BUILDLINK_PREFIX.postgresql-lib} +.else +CONFIGURE_ARGS+= --without-postgresql +.endif + +### +### Support using a SQLite database +### +.if !empty(PKG_OPTIONS:Msqlite) +. include "../../databases/sqlite3/buildlink3.mk" +CONFIGURE_ARGS+= --with-sqlite=${BUILDLINK_PREFIX.sqlite3} +. if !empty(PKG_OPTIONS:Mlibzdb-sqliteunlock) +CONFIGURE_ARGS+= --enable-sqliteunlock +. endif +.else +CONFIGURE_ARGS+= --without-sqlite +.endif + +### +### Support OpenSSL cryptographic library +### +.if !empty(PKG_OPTIONS:Mssl) +CONFIGURE_ARGS+= --enable-openssl +. include "../../security/openssl/buildlink3.mk" +.endif |