read access database files (jet format 3.0 and 4.0)
This commit is contained in:
parent
b821616b54
commit
776f207b21
65
databases/mdbtools/snapshot/Makefile
Normal file
65
databases/mdbtools/snapshot/Makefile
Normal file
@ -0,0 +1,65 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/05/01 09:55:33 espie Exp $
|
||||
|
||||
COMMENT= "read microsoft Access MDB"
|
||||
COMMENT-gmdb= "graphical interface to MDB tools"
|
||||
DATE= 20060425
|
||||
DISTNAME= mdbtools-${DATE}
|
||||
PKGNAME-gmdb= gmdb-${DATE}
|
||||
HOMEPAGE= http://mdbtools.sourceforge.net/
|
||||
|
||||
CATEGORIES= databases converters
|
||||
MASTER_SITES= ftp://quatramaran.ens.fr/pub/espie/
|
||||
|
||||
#MASTER_SITES=${MASTER_SITE_SOURCEFORGE:=mdbtools/}
|
||||
MULTI_PACKAGES= -gmdb
|
||||
|
||||
SUBPACKAGE?=
|
||||
|
||||
SHARED_LIBS= mdb 1.0 \
|
||||
mdbsql 1.0
|
||||
|
||||
# LGPL
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
USE_LIBTOOL= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
|
||||
WRKDIST= ${WRKDIR}/mdbtools
|
||||
BUILD_DEPENDS= ::devel/bison \
|
||||
::lang/gawk \
|
||||
::devel/pkgconfig
|
||||
|
||||
LIB_DEPENDS= glib-2.0.0.0::devel/glib2
|
||||
WANTLIB= c
|
||||
|
||||
MODULES= devel/gettext
|
||||
|
||||
|
||||
.if !defined(PACKAGING) || ${SUBPACKAGE} == "-gmdb"
|
||||
LIB_DEPENDS+= gnomeui-2.0.0::x11/gnome/libgnomeui
|
||||
WANTLIB+= audiofile bonobo-activation popt ORBit-2.0.0 pthread \
|
||||
bonoboui-2.0.0 atk-1.0.0.0 gobject-2.0.0.0 m jpeg \
|
||||
SM esd fontconfig ssl z \
|
||||
gthread-2.0.0.0 art_lgpl_2 X11 glade-2.0.0.0 \
|
||||
gconf-2.0.0 ICE Xrender gmodule-2.0.0.0 \
|
||||
pango-1.0.0.0 pangoxft-1.0.0.0 pangoft2-1.0.0.0 \
|
||||
gnomecanvas-2.0.0 gdk-x11-2.0.0.0 xml2 Xext gnome-2.0.0 \
|
||||
gnome-keyring freetype crypto gtk-x11-2.0.0.0 \
|
||||
pangox-1.0.0.0 Xft gdk_pixbuf-2.0.0.0 bonobo-2.0.0 \
|
||||
gnomevfs-2.0.0 ORBitCosNaming-2.0.0
|
||||
.endif
|
||||
|
||||
.if defined(PACKAGING) && ${SUBPACKAGE} == "-gmdb"
|
||||
LIB_DEPENDS+= mdb,mdbsql::databases/mdbtools
|
||||
.endif
|
||||
|
||||
.if defined(PACKAGING) && ${SUBPACKAGE} == ""
|
||||
WANTLIB+= readline termcap
|
||||
.endif
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
4
databases/mdbtools/snapshot/distinfo
Normal file
4
databases/mdbtools/snapshot/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (mdbtools-20060425.tar.gz) = 2defa983cf12da32b8e382a3560e0da4
|
||||
RMD160 (mdbtools-20060425.tar.gz) = 4ec6f4f3b4730e03661239e1181ca80c2706b2f6
|
||||
SHA1 (mdbtools-20060425.tar.gz) = bb2c6f679b91897be6da23b7872a7f3d34c8f05b
|
||||
SIZE (mdbtools-20060425.tar.gz) = 1079956
|
28
databases/mdbtools/snapshot/patches/patch-doc_Makefile_in
Normal file
28
databases/mdbtools/snapshot/patches/patch-doc_Makefile_in
Normal file
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2006/05/01 09:55:33 espie Exp $
|
||||
--- doc/Makefile.in.orig Tue Apr 25 19:49:57 2006
|
||||
+++ doc/Makefile.in Tue Apr 25 19:50:38 2006
|
||||
@@ -418,19 +418,19 @@ install.tgz: $(srcdir)/install.sgml
|
||||
man: mdb-tables.1 mdb-ver.1 mdb-export.1 mdb-sql.1
|
||||
|
||||
mdb-tables.1: mdb-tables.txt
|
||||
- - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/$< > $@
|
||||
+ - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/mdb-tables.txt > $@
|
||||
|
||||
mdb-ver.1: mdb-ver.txt
|
||||
- - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/$< > $@
|
||||
+ - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/mdb-ver.txt > $@
|
||||
|
||||
mdb-export.1: mdb-export.txt
|
||||
- - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/$< > $@
|
||||
+ - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/mdb-export.txt > $@
|
||||
|
||||
mdb-schema.1: mdb-schema.txt
|
||||
- - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/$< > $@
|
||||
+ - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/mdb-schema.txt > $@
|
||||
|
||||
mdb-sql.1: mdb-sql.txt
|
||||
- - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/$< > $@
|
||||
+ - $(TXT2MAN) -P $(PRODUCT) -t $(PRODUCT) -r $(RELEASE) $(srcdir)/mdb-sql.txt > $@
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
63
databases/mdbtools/snapshot/patches/patch-src_gmdb2_sql_c
Normal file
63
databases/mdbtools/snapshot/patches/patch-src_gmdb2_sql_c
Normal file
@ -0,0 +1,63 @@
|
||||
--- src/gmdb2/sql.c.orig Sat Jan 15 06:02:12 2005
|
||||
+++ src/gmdb2/sql.c Thu Apr 27 10:18:39 2006
|
||||
@@ -390,6 +390,7 @@
|
||||
GType *gtypes;
|
||||
GtkTreeIter iter;
|
||||
GtkTreeViewColumn *column;
|
||||
+ GtkCellRenderer *renderer;
|
||||
long row, maxrow;
|
||||
/* GdkCursor *watch, *pointer; */
|
||||
|
||||
@@ -449,7 +450,6 @@
|
||||
|
||||
gtk_tree_view_set_model(GTK_TREE_VIEW(treeview), GTK_TREE_MODEL(store));
|
||||
|
||||
- GtkCellRenderer *renderer;
|
||||
renderer = gtk_cell_renderer_text_new();
|
||||
|
||||
for (i=0;i<sql->num_columns;i++) {
|
||||
@@ -497,6 +497,12 @@
|
||||
GtkWidget *mi, *but, *combo;
|
||||
GladeXML *sqlwin_xml;
|
||||
GValue value = {0, };
|
||||
+ GtkCellRenderer *renderer;
|
||||
+ GtkTreeViewColumn *column;
|
||||
+ GtkWidget *tree;
|
||||
+ GtkTreeStore *store;
|
||||
+ GtkWidget *textview;
|
||||
+ GtkTreeSelection *select;
|
||||
|
||||
/* load the interface */
|
||||
sqlwin_xml = glade_xml_new(GMDB_GLADEDIR "gmdb-sql.glade", NULL, NULL);
|
||||
@@ -570,19 +576,16 @@
|
||||
G_CALLBACK (gmdb_sql_execute_cb), sqlwin_xml);
|
||||
|
||||
/* set up treeview, libglade only gives us the empty widget */
|
||||
- GtkWidget *tree = glade_xml_get_widget(sqlwin_xml, "sql_treeview");
|
||||
- GtkTreeStore *store = gtk_tree_store_new(1, G_TYPE_STRING);
|
||||
+ tree = glade_xml_get_widget(sqlwin_xml, "sql_treeview");
|
||||
+ store = gtk_tree_store_new(1, G_TYPE_STRING);
|
||||
gtk_tree_view_set_model(GTK_TREE_VIEW(tree), GTK_TREE_MODEL(store));
|
||||
|
||||
- GtkCellRenderer *renderer;
|
||||
- GtkTreeViewColumn *column;
|
||||
renderer = gtk_cell_renderer_text_new();
|
||||
column = gtk_tree_view_column_new_with_attributes("Name",
|
||||
renderer, "text", 0, NULL);
|
||||
gtk_tree_view_append_column(GTK_TREE_VIEW (tree), column);
|
||||
|
||||
- GtkTreeSelection *select =
|
||||
- gtk_tree_view_get_selection (GTK_TREE_VIEW (tree));
|
||||
+ select = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree));
|
||||
gtk_tree_selection_set_mode (select, GTK_SELECTION_SINGLE);
|
||||
//g_signal_connect (G_OBJECT (select), "changed",
|
||||
//G_CALLBACK (gmdb_sql_select_cb), sqlwin_xml);
|
||||
@@ -590,7 +593,7 @@
|
||||
/* populate first level of tree */
|
||||
gmdb_sql_tree_populate(mdb, sqlwin_xml);
|
||||
|
||||
- GtkWidget *textview = glade_xml_get_widget(sqlwin_xml, "sql_textview");
|
||||
+ textview = glade_xml_get_widget(sqlwin_xml, "sql_textview");
|
||||
src.target = "table";
|
||||
src.flags = 0;
|
||||
src.info = 1;
|
12
databases/mdbtools/snapshot/patches/patch-src_libmdb_file_c
Normal file
12
databases/mdbtools/snapshot/patches/patch-src_libmdb_file_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_libmdb_file_c,v 1.1.1.1 2006/05/01 09:55:33 espie Exp $
|
||||
--- src/libmdb/file.c.orig Wed Apr 26 17:12:01 2006
|
||||
+++ src/libmdb/file.c Wed Apr 26 17:12:19 2006
|
||||
@@ -123,7 +123,7 @@ MdbHandle *mdb_open(const char *filename
|
||||
mdb->f->fd = -1;
|
||||
mdb->f->filename = mdb_find_file(filename);
|
||||
if (!mdb->f->filename) {
|
||||
- fprintf(stderr, "Can't alloc filename\n");
|
||||
+ fprintf(stderr, "Can't find mdb file% s\n", filename);
|
||||
mdb_close(mdb);
|
||||
return NULL;
|
||||
}
|
18
databases/mdbtools/snapshot/pkg/DESCR
Normal file
18
databases/mdbtools/snapshot/pkg/DESCR
Normal file
@ -0,0 +1,18 @@
|
||||
MDB Tools is a set of programs to help you use Microsoft Access file
|
||||
in various settings.
|
||||
|
||||
. libmdb - the core library that allows access to MDB files programatically.
|
||||
. libmdbsql - builds on libmdb to provide a SQL engine (ala Jet)
|
||||
. utils - provides command line utilities to list tables, export schema,
|
||||
and data, show the version of the files, and other useful stuff.
|
||||
. mdb-sql - a command line SQL tool that allows one to type sql queries and
|
||||
get results.
|
||||
|
||||
In a separate package:
|
||||
. gmdb2 - The Gnome MDB File Viewer and debugger. Still alpha, but making
|
||||
great progress.
|
||||
|
||||
Not featured in this port:
|
||||
. odbc - An ODBC driver for use with unixODBC or iODBC driver manager.
|
||||
Allows one to use MDB files with PHP for example.
|
||||
|
4
databases/mdbtools/snapshot/pkg/DESCR-gmdb
Normal file
4
databases/mdbtools/snapshot/pkg/DESCR-gmdb
Normal file
@ -0,0 +1,4 @@
|
||||
MDB Tools is a set of programs to help you use Microsoft Access file
|
||||
This package contains:
|
||||
. gmdb2 - The Gnome MDB File Viewer and debugger. Still alpha, but making
|
||||
great progress.
|
3
databases/mdbtools/snapshot/pkg/PFRAG.shared
Normal file
3
databases/mdbtools/snapshot/pkg/PFRAG.shared
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/05/01 09:55:33 espie Exp $
|
||||
@lib lib/libmdb.so.${LIBmdb_VERSION}
|
||||
@lib lib/libmdbsql.so.${LIBmdbsql_VERSION}
|
30
databases/mdbtools/snapshot/pkg/PLIST
Normal file
30
databases/mdbtools/snapshot/pkg/PLIST
Normal file
@ -0,0 +1,30 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/05/01 09:55:33 espie Exp $
|
||||
%%SHARED%%
|
||||
bin/mdb-array
|
||||
bin/mdb-export
|
||||
bin/mdb-header
|
||||
bin/mdb-hexdump
|
||||
bin/mdb-parsecsv
|
||||
bin/mdb-prop
|
||||
bin/mdb-schema
|
||||
bin/mdb-sql
|
||||
bin/mdb-tables
|
||||
bin/mdb-ver
|
||||
include/gmdb.h
|
||||
include/mdbodbc.h
|
||||
include/mdbprivate.h
|
||||
include/mdbsql.h
|
||||
include/mdbtools.h
|
||||
include/mdbver.h
|
||||
lib/libmdb.a
|
||||
lib/libmdb.la
|
||||
lib/libmdbsql.a
|
||||
lib/libmdbsql.la
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/libmdb.pc
|
||||
lib/pkgconfig/libmdbsql.pc
|
||||
@man man/man1/mdb-export.1
|
||||
@man man/man1/mdb-schema.1
|
||||
@man man/man1/mdb-sql.1
|
||||
@man man/man1/mdb-tables.1
|
||||
@man man/man1/mdb-ver.1
|
38
databases/mdbtools/snapshot/pkg/PLIST-gmdb
Normal file
38
databases/mdbtools/snapshot/pkg/PLIST-gmdb
Normal file
@ -0,0 +1,38 @@
|
||||
@comment $OpenBSD: PLIST-gmdb,v 1.1.1.1 2006/05/01 09:55:33 espie Exp $
|
||||
bin/gmdb2
|
||||
share/gmdb/
|
||||
share/gmdb/glade/
|
||||
share/gmdb/glade/code.xpm
|
||||
share/gmdb/glade/debug.xpm
|
||||
share/gmdb/glade/form_big.xpm
|
||||
share/gmdb/glade/forms.xpm
|
||||
share/gmdb/glade/gmdb-debug.glade
|
||||
share/gmdb/glade/gmdb-export.glade
|
||||
share/gmdb/glade/gmdb-prefs.glade
|
||||
share/gmdb/glade/gmdb-props.glade
|
||||
share/gmdb/glade/gmdb-schema.glade
|
||||
share/gmdb/glade/gmdb-sql-file.glade
|
||||
share/gmdb/glade/gmdb-sql.glade
|
||||
share/gmdb/glade/gmdb.glade
|
||||
share/gmdb/glade/logo.xpm
|
||||
share/gmdb/glade/macro_big.xpm
|
||||
share/gmdb/glade/macros.xpm
|
||||
share/gmdb/glade/module_big.xpm
|
||||
share/gmdb/glade/pk.xpm
|
||||
share/gmdb/glade/query.xpm
|
||||
share/gmdb/glade/query_big.xpm
|
||||
share/gmdb/glade/report_big.xpm
|
||||
share/gmdb/glade/reports.xpm
|
||||
share/gmdb/glade/stock_export-16.png
|
||||
share/gmdb/glade/stock_export.png
|
||||
share/gmdb/glade/table.xpm
|
||||
share/gmdb/glade/table_big.xpm
|
||||
share/gnome/
|
||||
share/gnome/help/
|
||||
share/gnome/help/gmdb/
|
||||
share/gnome/help/gmdb/C/
|
||||
share/gnome/help/gmdb/C/figures/
|
||||
share/gnome/help/gmdb/C/figures/gmdb2_sql_window.png
|
||||
share/gnome/help/gmdb/C/figures/gmdb2_window.png
|
||||
share/gnome/help/gmdb/C/gmdb.xml
|
||||
share/gnome/help/gmdb/C/legal.xml
|
Loading…
Reference in New Issue
Block a user