Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
PalmOS Flat-File Database Tools. Conversion utilities for the PalmOS
flat-file database programs "MobileDB", "JFile" v3.x, "List", and the open
source "DB".
+32
View File
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.7 2012/10/02 21:25:37 asau Exp $
#
DISTNAME= ${PKGNAME_NOREV:S/./_/g}
PKGNAME= palm-db-tools-0.3.6
PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=palm-db-tools/}
MAINTAINER= dsainty@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/palm-db-tools/
COMMENT= Conversion utilities for PalmOS flat-file database programs
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/palm-db-tools
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
USE_LIBTOOL= yes
# The default of -Werror is a bit optimistic. This code also causes
# problems attempting to link C++ code with "cc", but using "libtool"
# fixes this.
CONFIGURE_ARGS= --disable-warnings --enable-libtool
INSTALLATION_DIRS= share/doc/palm-db-tools
INSTALL_MAKE_FLAGS= prefix=${DESTDIR}${PREFIX}
post-install:
${INSTALL_DATA} ${WRKSRC}/docs/manual.* ${DESTDIR}${PREFIX}/share/doc/palm-db-tools
.include "../../mk/bsd.pkg.mk"
+6
View File
@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:43:20 joerg Exp $
bin/csv2pdb
bin/pdb2csv
lib/libpdbtools.la
share/doc/palm-db-tools/manual.html
share/doc/palm-db-tools/manual.txt
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: distinfo,v 1.4 2012/08/18 13:14:05 dsainty Exp $
SHA1 (palm-db-tools-0_3_6.tar.gz) = b8ef6ed7059f5f71571622af6ece86b61cfacee6
RMD160 (palm-db-tools-0_3_6.tar.gz) = 26a5ce1ab9d558a4b42f3278be809b31eefb19b4
Size (palm-db-tools-0_3_6.tar.gz) = 201644 bytes
SHA1 (patch-aa) = f80085ca7a97dab6e22622fe98d1b2f9aa1c8d3f
SHA1 (patch-ab) = cc36b595666e8843728485a804f74322adb38b07
SHA1 (patch-ac) = 15e13a574ccd5c800eac4216baac38692ee16ed7
SHA1 (patch-ad) = 0c8d624367a135fb5b0cf7ab5514f52f8cf3ac16
SHA1 (patch-ae) = cf899b708386c7404bd6181aff97e5eaa2e573a2
SHA1 (patch-af) = d44e4198c50153b141e233b0e002ead0ae3c5b3f
SHA1 (patch-ag) = d5478dbc12cf1da3eb0ca3c2d4e9d8dff09b8034
+27
View File
@@ -0,0 +1,27 @@
$NetBSD: patch-aa,v 1.2 2012/08/18 13:14:05 dsainty Exp $
GCC 4.1.2 errors on semicolon following namespace block.
ptrdiff_t is not defined here on at least Ubuntu. But as nothing uses
this difference_type anyway, just don't bother defining it.
--- libpalm/Block.h.orig 2003-06-20 11:37:47.000000000 +1200
+++ libpalm/Block.h 2007-02-19 20:55:39.000000000 +1300
@@ -29,7 +29,7 @@
typedef value_type& reference;
typedef const value_type& const_reference;
typedef size_t size_type;
- typedef ptrdiff_t difference_type;
+ //typedef ptrdiff_t difference_type;
// STL: reverisible container type definitions
#ifdef __GNUG__
@@ -176,7 +176,7 @@
size_type m_size;
};
-};
+}
bool operator == (const PalmLib::Block& lhs, const PalmLib::Block& rhs);
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ab,v 1.1.1.1 2007/02/19 21:19:14 dsainty Exp $
GCC 4.1.2 errors on semicolon following namespace block.
--- libpalm/File.h.orig 2003-06-20 11:37:47.000000000 +1200
+++ libpalm/File.h 2007-02-19 20:55:49.000000000 +1300
@@ -89,6 +89,6 @@
uid_map_t m_uid_map;
};
-};
+}
#endif
+34
View File
@@ -0,0 +1,34 @@
$NetBSD: patch-ac,v 1.3 2010/08/11 12:21:56 dsainty Exp $
Defining _XOPEN_SOURCE breaks the build under NetBSD.
The default C++ precision of 6 digits is Very risky in a database context.
As with DATE fields, if a TIME field is unset (hour value 24+), output an
empty string.
--- libsupport/csvfile.cpp.orig 2003-06-20 11:37:47.000000000 +1200
+++ libsupport/csvfile.cpp 2010-08-09 22:30:58.306485980 +1200
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE
+#include <string.h>
#include <iostream>
#include <fstream>
@@ -299,6 +299,7 @@
break;
case PalmLib::FlatFile::Field::FLOAT:
+ fldstr.precision(12);
fldstr << field.v_float;
break;
@@ -329,7 +330,7 @@
break;
case PalmLib::FlatFile::Field::TIME:
- {
+ if (field.v_time.hour <= 23) {
char buf[1024];
struct tm tm;
const struct tm * tm_ptr;
+26
View File
@@ -0,0 +1,26 @@
$NetBSD: patch-ad,v 1.1.1.1 2007/02/19 21:19:14 dsainty Exp $
Unconditionally correct LIB_DEPENDENCIES and INSTALL for libtool builds.
--- flatfile/Makefile.in.orig 2003-06-20 11:37:46.000000000 +1200
+++ flatfile/Makefile.in 2007-02-20 09:56:12.000000000 +1300
@@ -97,8 +97,8 @@
install: all
$(INSTALL) -d $(bindir)
$(INSTALL) -d $(libdir)
- $(INSTALL) -s $(TARGETS) $(libdir)
- $(INSTALL) -s $(PROGRAMS:%=%$(EXEEXT)) $(bindir)
+ $(LIBTOOL) --mode=install $(INSTALL) -s $(TARGETS) $(libdir)
+ $(LIBTOOL) --mode=install $(INSTALL) -s $(PROGRAMS:%=%$(EXEEXT)) $(bindir)
.SUFFIXES:
.SUFFIXES: .c .cpp .lo .o .obj
@@ -125,7 +125,7 @@
libpdbtools.la: $(OBJS:.o=.lo) $(LIB_DEPENDENCIES:.a=.la)
$(LIBTOOL) --mode=link $(CXX) $(OBJS:.o=.lo) -o $@ $(LIBS:.a=.la)
-$(PROGRAMS:=$(EXEEXT)): $(PROGDEPS) $(PROGOBJS) $(TARGETS) $(LIB_DEPENDENCIES)
+$(PROGRAMS:=$(EXEEXT)): $(PROGDEPS) $(PROGOBJS) $(TARGETS) $(LIB_DEPENDENCIES:.a=.la)
$(PROGLINK)
clean:
+27
View File
@@ -0,0 +1,27 @@
$NetBSD: patch-ae,v 1.2 2010/08/11 12:21:56 dsainty Exp $
Don't unnecessarily remove const, which complicates casting.
Correctly terminate default string values on NUL.
--- libflatfile/DB.cpp.orig 2003-06-20 11:37:46.000000000 +1200
+++ libflatfile/DB.cpp 2010-08-08 23:26:16.387306351 +1200
@@ -221,7 +221,7 @@
throw PalmLib::error("list view is corrupt");
// Determine the length of the name string.
- pi_char_t* null_ptr = reinterpret_cast<pi_char_t*>
+ const pi_char_t* null_ptr = reinterpret_cast<const pi_char_t*>
(memchr(chunk.data() + 4, 0, 32));
if (null_ptr)
lv.name = std::string((char *) (chunk.data() + 4),
@@ -275,7 +275,8 @@
switch (type) {
case PalmLib::FlatFile::Field::STRING:
- theReturn << std::string((const char *)chunk.data()+2, chunk.size() - 2);
+ // c_str: The default value is (or at least may be) NUL terminated.
+ theReturn << std::string((const char *)chunk.data()+2, chunk.size() - 2).c_str();
break;
case PalmLib::FlatFile::Field::BOOLEAN:
+51
View File
@@ -0,0 +1,51 @@
$NetBSD: patch-af,v 1.1 2010/08/11 12:21:56 dsainty Exp $
Don't unnecessarily remove const, which complicates casting.
--- libflatfile/JFile3.cpp.orig 2010-08-08 23:28:31.059277789 +1200
+++ libflatfile/JFile3.cpp 2010-08-08 23:30:12.583338045 +1200
@@ -454,7 +454,7 @@
void PalmLib::FlatFile::JFile3::JFileAppInfoType::unpack(const PalmLib::Block& block)
{
unsigned i;
- pi_char_t* null_ptr;
+ const pi_char_t* null_ptr;
// Ensure that we have enough space to extract information from.
if (block.size() < ( (20 * (20+1)) + 20*2 + 2 + 2 + 20*2 + 2
@@ -467,7 +467,7 @@
// Extract the field names.
for (i = 0; i < 20; ++i) {
/* Find the trailing null byte and extract the string. */
- null_ptr = reinterpret_cast<pi_char_t*> (memchr(p, 0, 21));
+ null_ptr = reinterpret_cast<const pi_char_t*> (memchr(p, 0, 21));
if (null_ptr)
fieldNames[i] = std::string((char *) p, null_ptr - p);
else
@@ -518,7 +518,7 @@
p += sizeof(pi_uint16_t);
// Extract the string used last by Find.
- null_ptr = reinterpret_cast<pi_char_t*> (memchr(p, 0, 16));
+ null_ptr = reinterpret_cast<const pi_char_t*> (memchr(p, 0, 16));
if (null_ptr)
findString = std::string((char *) p, null_ptr - p);
else
@@ -526,7 +526,7 @@
p += 16;
// Extract the string used last by Filter.
- null_ptr = reinterpret_cast<pi_char_t*> (memchr(p, 0, 16));
+ null_ptr = reinterpret_cast<const pi_char_t*> (memchr(p, 0, 16));
if (null_ptr)
filterString = std::string((char *) p, null_ptr - p);
else
@@ -542,7 +542,7 @@
p += sizeof(pi_uint16_t);
// Extract the password (if any).
- null_ptr = reinterpret_cast<pi_char_t*> (memchr(p, 0, 12));
+ null_ptr = reinterpret_cast<const pi_char_t*> (memchr(p, 0, 12));
if (null_ptr)
password = std::string((char *) p, null_ptr - p);
else
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ag,v 1.1 2010/08/11 12:21:56 dsainty Exp $
Don't unnecessarily remove const, which complicates casting.
--- libflatfile/MobileDB.cpp.orig 2010-08-08 23:23:04.940277744 +1200
+++ libflatfile/MobileDB.cpp 2010-08-08 23:24:13.267340616 +1200
@@ -221,7 +221,7 @@
if (field + 1 > fields.size()) fields.resize(field + 1);
// Now search for the end of the current field.
- pi_char_t* q = reinterpret_cast<pi_char_t*>
+ const pi_char_t* q = reinterpret_cast<const pi_char_t*>
(memchr(p, 0, rec.end() - p));
if (!q)
throw PalmLib::error("field terminiator is missing");