summaryrefslogtreecommitdiff
path: root/databases/libdbi-driver-pgsql
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-03-10 23:55:48 +0000
committerwiz <wiz@pkgsrc.org>2010-03-10 23:55:48 +0000
commitb6121c8f8f9fc2d34f76d9e0d155f4e09200ed21 (patch)
treea8b3fea571affc5b3a347bff0343c404961eb825 /databases/libdbi-driver-pgsql
parent89cc8ab97c6e73e9f15b8c418a6f4ec4c19b34d1 (diff)
downloadpkgsrc-b6121c8f8f9fc2d34f76d9e0d155f4e09200ed21.tar.gz
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.
Diffstat (limited to 'databases/libdbi-driver-pgsql')
-rw-r--r--databases/libdbi-driver-pgsql/DESCR7
-rw-r--r--databases/libdbi-driver-pgsql/Makefile21
-rw-r--r--databases/libdbi-driver-pgsql/PLIST2
3 files changed, 30 insertions, 0 deletions
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