summaryrefslogtreecommitdiff
path: root/databases
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
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')
-rw-r--r--databases/libdbi-driver-mysql/DESCR8
-rw-r--r--databases/libdbi-driver-mysql/Makefile21
-rw-r--r--databases/libdbi-driver-mysql/PLIST2
-rw-r--r--databases/libdbi-driver-pgsql/DESCR7
-rw-r--r--databases/libdbi-driver-pgsql/Makefile21
-rw-r--r--databases/libdbi-driver-pgsql/PLIST2
-rw-r--r--databases/libdbi-driver-sqlite/DESCR7
-rw-r--r--databases/libdbi-driver-sqlite/Makefile20
-rw-r--r--databases/libdbi-driver-sqlite/PLIST2
-rw-r--r--databases/libdbi-driver-sqlite3/DESCR7
-rw-r--r--databases/libdbi-driver-sqlite3/Makefile20
-rw-r--r--databases/libdbi-driver-sqlite3/PLIST2
-rw-r--r--databases/libdbi/DESCR4
-rw-r--r--databases/libdbi/Makefile24
-rw-r--r--databases/libdbi/Makefile_drivers25
-rw-r--r--databases/libdbi/PLIST5
-rw-r--r--databases/libdbi/buildlink3.mk12
-rw-r--r--databases/libdbi/distinfo5
-rw-r--r--databases/libdbi/distinfo_drivers5
19 files changed, 199 insertions, 0 deletions
diff --git a/databases/libdbi-driver-mysql/DESCR b/databases/libdbi-driver-mysql/DESCR
new file mode 100644
index 00000000000..965c653af80
--- /dev/null
+++ b/databases/libdbi-driver-mysql/DESCR
@@ -0,0 +1,8 @@
+libdbi-drivers - drivers for libdbi,
+the Database Independent Abstraction Layer for C
+
+This driver allows libdbi-enabled applications to use MySQL as a
+database backend. Internally, it provides a libdbi driver around the
+libmysqlclient client library. See the included driver documentation
+for installation instructions, usage, and information about
+driver-specific peculiarities.
diff --git a/databases/libdbi-driver-mysql/Makefile b/databases/libdbi-driver-mysql/Makefile
new file mode 100644
index 00000000000..a32ed0e2030
--- /dev/null
+++ b/databases/libdbi-driver-mysql/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= mysql
+
+COMMENT= MySQL driver for libdbi, a database abstraction
+
+CONFLICTS= libdbi-mysql-[0-9]*
+
+CONFIGURE_ARGS+= --with-mysql
+CONFIGURE_ARGS+= --with-mysql-incdir=${BUILDLINK_PREFIX.mysql-client}/include
+CONFIGURE_ARGS+= --with-mysql-libdir=${BUILDLINK_PREFIX.mysql-client}/lib
+
+.include "../../databases/libdbi/buildlink3.mk"
+.include "../../databases/mysql5-client/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/libdbi-driver-mysql/PLIST b/databases/libdbi-driver-mysql/PLIST
new file mode 100644
index 00000000000..4c7dcc93c3a
--- /dev/null
+++ b/databases/libdbi-driver-mysql/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+lib/dbd/libdbdmysql.la
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
diff --git a/databases/libdbi-driver-sqlite/DESCR b/databases/libdbi-driver-sqlite/DESCR
new file mode 100644
index 00000000000..7f5a642f5c1
--- /dev/null
+++ b/databases/libdbi-driver-sqlite/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 SQLite 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-sqlite/Makefile b/databases/libdbi-driver-sqlite/Makefile
new file mode 100644
index 00000000000..1aa85c4d9f4
--- /dev/null
+++ b/databases/libdbi-driver-sqlite/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+#
+
+.include "../../databases/libdbi/Makefile_drivers"
+
+LICENSE= gnu-lgpl-v2
+
+DRIVER= sqlite
+
+COMMENT= SQLite driver for libdbi, a database abstraction
+
+CONFLICTS= libdbi-sqlite-[0-9]*
+
+CONFIGURE_ARGS+= --with-sqlite
+CONFIGURE_ARGS+= --with-sqlite-incdir=${BUILDLINK_PREFIX.sqlite}/include
+CONFIGURE_ARGS+= --with-sqlite-libdir=${BUILDLINK_PREFIX.sqlite}/lib
+
+.include "../../databases/libdbi/buildlink3.mk"
+.include "../../databases/sqlite/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/libdbi-driver-sqlite/PLIST b/databases/libdbi-driver-sqlite/PLIST
new file mode 100644
index 00000000000..226d7494b06
--- /dev/null
+++ b/databases/libdbi-driver-sqlite/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+lib/dbd/libdbdsqlite.la
diff --git a/databases/libdbi-driver-sqlite3/DESCR b/databases/libdbi-driver-sqlite3/DESCR
new file mode 100644
index 00000000000..db478ab4170
--- /dev/null
+++ b/databases/libdbi-driver-sqlite3/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 SQLite3 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-sqlite3/Makefile b/databases/libdbi-driver-sqlite3/Makefile
new file mode 100644
index 00000000000..3babb5869f4
--- /dev/null
+++ b/databases/libdbi-driver-sqlite3/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+#
+
+.include "../../databases/libdbi/Makefile_drivers"
+
+LICENSE= gnu-lgpl-v2
+
+DRIVER= sqlite3
+
+COMMENT= SQLite3 driver for libdbi, a database abstraction
+
+CONFLICTS= libdbi-sqlite3-[0-9]*
+
+CONFIGURE_ARGS+= --with-sqlite3
+CONFIGURE_ARGS+= --with-sqlite3-incdir=${BUILDLINK_PREFIX.sqlite}/include
+CONFIGURE_ARGS+= --with-sqlite3-libdir=${BUILDLINK_PREFIX.sqlite}/lib
+
+.include "../../databases/libdbi/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/libdbi-driver-sqlite3/PLIST b/databases/libdbi-driver-sqlite3/PLIST
new file mode 100644
index 00000000000..8ac7a2573bb
--- /dev/null
+++ b/databases/libdbi-driver-sqlite3/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+lib/dbd/libdbdsqlite3.la
diff --git a/databases/libdbi/DESCR b/databases/libdbi/DESCR
new file mode 100644
index 00000000000..57d00f85cad
--- /dev/null
+++ b/databases/libdbi/DESCR
@@ -0,0 +1,4 @@
+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.
diff --git a/databases/libdbi/Makefile b/databases/libdbi/Makefile
new file mode 100644
index 00000000000..8017619cec2
--- /dev/null
+++ b/databases/libdbi/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+#
+
+DISTNAME= libdbi-0.8.3
+CATEGORIES= databases devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdbi/}
+
+MAINTAINER= cheusov@tut.by
+HOMEPAGE= http://libdbi.sourceforge.net/
+COMMENT= Database Independent Abstraction Layer for C
+LICENSE= gnu-lgpl-v2
+
+USE_LANGUAGES= c
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+CONFIGURE_ARGS+= --disable-dependency-tracking
+CONFIGURE_ARGS+= --disable-docs
+
+AUTO_MKDIRS= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/libdbi/Makefile_drivers b/databases/libdbi/Makefile_drivers
new file mode 100644
index 00000000000..cd22566ba5c
--- /dev/null
+++ b/databases/libdbi/Makefile_drivers
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile_drivers,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+#
+
+DISTNAME= libdbi-drivers-0.8.3-1
+PKGNAME= ${DISTNAME:S/libdbi-drivers/libdbi-driver-${DRIVER}/:S/-1/.1/:S/-2/.2/}
+CATEGORIES= databases devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdbi-drivers/}
+
+MAINTAINER= cheusov@tut.by
+HOMEPAGE= http://libdbi-drivers.sourceforge.net/
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+DISTINFO_FILE= ${.CURDIR}/../../databases/libdbi/distinfo_drivers
+#PATCHDIR= ${.CURDIR}/../../databases/libdbi/patches_drivers
+
+INSTALLATION_DIRS+= lib/dbd
+
+CONFIGURE_ARGS+= --disable-dependency-tracking
+CONFIGURE_ARGS+= --with-dbi-incdir=${BUILDLINK_PREFIX.libdbi}/include/dbi
+CONFIGURE_ARGS+= --with-dbi-libdir=${BUILDLINK_PREFIX.libdbi}/lib
+CONFIGURE_ARGS+= --disable-docs
diff --git a/databases/libdbi/PLIST b/databases/libdbi/PLIST
new file mode 100644
index 00000000000..b8a257d0c11
--- /dev/null
+++ b/databases/libdbi/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+include/dbi/dbd.h
+include/dbi/dbi-dev.h
+include/dbi/dbi.h
+lib/libdbi.la
diff --git a/databases/libdbi/buildlink3.mk b/databases/libdbi/buildlink3.mk
new file mode 100644
index 00000000000..fb782984cc8
--- /dev/null
+++ b/databases/libdbi/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+
+BUILDLINK_TREE+= libdbi
+
+.if !defined(LIBDBI_BUILDLINK3_MK)
+LIBDBI_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libdbi+= libdbi>=0.8.3
+BUILDLINK_PKGSRCDIR.libdbi?= ../../databases/libdbi
+.endif # LIBDBI_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libdbi
diff --git a/databases/libdbi/distinfo b/databases/libdbi/distinfo
new file mode 100644
index 00000000000..a2439e667c5
--- /dev/null
+++ b/databases/libdbi/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+
+SHA1 (libdbi-0.8.3.tar.gz) = bda606fa6628eed451e492182e1943bd1d824c33
+RMD160 (libdbi-0.8.3.tar.gz) = c264a9cf0ef85ccd823273a205a961b6e33773cf
+Size (libdbi-0.8.3.tar.gz) = 1060714 bytes
diff --git a/databases/libdbi/distinfo_drivers b/databases/libdbi/distinfo_drivers
new file mode 100644
index 00000000000..10f3b726691
--- /dev/null
+++ b/databases/libdbi/distinfo_drivers
@@ -0,0 +1,5 @@
+$NetBSD: distinfo_drivers,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $
+
+SHA1 (libdbi-drivers-0.8.3-1.tar.gz) = 599fbab115419e8fc88b3b31a38031584ee213b5
+RMD160 (libdbi-drivers-0.8.3-1.tar.gz) = e0aa9e67f6560fb44018b1d35d90d4ac21b48597
+Size (libdbi-drivers-0.8.3-1.tar.gz) = 1534420 bytes