[Midnightbsd-cvs] mports [16072] trunk/databases: add perl program to upgrade from MySQL to PostgreSQL.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Mar 21 18:40:03 EDT 2014
Revision: 16072
http://svnweb.midnightbsd.org/mports/?rev=16072
Author: laffer1
Date: 2014-03-21 18:40:01 -0400 (Fri, 21 Mar 2014)
Log Message:
-----------
add perl program to upgrade from MySQL to PostgreSQL.
Modified Paths:
--------------
trunk/databases/Makefile
Added Paths:
-----------
trunk/databases/mysql2pgsql/
trunk/databases/mysql2pgsql/Makefile
trunk/databases/mysql2pgsql/distinfo
trunk/databases/mysql2pgsql/pkg-descr
Modified: trunk/databases/Makefile
===================================================================
--- trunk/databases/Makefile 2014-03-18 04:25:15 UTC (rev 16071)
+++ trunk/databases/Makefile 2014-03-21 22:40:01 UTC (rev 16072)
@@ -33,6 +33,7 @@
SUBDIR += memcached
SUBDIR += memcachedb
SUBDIR += mysql-connector-java
+SUBDIR += mysql2pgsql
SUBDIR += mysql51-client
SUBDIR += mysql51-scripts
SUBDIR += mysql51-server
Added: trunk/databases/mysql2pgsql/Makefile
===================================================================
--- trunk/databases/mysql2pgsql/Makefile (rev 0)
+++ trunk/databases/mysql2pgsql/Makefile 2014-03-21 22:40:01 UTC (rev 16072)
@@ -0,0 +1,30 @@
+# $MidnightBSD$
+# $FreeBSD: head/databases/mysql2pgsql/Makefile 346108 2014-02-26 06:38:36Z ehaupt $
+
+PORTNAME= mysql2pgsql
+PORTVERSION= 1.2
+CATEGORIES= databases
+MASTER_SITES= http://pgfoundry.org/frs/download.php/1535/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX= .perl
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Convert a MySQL dump to a PostgreSQL dump
+LICENSE= bsd4
+
+USES= shebangfix
+USE_PERL5_RUN= yes
+NO_BUILD= yes
+
+SHEBANG_FILES= mysql2pgsql.perl
+PLIST_FILES= bin/mysql2pgsql
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ ${CP} -p ${DISTDIR}/mysql2pgsql.perl ${WRKSRC}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/mysql2pgsql.perl \
+ ${PREFIX}/bin/mysql2pgsql
+
+.include <bsd.port.mk>
Added: trunk/databases/mysql2pgsql/distinfo
===================================================================
--- trunk/databases/mysql2pgsql/distinfo (rev 0)
+++ trunk/databases/mysql2pgsql/distinfo 2014-03-21 22:40:01 UTC (rev 16072)
@@ -0,0 +1,2 @@
+SHA256 (mysql2pgsql.perl) = e98597a849f70e27879bd33fd0b8729c6e84b5e4ef68cd640f7c3f9b12e67965
+SIZE (mysql2pgsql.perl) = 41961
Added: trunk/databases/mysql2pgsql/pkg-descr
===================================================================
--- trunk/databases/mysql2pgsql/pkg-descr (rev 0)
+++ trunk/databases/mysql2pgsql/pkg-descr 2014-03-21 22:40:01 UTC (rev 16072)
@@ -0,0 +1,7 @@
+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://pgfoundry.org/projects/mysql2pgsql/
More information about the Midnightbsd-cvs
mailing list