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.
This commit is contained in:
parent
b3c5b37415
commit
0b3b3dab42
6 changed files with 120 additions and 0 deletions
5
databases/libzdb/DESCR
Normal file
5
databases/libzdb/DESCR
Normal file
|
@ -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.
|
20
databases/libzdb/Makefile
Normal file
20
databases/libzdb/Makefile
Normal file
|
@ -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"
|
11
databases/libzdb/PLIST
Normal file
11
databases/libzdb/PLIST
Normal file
|
@ -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
|
29
databases/libzdb/buildlink3.mk
Normal file
29
databases/libzdb/buildlink3.mk
Normal file
|
@ -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
|
5
databases/libzdb/distinfo
Normal file
5
databases/libzdb/distinfo
Normal file
|
@ -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
|
50
databases/libzdb/options.mk
Normal file
50
databases/libzdb/options.mk
Normal file
|
@ -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
|
Loading…
Reference in a new issue