debian/0000755000000000000000000000000012150232236007162 5ustar debian/libdbd-xbase-perl.docs0000644000000000000000000000005211671743704013327 0ustar debian/driver_characteristics README ToDo debian/patches/0000755000000000000000000000000012150232112010602 5ustar debian/patches/series0000644000000000000000000000005011671743704012037 0ustar underline-dump.patch pod_spelling.patch debian/patches/underline-dump.patch0000644000000000000000000001736012150232102014561 0ustar # Description: rename dbfdump to dbf_dump following the rename in Debian (due # to #274792) # Author: Gregor Herrmann # Forwarded: not-needed --- a/README +++ b/README @@ -48,7 +48,7 @@ my $table = new XBase 'table.dbf'; my @data = $table->get_record(0); - The distribution also includes a dbfdump script that prints + The distribution also includes a dbf_dump script that prints the content of the table in readable form. @@ -75,7 +75,7 @@ native XBase engines produce data incompatible with this module. - Man pages for XBase, DBD::XBase, dbfdump, XBase::Index and + Man pages for XBase, DBD::XBase, dbf_dump, XBase::Index and XBase::SDBM are included, examples of little scripts can also be found in eg/ directory of the distribution. Read the DBI man page for DBI specific issues, and the XBase::FAQ page. --- a/bin/dbfdump.PL +++ b/bin/dbfdump.PL @@ -33,7 +33,7 @@ ) or exit; if (defined $options{'version'}) { - print "This is dbfdump version $XBase::VERSION.\n"; + print "This is dbf_dump version $XBase::VERSION.\n"; exit; } @@ -44,7 +44,7 @@ if (@ARGV == 0 or defined $options{'help'}) { die <<'EOF'; -Usage: dbfdump [ options ] files +Usage: dbf_dump [ options ] files where the options specify --rs output record separator (default newline) --fs output field separator (default colon) @@ -129,11 +129,11 @@ =head1 NAME -dbfdump - Dump the record of the dbf file +dbf_dump - Dump the record of the dbf file =head1 FORMAT - dbfdump [options] files + dbf_dump [options] files where options are @@ -153,15 +153,15 @@ =head1 SYNOPSIS - dbfdump -fields id,msg table.dbf - dbfdump -fs=' : ' table - dbfdump --nomemo file.dbf + dbf_dump -fields id,msg table.dbf + dbf_dump -fs=' : ' table + dbf_dump --nomemo file.dbf - ssh user@host 'cat file.dbf.gz' | gunzip - | dbfdump - + ssh user@host 'cat file.dbf.gz' | gunzip - | dbf_dump - =head1 DESCRIPTION -Dbfdump prints to standard output the content of dbf files listed. By +Dbf_dump prints to standard output the content of dbf files listed. By default, it prints all fields, separated by colons, one record on a line. The output record and column separators can be changed by switches on the command line. You can also ask only for some fields to @@ -183,7 +183,7 @@ =head1 SEE ALSO -perl(1); XBase(3) +perl(1); XBase(3pm); index_dump(1p) =cut --- a/bin/indexdump.PL +++ b/bin/indexdump.PL @@ -80,15 +80,15 @@ =head1 NAME -indexdump - Show the content of the index file +index_dump - Show the content of the index file =head1 FORMAT - indexdump [options] file [ tag ] + index_dump [options] file [ tag ] where options are - --debug output record separator (default newline) + --debug set debug level --type specifies the num/date/char type of the index --start defines the value to start dump from --n prints also the total number of records @@ -96,12 +96,12 @@ =head1 SYNOPSIS - indexdump rooms.cdx FACILITY - indexdump --debug=14 --start=Dub rooms.cdx ROOMNAME + index_dump rooms.cdx FACILITY + index_dump --debug=14 --start=Dub rooms.cdx ROOMNAME =head1 DESCRIPTION -Indexdump prints to standard output the content of the index file. +Index_dump prints to standard output the content of the index file. The type of the index is one of those supported by the XBase::Index Perl module (cdx, idx, ntx, ndx, mdx). @@ -121,7 +121,7 @@ =head1 SEE ALSO -perl(1); XBase::Index(3) +perl(1); XBase::Index(3pm); dbf_dump(1p) =cut --- a/eg/use_index +++ b/eg/use_index @@ -77,7 +77,7 @@ my $cur = $table->prepare_select_with_index( [ "cust.cdx", 'addr' ], 'field1', 'field2'); -There is a script indexdump that does the dump for you. +There is a script index_dump that does the dump for you. If you have an compound index, with an expression instead of just plain field name, chances are that XBase.pm won't be able to recognize --- a/lib/XBase.pm +++ b/lib/XBase.pm @@ -1341,7 +1341,7 @@ $table->dump_records("fs" => " | ", "rs" => " <-+\n", "fields" => [ "id", "msg" ]);' -Also note that there is a script dbfdump(1) that does the printing. +Also note that there is a script dbf_dump(1) that does the printing. =head2 Errors and debugging @@ -1427,7 +1427,7 @@ =head1 SEE ALSO perl(1); XBase::FAQ(3); DBD::XBase(3) and DBI(3) for DBI interface; -dbfdump(1) +dbf_dump(1) =cut --- a/lib/XBase/FAQ.pod +++ b/lib/XBase/FAQ.pod @@ -174,11 +174,11 @@ to your script and you will see that it's not B problem. -=item The B stops after reading I records ... +=item The B stops after reading I records ... ... why doesn't it read all I<10 x n> records? -Check if the file isn't truncated. C will tell +Check if the file isn't truncated. C will tell you the expected number of records and length of one record, like Filename: file.dbf @@ -190,7 +190,7 @@ Num fields: 40 So the expected length of the file is at least I<1313 + 65 * 1117>. If -it's shorter, you've got damaged file and B only +it's shorter, you've got damaged file and B only reads as much rows as it can find in the dbf. =item How is this B related to B? --- a/lib/XBase/Index.pm +++ b/lib/XBase/Index.pm @@ -1668,17 +1668,18 @@ =head2 Testing your index file (and XBase::Index) -You can test your index using the indexdump script in the main -directory of the DBD::XBase distribution (I mean test XBase::Index -on correct index data, not testing corrupted index file, of course ;-) +You can test your index using the index_dump script (I mean test +XBase::Index on correct index data, not testing corrupted index file, +of course ;-) + Just run - ./indexdump ~/path/index.ndx - ./indexdump ~/path/index.cdx tag_name + index_dump ~/path/index.ndx + index_dump ~/path/index.cdx tag_name or - perl -Ilib ./indexdump ~/path/index.cdx tag_name + perl -Ilib `which index_dump` ~/path/index.cdx tag_name if you haven't installed this version of XBase.pm/DBD::XBase yet. You should get the content of the index file. On each row, there is @@ -1695,18 +1696,18 @@ The index formats usually distinguish between numeric and character data. Some of the file formats include the information about the type -in the index file, other depend on the dbf file. Since with indexdump +in the index file, other depend on the dbf file. Since with index_dump we only look at the index file, you may need to specify the -type -option to indexdump if it complains that it doesn't know the data +option to index_dump if it complains that it doesn't know the data type of the values (this is the case with cdx at least). The possible values are num, char and date and the call would be like - ./indexdump -type=num ~/path/index.cdx tag_name + index_dump -type=num ~/path/index.cdx tag_name (this -type option may not work with all index formats at the moment -- will be fixed and patches always welcome). -You can use C<-ddebug> option to indexdump to see how pages are +You can use C<-ddebug> option to index_dump to see how pages are fetched and decoded, or run debugger to see the calls and parsing. =head2 Using the index files to speed up searches in dbf --- a/new-XBase +++ b/new-XBase @@ -395,7 +395,7 @@ $table->dump_records("fs" => " | ", "rs" => " <-+\n", "fields" => [ "id", "msg" ]);' -Also note that there is a command line script dbfdump(1) that does +Also note that there is a command line script dbf_dump(1) that does the printing. =head1 Writing the data @@ -595,7 +595,7 @@ XBase::FAQ(3); XBase::Index(3); DBD::XBase(3) and DBI(3) for DBI interface; -dbfdump(1); perl(1) +dbf_dump(1); perl(1) =cut debian/patches/pod_spelling.patch0000644000000000000000000000545112150232112014307 0ustar # Description: fix some spelling errors # Author: Damyan Ivanov # Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=70613 --- a/lib/DBD/XBase.pm +++ b/lib/DBD/XBase.pm @@ -156,7 +156,7 @@ ### return "'\Q$text\E'"; } -# Commit and rollback do not do anything usefull +# Commit and rollback do not do anything useful sub commit { warn "Commit ineffective while AutoCommit is on" if $_[0]->FETCH('Warn'); @@ -678,7 +678,7 @@ functions I want to support. It's easy to write them in a couple of minutes now the interface is there (check the XBase::SQL module if you want to send a patch containing support for more), it's just that I do -not really need them and sometimes it's hard to tell what is usefull and +not really need them and sometimes it's hard to tell what is useful and what is SQL92 compatible. Comment welcome. The select command may contain and order by clause. Only one column is --- a/lib/XBase.pm +++ b/lib/XBase.pm @@ -1047,7 +1047,7 @@ B specifies non standard name for the associated memo file. By default it's the name of the dbf file, with extension dbt or fpt. -B ignore memo file at all. This is usefull if you've lost +B ignore memo file at all. This is useful if you've lost the dbt file and you do not need it. Default is false. B separator of memo records in the dBase III dbt files. The @@ -1193,7 +1193,7 @@ =back -To explicitely delete/undelete a record, use methods B +To explicitly delete/undelete a record, use methods B or B with record number as a parameter. Assorted examples of reading and writing: --- a/lib/XBase/Base.pm +++ b/lib/XBase/Base.pm @@ -353,7 +353,7 @@ =item create_file -Creates file of given name. Second (optional) paramater is the +Creates file of given name. Second (optional) parameter is the permission specification for the file. =back --- a/lib/XBase/FAQ.pod +++ b/lib/XBase/FAQ.pod @@ -116,7 +116,7 @@ =item Can I sue you if B corrupts my data? No. At least, I hope no. The software is provided without any -warranty, in a hope you might find is usefull. Which is by the way +warranty, in a hope you might find is useful. Which is by the way the same as with most other software, even if you pay for that. What is different with B is the fact that if you find out that the results are different from those expected, you are welcome to --- a/lib/XBase/Index.pm +++ b/lib/XBase/Index.pm @@ -1781,7 +1781,7 @@ =head2 Programmer's notes -Programmers might find the following information usefull when trying +Programmers might find the following information useful when trying to debug XBase::Index from their files: The XBase::Index module contains the basic XBase::Index package and debian/watch0000644000000000000000000000015612101263563010220 0ustar version=3 https://metacpan.org/release/DBD-XBase/ .*/DBD-XBase-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) debian/copyright0000644000000000000000000000232412150231627011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: DBD-XBase Upstream-Contact: Jan Pazdziora Source: https://metacpan.org/release/DBD-XBase/ Files: * Copyright: 1997-2013, Jan Pazdziora License: Artistic or GPL-1+ Files: debian/* Copyright: 1998, 1999, 2000, 2001, Paolo Molaro 2003, 2004, Gunnar Wolf 2006, 2008, gregor herrmann 2010, Damyan Ivanov 2011, 2013, Florian Schlichting License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/control0000644000000000000000000000214412150231614010565 0ustar Source: libdbd-xbase-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: gregor herrmann , Damyan Ivanov , Florian Schlichting Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libdbi-perl Standards-Version: 3.9.4 Homepage: https://metacpan.org/release/DBD-XBase/ Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdbd-xbase-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libdbd-xbase-perl.git Package: libdbd-xbase-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends} Suggests: libdbi-perl Description: Perl module to access xbase files (optionally through DBI) DBD::XBase allows creation, access and modification of .dbf (dBase, Clipper, Fox* style) database files. It is capable of handling memo files, but indexes only in a somewhat limited way. It has two interfaces: one using SQL commands (through DBI) ad the other with a simple OO interface. . You can use the included dbf_dump program to dump the content of a .dbf file. debian/libdbd-xbase-perl.examples0000644000000000000000000000000511671743704014213 0ustar eg/* debian/compat0000644000000000000000000000000211671743704010376 0ustar 8 debian/changelog0000644000000000000000000001753112150232236011043 0ustar libdbd-xbase-perl (1:1.05-1) unstable; urgency=low [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Florian Schlichting ] * Imported Upstream version 1.05 * Email change: Florian Schlichting -> fsfs@debian.org * Bumped copyright years * Bumped Standards-Version to 3.9.4 (update to copyright-format 1.0) * Refreshed patches (offset) -- Florian Schlichting Sun, 26 May 2013 00:00:44 +0200 libdbd-xbase-perl (1:1.03-1) unstable; urgency=low [ gregor herrmann ] * debian/control: - change section to perl - remove Conflicts/Provides/Replaces libxbase-perl [ Gunnar Wolf ] * Removed myself from Uploaders, acknowledging reality [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Florian Schlichting ] * Imported Upstream version 1.03 * bump Standards-Version to 3.9.2 (no change) * bump compatibility level to 8 (no change) * switch to source format 3.0 (quilt) * refresh debian/copyright * refresh patches; drop Makefile.PL.patch, no_O_BINARY_redefine.patch (superseded by upstream); forward pod_spelling.patch * delete dh_make-template from debian/watch * add myself to Uploaders -- Florian Schlichting Wed, 31 Aug 2011 08:01:53 +0000 libdbd-xbase-perl (1:0.241-7) unstable; urgency=low [ gregor herrmann ] * Add debian/README.source to document quilt usage, as required by Debian Policy since 3.8.0. * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). * debian/control: Added: ${misc:Depends} to Depends: field. [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Damyan Ivanov ] * add no_O_BINARY_redefine.patch stopping a warning about O_BINARY being on module load. Closes: #494808 * migrate to DH7 tiny debian/rules * add pod_spelling.patch fixing some spelling errors in POD (thanks, lintian) * describe all patches * Standards-Version: 3.8.4 + Change Section from 'perl' to 'database' * Add myself to Uploaders -- Damyan Ivanov Wed, 03 Feb 2010 13:25:33 +0200 libdbd-xbase-perl (1:0.241-6) unstable; urgency=low * debian/rules: touch Makefile in clean target after unpatching Makefile.PL to prevent it from being re-built; allows building twice in a row. * debian/copyright: point to dist-based version of the upstream source; improve reference to Perl license. * Refresh debian/rules, no functional changes. * debian/control: make build dependency on quilt versioned; change my email address. -- gregor herrmann Wed, 30 Apr 2008 23:50:39 +0200 libdbd-xbase-perl (1:0.241-5) unstable; urgency=low * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Removed: XS- Vcs-Svn fields. * debian/rules: - delete /usr/lib/perl5 only if it exists (closes: #467726). - update based on dh-make-perl's templates - install upstream changelog * debian/watch: use dist-based URL. * Set Standards-Version to 3.7.3 (no changes). * debian/copyright: update years of copyright. * Create two patches, one for the changes in Makefile.PL, the other for the changes due to the renaming of indexdump/dbfdump to index_dump/dbf_dump; add quilt framework. -- gregor herrmann Sat, 08 Mar 2008 00:59:36 +0100 libdbd-xbase-perl (1:0.241-4) unstable; urgency=low * Replace DBFDUMP by DBF_DUMP and INDEXDUMP by INDEX_DUMP in manpages, add index_dump/dbf_dump to debf_dump's/index_dump's man pages' SEE ALSO section, fix output of index_dump --help regarding '--debug' option, remove /usr/share/doc/libdbd-xbase-perl/FAQ.gz (closes: #397229). * Convert driver_characteristics from pod to txt for easier legibility (closes: #397228). -- gregor herrmann Mon, 6 Nov 2006 00:01:09 +0100 libdbd-xbase-perl (1:0.241-3) unstable; urgency=low * Moved debhelper to Build-Depends. * Set Standards-Version to 3.7.2 (no changes). * Set Debhelper Compatibility Level to 5. * Removed empty /usr/lib/perl5 from package. * Renamed second binary-arch to binary-indep in debian/rules. * Added libdbi-perl to Build-Depends-Indep. -- gregor herrmann Fri, 16 Jun 2006 15:31:39 +0200 libdbd-xbase-perl (1:0.241-2) unstable; urgency=low * Renamed dbfdump and indexdump to dbf_dump and index_dump in order to prevent file conflicts with package shapelib (Closes: #274792) -- Gunnar Wolf Fri, 15 Oct 2004 20:33:52 -0500 libdbd-xbase-perl (1:0.241-1) unstable; urgency=low * Added an epoch to the version number, in order to escape the madness of 0.2410 being greater than 0.241 and uscan/watch complaining that our version is way higher than the one found at the upstream site * Package maintainership has been transferred to the Debian Perl group. -- Gunnar Wolf Fri, 30 Apr 2004 18:21:57 -0500 libdbd-xbase-perl (0.2410-1) unstable; urgency=low * New upstream release * Added a debian/watch file * Now also runs throught the "make test" target while building the package * Fixed Makefile.PL in order to remove cruft generated in the "make test" target (t/rooms.sdbm1.dir, t/rooms.sdbm1.pag, t/rooms.sdbmd.dir, t/rooms.sdbmd.pag, t/tstidx.dbf, t/tstidxid.idx, t/tstidxname.idx, t/write1.dbf, t/write1.FPT). Notifying upstream. * /usr/share/doc/FAQ.gz is now -as it should have always been- a plain text file, not a masqueraded HTML under the wrong suffix :) -- Gunnar Wolf Tue, 20 Apr 2004 11:05:05 -0500 libdbd-xbase-perl (0.2400+deb1-1) unstable; urgency=low * Changed both source and binary package names from dbd-xbase and libxbase-perl to libdbd-xbase-perl in order to be more consistent and to comply with policy (Closes: #223048) * Updated copyright file to show complete/adequate information -- Gunnar Wolf Fri, 19 Dec 2003 11:59:09 -0600 dbd-xbase (0.2400-1) unstable; urgency=low * New upstream release (Closes: #188149) * New Maintainer (Closes: #206878) * Bumped up Standards-Version to 3.6.1 -- Gunnar Wolf Sat, 6 Sep 2003 15:47:21 -0500 dbd-xbase (0.1730-1) unstable; urgency=low * New upstream release * Updated to new perl and debian policy. -- Paolo Molaro Fri, 23 Feb 2001 19:10:13 +0100 dbd-xbase (0.1610-2) unstable; urgency=low * Update standards version. * Build-depend on debhelper: (Closes: #70330). -- Paolo Molaro Thu, 19 Oct 2000 15:10:54 +0200 dbd-xbase (0.1610-1) unstable; urgency=low * New upstream release. -- Paolo Molaro Thu, 19 Oct 2000 14:38:38 +0200 dbd-xbase (0.1550-1) unstable; urgency=low * New upstream release. -- Paolo Molaro Thu, 18 Nov 1999 16:17:17 +0100 dbd-xbase (0.1410-1) unstable; urgency=low * New upstream release. -- Paolo Molaro Thu, 1 Jul 1999 18:59:48 +0200 dbd-xbase (0.1320-2) unstable; urgency=low * Correct stupid orig source name mistake. -- Paolo Molaro Thu, 6 May 1999 18:23:12 +0200 dbd-xbase (0.1320-1) unstable; urgency=low * New upstream release. -- Paolo Molaro Thu, 6 May 1999 11:07:21 +0200 dbd-xbase (0.0694-1) unstable; urgency=low * New upstream release. * Architecture is all now. -- Paolo Molaro Thu, 15 Oct 1998 18:44:03 +0200 dbd-xbase (0.065-1) unstable; urgency=low * New upstream release. * New command: dbfdump. -- Paolo Molaro Mon, 22 Jun 1998 10:55:18 +0200 dbd-xbase (0.0583-1) unstable; urgency=low * Initial Release. -- Paolo Molaro Fri, 13 Mar 1998 18:17:38 +0100 debian/README.Debian0000644000000000000000000000071311671743704011242 0ustar Renaming dbfdump / indexdump ============================ The two program files 'dbfdump' and 'indexdump' files included in this package have been renamed (starting in version 0.241-2) to 'dbf_dump' and 'index_dump', as a filename conflict was reported between this package and shapelib. All references in the package have been changed, but you might need to modify any programs you use that use those files. Apologies for the inconvenience. debian/source/0000755000000000000000000000000011671743704010500 5ustar debian/source/format0000644000000000000000000000001411671743704011706 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000127511671743704010265 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_build: dh_auto_build pod2text driver_characteristics > debian/driver_characteristics override_dh_auto_install: dh_auto_install # Renaming dbfdump and indexdump to dbf_dump and index_dump to avoid # filename clashes with shapelib (see bug #274792) mv $(TMP)/usr/bin/dbfdump $(TMP)/usr/bin/dbf_dump mv $(TMP)/usr/bin/indexdump $(TMP)/usr/bin/index_dump mv $(TMP)/usr/share/man/man1/dbfdump.1p $(TMP)/usr/share/man/man1/dbf_dump.1p mv $(TMP)/usr/share/man/man1/indexdump.1p $(TMP)/usr/share/man/man1/index_dump.1p sed -i -e 's/DUMP/_DUMP/' $(TMP)/usr/share/man/man1/*.1p debian/clean0000644000000000000000000000003611671743704010204 0ustar debian/driver_characteristics