From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jul 13 18:40:05 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9995F1065675 for ; Sun, 13 Jul 2008 18:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 659C88FC2F for ; Sun, 13 Jul 2008 18:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6DIe5uM092275 for ; Sun, 13 Jul 2008 18:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6DIe5AX092274; Sun, 13 Jul 2008 18:40:05 GMT (envelope-from gnats) Resent-Date: Sun, 13 Jul 2008 18:40:05 GMT Resent-Message-Id: <200807131840.m6DIe5AX092274@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Kloss Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 193401065670 for ; Sun, 13 Jul 2008 18:35:51 +0000 (UTC) (envelope-from alex@greenwood.homeip.net) Received: from ispmxmta05-srv.windstream.net (ispmxmta05-srv.windstream.net [166.102.165.166]) by mx1.freebsd.org (Postfix) with ESMTP id A98DE8FC0A for ; Sun, 13 Jul 2008 18:35:50 +0000 (UTC) (envelope-from alex@greenwood.homeip.net) Received: from ispmxaamta08-gx.windstream.net ([98.17.9.107]) by ispmxmta06-srv.windstream.net with ESMTP id <20080713181432.SUOA29060.ispmxmta06-srv.windstream.net@ispmxaamta08-gx.windstream.net> for ; Sun, 13 Jul 2008 13:14:32 -0500 Received: from alexandria.greenwood.homeip.net ([98.17.9.107]) by ispmxaamta08-gx.windstream.net with ESMTP id <20080713181432.WGMQ6463.ispmxaamta08-gx.windstream.net@alexandria.greenwood.homeip.net>; Sun, 13 Jul 2008 13:14:32 -0500 Received: from greenwood.homeip.net (localhost [127.0.0.1]) by alexandria.greenwood.homeip.net (Postfix) with ESMTP id C5A921143D; Sun, 13 Jul 2008 14:14:20 -0400 (EDT) Received: (from alex@localhost) by greenwood.homeip.net (8.14.2/8.14.2/Submit) id m6DIEKFX001480; Sun, 13 Jul 2008 14:14:20 -0400 (EDT) (envelope-from alex) Message-Id: <200807131814.m6DIEKFX001480@greenwood.homeip.net> Date: Sun, 13 Jul 2008 14:14:20 -0400 (EDT) From: Alex Kloss To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: klossalex@gmail.com Subject: ports/125580: [PATCH] Update databases/mysql2pgsql to 1.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alex Kloss List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2008 18:40:05 -0000 >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 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: