Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2008 14:14:20 -0400 (EDT)
From:      Alex Kloss <klossalex@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        klossalex@gmail.com
Subject:   ports/125580: [PATCH] Update databases/mysql2pgsql to 1.2
Message-ID:  <200807131814.m6DIEKFX001480@greenwood.homeip.net>
Resent-Message-ID: <200807131840.m6DIe5AX092274@freefall.freebsd.org>

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

>Number:         125580
>Category:       ports
>Synopsis:       [PATCH] Update databases/mysql2pgsql to 1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 13 18:40:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kloss
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD alexandria.greenwood.homeip.net 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Jul 9 22:32:42 EDT 2008 root@alexandria:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	The attached patch updates the mysql2pgsql port to version 1.2.

	The patch takes care of most of the update, but the files/ directory 
	and all files below it should be removed as well, as no patches are 
	necessary to install this properly.

	Also, this is my first port update, so any feedback would be appreciated!

	Thanks!
	
>How-To-Repeat:
	
>Fix:

	

--- mysql2pgsql-1.2.patch begins here ---
diff -ruN mysql2pgsql/Makefile mysql2pgsql.new/Makefile
--- mysql2pgsql/Makefile	2008-06-06 09:16:55.000000000 -0400
+++ mysql2pgsql.new/Makefile	2008-07-13 12:54:25.000000000 -0400
@@ -6,29 +6,24 @@
 #
 
 PORTNAME=	mysql2pgsql
-PORTVERSION=	20010527
-PORTREVISION=	2
+PORTVERSION=	1.2
 CATEGORIES=	databases
-MASTER_SITES=	http://www.rot13.org/~dpavlin/projects/sql/
+MASTER_SITES=	http://pgfoundry.org/frs/download.php/1535/
 DISTNAME=	${PORTNAME}
-EXTRACT_SUFX=
-EXTRACT_ONLY=	${PORTNAME}
+EXTRACT_SUFX=	.perl
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	klossalex@gmail.com
 COMMENT=	Convert a MySQL dump to a PostgreSQL dump
 
-RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
-
-PATCH_WRKSRC=	${WRKDIR}
 PLIST_FILES=	bin/mysql2pgsql
 USE_PERL5=	yes
 NO_BUILD=	yes
 
 do-extract:
 	${MKDIR} ${WRKDIR}
-	${CP} -p ${DISTDIR}/mysql2pgsql ${WRKDIR}
+	${CP} -p ${DISTDIR}/mysql2pgsql.perl ${WRKDIR}
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/mysql2pgsql ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKDIR}/mysql2pgsql.perl ${PREFIX}/bin/mysql2pgsql
 
 .include <bsd.port.mk>
diff -ruN mysql2pgsql/distinfo mysql2pgsql.new/distinfo
--- mysql2pgsql/distinfo	2006-01-22 03:23:21.000000000 -0500
+++ mysql2pgsql.new/distinfo	2008-07-13 12:54:25.000000000 -0400
@@ -1,3 +1,3 @@
-MD5 (mysql2pgsql) = 5ffeb56aacb9ab60753727b3358e0d75
-SHA256 (mysql2pgsql) = bcc2ca51f302b1c5362270e87dd1fea90090fa7408d56e7e986774f758f45ac9
-SIZE (mysql2pgsql) = 6467
+MD5 (mysql2pgsql.perl) = 544a64a9d15efb37c6860d912ce23e3e
+SHA256 (mysql2pgsql.perl) = e98597a849f70e27879bd33fd0b8729c6e84b5e4ef68cd640f7c3f9b12e67965
+SIZE (mysql2pgsql.perl) = 41961
diff -ruN mysql2pgsql/files/patch-arguments mysql2pgsql.new/files/patch-arguments
--- mysql2pgsql/files/patch-arguments	2001-06-23 12:30:27.000000000 -0400
+++ mysql2pgsql.new/files/patch-arguments	1969-12-31 19:00:00.000000000 -0500
@@ -1,11 +0,0 @@
---- mysql2pgsql.old	Sat Jun 23 16:12:18 2001
-+++ mysql2pgsql	Sat Jun 23 16:11:51 2001
-@@ -49,7 +49,7 @@
- 		exit 1;
- 	} else {
- 		$dump="$ARGV[1]";
--		$database="$ARGV[1]";
-+		$database="$ARGV[2]";
- 	}
- } else {
- 	$dump="$ARGV[0]";
diff -ruN mysql2pgsql/pkg-descr mysql2pgsql.new/pkg-descr
--- mysql2pgsql/pkg-descr	2001-06-22 22:36:54.000000000 -0400
+++ mysql2pgsql.new/pkg-descr	2008-07-13 12:54:25.000000000 -0400
@@ -1,10 +1,7 @@
-The perl script mysql2pgsql can be used to convert MySQL database
-dumps to a -compatible format (so the data can be imported into
-PostgreSQL).  This can be useful if you are switching from MySQL
+The Perl script mysql2pgsql can be used to convert MySQL database
+dumps to a PostgreSQL-compatible format (so the data can be imported
+into PostgreSQL).  This can be useful if you are switching from MySQL
 to PostgreSQL and you have quite a bit of data in your MySQL
 databases.
 
-WWW: http://www.rot13.org/~dpavlin/projects.html
-
-- Pete
-petef@databits.net
+WWW: http://pgfoundry.org/projects/mysql2pgsql/
--- mysql2pgsql-1.2.patch ends here ---


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



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