Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Nov 1999 20:02:31 -0500 (EST)
From:      jedgar@fxp.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15126: New port: databases/pxtools
Message-ID:  <19991128010231.103399B38@pawn.primelocation.net>

next in thread | raw e-mail | index | archive | help

>Number:         15126
>Category:       ports
>Synopsis:       New port: databases/pxtools
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 27 17:10:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Chris D. Faulhaber
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
BUGO - BSD Users Group of Orlando
>Environment:

FreeBSD 3.3-STABLE i386

>Description:

New port: databases/pxtools

pxtools is a collection of tools to work with a Paradox-databases.

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pxtools
#	pxtools/Makefile
#	pxtools/patches
#	pxtools/patches/patch-aa
#	pxtools/patches/patch-ab
#	pxtools/patches/patch-ac
#	pxtools/patches/patch-ad
#	pxtools/files
#	pxtools/files/md5
#	pxtools/pkg
#	pxtools/pkg/PLIST
#	pxtools/pkg/DESCR
#	pxtools/pkg/COMMENT
#
echo c - pxtools
mkdir -p pxtools > /dev/null 2>&1
echo x - pxtools/Makefile
sed 's/^X//' >pxtools/Makefile << 'END-of-pxtools/Makefile'
X# New ports collection makefile for:	pxtools
X# Version required:			0.0.3
X# Date created:				27 November 1999
X# Whom:					Chris D. Faulhaber <jedgar@fxp.org>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	pxtools-0.0.3
XCATEGORIES=	databases
XMASTER_SITES=	http://www.kneschke.de/projekte/pxtools/download/
X
XMAINTAINER=	jedgar@fxp.org
X
XGNU_CONFIGURE=	yes
X
X.include <bsd.port.mk>
END-of-pxtools/Makefile
echo c - pxtools/patches
mkdir -p pxtools/patches > /dev/null 2>&1
echo x - pxtools/patches/patch-aa
sed 's/^X//' >pxtools/patches/patch-aa << 'END-of-pxtools/patches/patch-aa'
X--- src/pxcsvdump.c.orig	Fri Nov 26 10:53:10 1999
X+++ src/pxcsvdump.c	Sat Nov 27 19:33:36 1999
X@@ -74,7 +74,6 @@
X 			printf("%f", PXtoDouble(s, felder[i]->type) );
X 		} else if (felder[i]->type == PX_Field_Type_Date) {
X 			unsigned long s;
X-			time_t t;
X 			struct tm *_tm;
X 			
X 			BLOCK_COPY(&s, felder[i]->size);
X@@ -87,7 +86,6 @@
X #endif
X 		} else if (felder[i]->type == PX_Field_Type_Timestamp) {
X 			unsigned long long s;
X-			time_t t;
X 			struct tm *_tm;
X 			
X 			BLOCK_COPY(&s, felder[i]->size);
END-of-pxtools/patches/patch-aa
echo x - pxtools/patches/patch-ab
sed 's/^X//' >pxtools/patches/patch-ab << 'END-of-pxtools/patches/patch-ab'
X--- src/pxinfo.c.orig	Thu Oct 28 14:53:46 1999
X+++ src/pxinfo.c	Sat Nov 27 19:32:58 1999
X@@ -128,7 +128,7 @@
X 			
X 			BLOCK_COPY(&s, felder[i]->size);
X 			
X-			printf("%s%s%li\n",felder[i]->name, felder[i]->name[0] ? ": " : "", PXtoLong(s, felder[i]->type));
X+			printf("%s%s%lli\n",felder[i]->name, felder[i]->name[0] ? ": " : "", PXtoLong(s, felder[i]->type));
X 		} else if (felder[i]->type == PX_Field_Type_Number) {
X 			unsigned long s;
X 			
X@@ -145,7 +145,7 @@
X 			
X 			printf("'%04i-%02i-%02i'", _tm->tm_year+1900, _tm->tm_mon+1, _tm->tm_mday);
X #else
X-			printf("%li", PXtoLong(s, PX_Field_Type_LongInt));
X+			printf("%lli", PXtoLong(s, PX_Field_Type_LongInt));
X #endif
X 		} else {
X 			BLOCK_COPY(str, felder[i]->size);
X@@ -156,9 +156,9 @@
X 	if (header->fileType == PX_Filetype_PX) {
X 		short s;
X 		BLOCK_COPY(&s,2);
X-		printf("BlockNumber: %li\n",PXtoLong(s, PX_Field_Type_ShortInt));
X+		printf("BlockNumber: %lli\n",PXtoLong(s, PX_Field_Type_ShortInt));
X 		BLOCK_COPY(&s,2);
X-		printf("Statistics: %li\n",PXtoLong(s, PX_Field_Type_ShortInt));
X+		printf("Statistics: %lli\n",PXtoLong(s, PX_Field_Type_ShortInt));
X 	}
X 	#undef BLOCK_COPY
X 	return 0;
X@@ -179,7 +179,7 @@
X 	
X 	px_blocks **blocks;
X 	
X-	int f,i,n;
X+	int f,i;
X 	
X 	if (argc == 2) {
X 		if ( (f = open (argv[1] , O_RDONLY)) == -1 ) {
END-of-pxtools/patches/patch-ab
echo x - pxtools/patches/patch-ac
sed 's/^X//' >pxtools/patches/patch-ac << 'END-of-pxtools/patches/patch-ac'
X--- src/pxsqldump.c.orig	Fri Nov 26 10:41:47 1999
X+++ src/pxsqldump.c	Sat Nov 27 19:33:18 1999
X@@ -88,7 +88,6 @@
X 			printf("%f", PXtoDouble(s, felder[i]->type) );
X 		} else if (felder[i]->type == PX_Field_Type_Date) {
X 			unsigned long s;
X-			time_t t;
X 			struct tm *_tm;
X 			
X 			BLOCK_COPY(&s, felder[i]->size);
X@@ -101,7 +100,6 @@
X #endif
X 		} else if (felder[i]->type == PX_Field_Type_Timestamp) {
X 			unsigned long long s;
X-			time_t t;
X 			struct tm *_tm;
X 			
X 			BLOCK_COPY(&s, felder[i]->size);
END-of-pxtools/patches/patch-ac
echo x - pxtools/patches/patch-ad
sed 's/^X//' >pxtools/patches/patch-ad << 'END-of-pxtools/patches/patch-ad'
X--- src/Makefile.in.orig	Fri Nov 26 10:57:15 1999
X+++ src/Makefile.in	Sat Nov 27 19:42:43 1999
X@@ -58,6 +58,7 @@
X PRE_UNINSTALL = :
X POST_UNINSTALL = :
X CC = @CC@
X+CFLAGS = @CFLAGS@
X MAKEINFO = @MAKEINFO@
X PACKAGE = @PACKAGE@
X VERSION = @VERSION@
X@@ -70,7 +71,7 @@
X 
X noinst_HEADERS = pxtypes.h pxconvert.h pxparse.h
X 
X-CFLAGS = -g -Wall #-DDEBUG -DDEBUG_HEAD_COPY
X+#CFLAGS = -g -Wall #-DDEBUG -DDEBUG_HEAD_COPY
X mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
X CONFIG_HEADER = ../config.h
X CONFIG_CLEAN_FILES = 
END-of-pxtools/patches/patch-ad
echo c - pxtools/files
mkdir -p pxtools/files > /dev/null 2>&1
echo x - pxtools/files/md5
sed 's/^X//' >pxtools/files/md5 << 'END-of-pxtools/files/md5'
XMD5 (pxtools-0.0.3.tar.gz) = aed6a65c1c1ff4fd9928551b5794d309
END-of-pxtools/files/md5
echo c - pxtools/pkg
mkdir -p pxtools/pkg > /dev/null 2>&1
echo x - pxtools/pkg/PLIST
sed 's/^X//' >pxtools/pkg/PLIST << 'END-of-pxtools/pkg/PLIST'
Xbin/pxinfo
Xbin/pxsqldump
Xbin/pxcsvdump
END-of-pxtools/pkg/PLIST
echo x - pxtools/pkg/DESCR
sed 's/^X//' >pxtools/pkg/DESCR << 'END-of-pxtools/pkg/DESCR'
Xpxtools is a collection of tools to work with a Paradox-databases.
X
Xpxtools consists of the following:
X* pxinfo scans the header of a specified database-file and dumps
X  the important information.
X* pxsqldump/pxcsvdump are utilities to extract the data from a
X  Paradox-database.  The output is an SQL-/CSV-dump that can be
X  used to recreate the database in an SQL-enviroment.
X
XWWW: http://www.kneschke.de/projekte/pxtools/
X
X- Chris D. Faulhaber
Xjedgar@fxp.org
END-of-pxtools/pkg/DESCR
echo x - pxtools/pkg/COMMENT
sed 's/^X//' >pxtools/pkg/COMMENT << 'END-of-pxtools/pkg/COMMENT'
Xpxtools is a collection of tools to work with a Paradox-databases.
END-of-pxtools/pkg/COMMENT
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991128010231.103399B38>