Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Nov 2000 17:02:26 -0600
From:      Dave Glowacki <dglo@ssec.wisc.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22706: Update MySQL JDBC driver
Message-ID:  <200011082302.RAA20361@hyde.ssec.wisc.edu>

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

>Number:         22706
>Category:       ports
>Synopsis:       Update driver
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 08 15:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dave Glowacki
>Release:        FreeBSD 4.1 i386
>Organization:
>Environment:

	

>Description:

	Update MySQL JDBC driver

>How-To-Repeat:
>Fix:

	The attached 'shar' file contains a MySQL JDBC driver
	which should work for both jdk1.1.8 and jdk1.2.2
	(I hope :-).

	Note that the '.include <bsd.port.mk>' in the Makefile
	is in the middle of the file rather than at the end,
	and it *needs* to be there because I need LOCALBASE
	expanded before I can check for the existence of
	the jdk1.2.2 stuff.  I'd be happy to learn of a more
	elegant way of doing this!

# 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:
#
#	mysql-jdbc-mm/files/patch-Makefile
#	mysql-jdbc-mm/files/patch-README.html
#	mysql-jdbc-mm/Makefile
#	mysql-jdbc-mm/pkg-comment
#	mysql-jdbc-mm/pkg-descr
#	mysql-jdbc-mm/pkg-plist
#	mysql-jdbc-mm/distinfo
#
if [ ! -d mysql-jdbc-mm ]; then mkdir mysql-jdbc-mm; fi
if [ ! -d mysql-jdbc-mm/files ]; then mkdir mysql-jdbc-mm/files; fi
echo x - mysql-jdbc-mm/files/patch-Makefile
sed 's/^X//' >mysql-jdbc-mm/files/patch-Makefile << 'END-of-mysql-jdbc-mm/files/patch-Makefile'
X--- Makefile.orig	Thu Oct 12 21:41:31 2000
X+++ Makefile	Thu Oct 12 21:41:37 2000
X@@ -2,7 +2,7 @@
X # Makefile for mm mysql drivers
X #
X 
X-JAVAC_1 = /usr/local/jdk118/bin/javac
X+JAVAC_1 = /usr/local/jdk1.1.8/bin/javac
X JAVAC_2 = /usr/local/jdk1.2.2/bin/javac
X JAVAC_FLAGS =-g 
X JAR = /usr/local/jdk1.2.2/bin/jar
X@@ -69,8 +69,19 @@
X $(JAVAX_TARGETS): %.class: %.java
X 	$(JAVAC_2) $(JAVAC_FLAGS) $<
X 
X-jar: all
X-	$(JAR) -cv0f mysql_1_uncomp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class; $(JAR) -cvf mysql_1_comp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class;$(JAR) -cv0f mysql_2_uncomp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc2/*.class; $(JAR) -cvf mysql_2_comp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc2/*.class; $(JAR) -cvf mysql_both_comp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class org/gjt/mm/mysql/jdbc2/*.class; $(JAR) -cv0f mysql_both_uncomp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class org/gjt/mm/mysql/jdbc2/*.class
X+jar: jdbc1-jar jdbc2-jar both-jar
X+
X+jdbc1-jar: jdbc1
X+	@$(JAR) -cv0f mysql_1_uncomp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class
X+	@$(JAR) -cvf mysql_1_comp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class
X+
X+jdbc2-jar: jdbc2
X+	@$(JAR) -cv0f mysql_2_uncomp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc2/*.class
X+	@$(JAR) -cvf mysql_2_comp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc2/*.class
X+
X+both-jar: jdbc1 jdbc2
X+	@$(JAR) -cvf mysql_both_comp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class org/gjt/mm/mysql/jdbc2/*.class
X+	@$(JAR) -cv0f mysql_both_uncomp.jar org/gjt/mm/mysql/*.class org/gjt/mm/mysql/jdbc1/*.class org/gjt/mm/mysql/jdbc2/*.class
X 
X clean:
X 	rm -f $(JDBC_CORE_PREFIX)/*.class \
X@@ -82,3 +93,5 @@
X 
X gjt:
X 	cp CHANGES README COPYING ../mm-for-gjt/java/org/gjt/mm/mysql; cp org/gjt/mm/mysql/*.java ../mm-for-gjt/java/org/gjt/mm/mysql
X+
X+install:
END-of-mysql-jdbc-mm/files/patch-Makefile
echo x - mysql-jdbc-mm/files/patch-README.html
sed 's/^X//' >mysql-jdbc-mm/files/patch-README.html << 'END-of-mysql-jdbc-mm/files/patch-README.html'
X--- doc/README.html.orig	Sat Nov  4 15:07:21 2000
X+++ doc/README.html	Sat Nov  4 15:17:30 2000
X@@ -29,7 +29,7 @@
X <font face="Arial, Helvettica, Sans-Serif" size="4"><b>MM.MySQL Specific Documentation</b></font>
X 
X <p>
X-This document used to have a short synopsis of what was required to get the driver up and running. There is now a better document included in this distribution in the <code>mm.doc</code> directory, named <a href="mm.doc/book1.html">book1.html</a>. This is created from DOCBOOK sources, and although still a work in progress, is much more complete than the documentation that originally came with the driver.
X+This document used to have a short synopsis of what was required to get the driver up and running. There is now a better document included in this distribution in the <code>mm.doc</code> directory, named <a href="mm.doc/book1.htm">book1.htm</a>. This is created from DOCBOOK sources, and although still a work in progress, is much more complete than the documentation that originally came with the driver.
X </td></tr></table>
X </body>
X </html>
END-of-mysql-jdbc-mm/files/patch-README.html
echo x - mysql-jdbc-mm/Makefile
sed 's/^X//' >mysql-jdbc-mm/Makefile << 'END-of-mysql-jdbc-mm/Makefile'
X# New ports collection makefile for:	The mm MySql JDBC interface
X# Date created:		2 January 2000
X# Whom:			Dave Glowacki <dglo@ssec.wisc.edu>
X#
X# $FreeBSD: ports/databases/mysql-jdbc-mm/Makefile,v 1.6 2000/09/05 02:09:25 steve Exp $
X#
X
XPORTNAME=	mysql-jdbc-mm
XPORTVERSION=	2.0.2
XCATEGORIES=	databases java
XMASTER_SITES=	http://www.worldserver.com/mm.mysql/dist/
XDISTNAME=	mm.mysql-${PORTVERSION}
XEXTRACT_SUFX=	-src.jar
X
XMAINTAINER=	dglo@SSEC.WISC.EDU
X
XJAVA_HOME?=	${LOCALBASE}/jdk1.1.8
XBUILD_DEPENDS=	${JAVA_HOME}/bin/javac:${PORTSDIR}/java/jdk
XRUN_DEPENDS=	${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk
X
XEXTRACT_BEFORE_ARGS=	-xf
X
XUSE_GMAKE=	yes
X
XJAVA2_HOME=	${LOCALBASE}/jdk1.2.2
XJAVA2C=		${JAVA2_HOME}/bin/javac
X
XCLASSDIR=	${LOCALBASE}/share/java/classes
X
X# the 'do-install' and 'post-install' dummy targets are placeholders
X# so bsd.port.mk doesn't override the targets below
X#
Xdo-install:
Xpost-install:
X
X# bsd.port.mk has to be included here so all the variables are expanded
X# before all the "exists(${JAVA2C})" checks below
X#
X.include <bsd.port.mk>
X
X.if exists(${JAVA2C})
XALL_TARGET=	jar
XEXTRACT_CMD=	${JAVA2_HOME}/bin/jar
X.else
XALL_TARGET=	jdbc1-jar
XEXTRACT_CMD=	${JAVA_HOME}/bin/jar
X.endif
X
Xdo-install:
X	@${MKDIR} ${CLASSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/mysql_1_uncomp.jar ${CLASSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/mysql_1_comp.jar ${CLASSDIR}
X.if exists(${JAVA2C})
X	@${INSTALL_DATA} ${WRKSRC}/mysql_2_uncomp.jar ${CLASSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/mysql_2_comp.jar ${CLASSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/mysql_both_uncomp.jar ${CLASSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/mysql_both_comp.jar ${CLASSDIR}
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${LOCALBASE}/share/doc/mysql-jdbc
X	@(cd ${WRKSRC}/doc && ${TAR} -c -f - .) \
X		| (cd ${LOCALBASE}/share/doc/mysql-jdbc && ${TAR} --unlink -x -f -)
X	@(cd ${LOCALBASE} \
X		&& find share/doc/mysql-jdbc -type f -print >> ${TMPPLIST})
X.endif
X.if exists(${JAVA2C})
X	for i in mysql_2_uncomp.jar mysql_2_comp.jar mysql_both_uncomp.jar mysql_both_comp.jar; do \
X		echo ${CLASSDIR}/$$i >> ${TMPPLIST}; \
X	done
X	echo "You may want to delete one"
X	echo " of the mysql .jar files in ${CLASSDIR}"
X	echo ""
X	echo " mysql_1_comp.jar - compressed JDBC1 classes"
X	echo " mysql_1_uncomp.jar - uncompressed JDBC1 classes"
X.else
X	echo "You may want to delete all but one"
X	echo " of the mysql .jar files in ${CLASSDIR}"
X	echo ""
X	echo " mysql_1_comp.jar - compressed JDBC1 classes"
X	echo " mysql_1_uncomp.jar - uncompressed JDBC1 classes"
X	echo " mysql_2_comp.jar - compressed JDBC2 classes"
X	echo " mysql_2_uncomp.jar - uncompressed JDBC2 classes"
X	echo " mysql_both_comp.jar - compressed JDBC1 and JDBC2 classes"
X	echo " mysql_both_uncomp.jar - uncompressed JDBC1 and JDBC2 classes"
X.endif
END-of-mysql-jdbc-mm/Makefile
echo x - mysql-jdbc-mm/pkg-comment
sed 's/^X//' >mysql-jdbc-mm/pkg-comment << 'END-of-mysql-jdbc-mm/pkg-comment'
XThe mm JDBC interface for MySQL
END-of-mysql-jdbc-mm/pkg-comment
echo x - mysql-jdbc-mm/pkg-descr
sed 's/^X//' >mysql-jdbc-mm/pkg-descr << 'END-of-mysql-jdbc-mm/pkg-descr'
XThis is a port of the mm JDBC driver which is used to access MySQL
Xdatabases using a database-independant API in Java.
X
XWWW: http://www.worldserver.com/mm.mysql/
X
Xdglo@ssec.wisc.edu
END-of-mysql-jdbc-mm/pkg-descr
echo x - mysql-jdbc-mm/pkg-plist
sed 's/^X//' >mysql-jdbc-mm/pkg-plist << 'END-of-mysql-jdbc-mm/pkg-plist'
Xshare/java/classes/mysql_1_uncomp.jar
Xshare/java/classes/mysql_1_comp.jar
END-of-mysql-jdbc-mm/pkg-plist
echo x - mysql-jdbc-mm/distinfo
sed 's/^X//' >mysql-jdbc-mm/distinfo << 'END-of-mysql-jdbc-mm/distinfo'
XMD5 (mm.mysql-2.0.2-src.jar) = 962edb27b15fd88ccd4556e427578733
END-of-mysql-jdbc-mm/distinfo
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?200011082302.RAA20361>