From b6121c8f8f9fc2d34f76d9e0d155f4e09200ed21 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 10 Mar 2010 23:55:48 +0000 Subject: Initial import of libdbi and its drivers for mysql, postgresql and sqlite (2 versions); packaged for wip by Aleksey Cheusov. libdbi implements a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl. Writing one generic set of code, programmers can leverage the power of multiple databases and multiple simultaneous database connections by using this framework. --- databases/libdbi-driver-pgsql/DESCR | 7 +++++++ databases/libdbi-driver-pgsql/Makefile | 21 +++++++++++++++++++++ databases/libdbi-driver-pgsql/PLIST | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 databases/libdbi-driver-pgsql/DESCR create mode 100644 databases/libdbi-driver-pgsql/Makefile create mode 100644 databases/libdbi-driver-pgsql/PLIST (limited to 'databases/libdbi-driver-pgsql') diff --git a/databases/libdbi-driver-pgsql/DESCR b/databases/libdbi-driver-pgsql/DESCR new file mode 100644 index 00000000000..133e4dba940 --- /dev/null +++ b/databases/libdbi-driver-pgsql/DESCR @@ -0,0 +1,7 @@ +libdbi-drivers - drivers for libdbi, +the Database Independent Abstraction Layer for C + +This driver allows libdbi-enabled applications to use PostgreSQL as a +database backend. Internally, it provides a libdbi driver around the libpq +client library. See the included driver documentation for installation +instructions, usage, and information about driver-specific peculiarities. diff --git a/databases/libdbi-driver-pgsql/Makefile b/databases/libdbi-driver-pgsql/Makefile new file mode 100644 index 00000000000..1f3a21b1718 --- /dev/null +++ b/databases/libdbi-driver-pgsql/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $ +# + +.include "../../databases/libdbi/Makefile_drivers" + +PKGREVISION= 1 +LICENSE= gnu-lgpl-v2 + +DRIVER= pgsql + +COMMENT= PostgreSQL driver for libdbi, a database abstraction + +CONFLICTS= libdbi-pgsql-[0-9]* + +CONFIGURE_ARGS+= --with-pgsql +CONFIGURE_ARGS+= --with-pgsql-incdir=${BUILDLINK_PREFIX.postgresql82-client}/include +CONFIGURE_ARGS+= --with-pgsql-libdir=${BUILDLINK_PREFIX.postgresql82-client}/lib + +.include "../../databases/libdbi/buildlink3.mk" +.include "../../databases/postgresql82-client/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/libdbi-driver-pgsql/PLIST b/databases/libdbi-driver-pgsql/PLIST new file mode 100644 index 00000000000..c2bc39cadb2 --- /dev/null +++ b/databases/libdbi-driver-pgsql/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $ +lib/dbd/libdbdpgsql.la -- cgit v1.2.3