diff options
author | roberto <roberto@FreeBSD.org> | 2001-06-23 16:30:27 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2001-06-23 16:30:27 +0000 |
commit | c7e833f92403d5b3381651f357d7eab32c4962c3 (patch) | |
tree | 5d7ea3a7d7f0ddb1229652e5f65df1d955eb9cd2 /databases/mysql2pgsql | |
parent | 427e70f666c055a041530f3c1a6acd3f72480998 (diff) | |
download | FreeBSD-ports-c7e833f92403d5b3381651f357d7eab32c4962c3.zip FreeBSD-ports-c7e833f92403d5b3381651f357d7eab32c4962c3.tar.gz |
- modify Makefile to correctly handle the DISTFILE.
- add a patch to correctly handle the arguments (sent to the author).
Approved by: petef@databits.net (MAINTAINER)
Diffstat (limited to 'databases/mysql2pgsql')
-rw-r--r-- | databases/mysql2pgsql/Makefile | 10 | ||||
-rw-r--r-- | databases/mysql2pgsql/files/patch-arguments | 11 |
2 files changed, 19 insertions, 2 deletions
diff --git a/databases/mysql2pgsql/Makefile b/databases/mysql2pgsql/Makefile index 70454b5..e3ffb32 100644 --- a/databases/mysql2pgsql/Makefile +++ b/databases/mysql2pgsql/Makefile @@ -10,17 +10,23 @@ PORTVERSION= 20010527 CATEGORIES= databases MASTER_SITES= http://www.rot13.org/~dpavlin/projects/sql/ DISTNAME= ${PORTNAME} -EXTRACT_ONLY= # empty +EXTRACT_SUFX= +EXTRACT_ONLY= ${PORTNAME} MAINTAINER= petef@databits.net RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg +PATCH_WRKSRC= ${WRKDIR} USE_PERL5= yes NO_BUILD= yes +do-extract: + ${MKDIR} ${WRKDIR} + ${CP} -p ${DISTDIR}/mysql2pgsql ${WRKDIR} + do-install: - ${INSTALL_SCRIPT} ${DISTDIR}/mysql2pgsql ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/mysql2pgsql ${PREFIX}/bin .include <bsd.port.mk> diff --git a/databases/mysql2pgsql/files/patch-arguments b/databases/mysql2pgsql/files/patch-arguments new file mode 100644 index 0000000..2195b15 --- /dev/null +++ b/databases/mysql2pgsql/files/patch-arguments @@ -0,0 +1,11 @@ +--- 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]"; |