summaryrefslogtreecommitdiff
path: root/databases/jdbc-mysql5
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2009-02-11 22:35:43 +0000
committeradrianp <adrianp@pkgsrc.org>2009-02-11 22:35:43 +0000
commit8f5a95e8a723a0290704ace1bf045a14ae76e1d3 (patch)
treeb31b2b4c654aa3597703024c426bd7df76cc7f25 /databases/jdbc-mysql5
parent69e9442cea49e67083ad15c075f0839dba8993f4 (diff)
downloadpkgsrc-8f5a95e8a723a0290704ace1bf045a14ae76e1d3.tar.gz
MySQL provides connectivity for client applications developed in the Java
programming language via a JDBC driver, which is called MySQL Connector/J. MySQL Connector/J is a JDBC Type 4 driver. Different versions are available that are compatible with the JDBC 3.0 and JDBC 4.0 specifications. The Type 4 designation means that the driver is pure-Java implementation of the MySQL protocol and does not rely on the MySQL client libraries.
Diffstat (limited to 'databases/jdbc-mysql5')
-rw-r--r--databases/jdbc-mysql5/DESCR7
-rw-r--r--databases/jdbc-mysql5/Makefile32
-rw-r--r--databases/jdbc-mysql5/PLIST7
-rw-r--r--databases/jdbc-mysql5/distinfo5
4 files changed, 51 insertions, 0 deletions
diff --git a/databases/jdbc-mysql5/DESCR b/databases/jdbc-mysql5/DESCR
new file mode 100644
index 00000000000..bf443863411
--- /dev/null
+++ b/databases/jdbc-mysql5/DESCR
@@ -0,0 +1,7 @@
+MySQL provides connectivity for client applications developed in the Java
+programming language via a JDBC driver, which is called MySQL Connector/J.
+
+MySQL Connector/J is a JDBC Type 4 driver. Different versions are available
+that are compatible with the JDBC 3.0 and JDBC 4.0 specifications. The Type
+4 designation means that the driver is pure-Java implementation of the MySQL
+protocol and does not rely on the MySQL client libraries.
diff --git a/databases/jdbc-mysql5/Makefile b/databases/jdbc-mysql5/Makefile
new file mode 100644
index 00000000000..c909ea05f89
--- /dev/null
+++ b/databases/jdbc-mysql5/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/11 22:35:43 adrianp Exp $
+#
+
+DISTNAME= mysql-connector-java-5.0.8
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_MYSQL:=Connector-J/}
+
+MAINTAINER= adrianp@NetBSD.org
+HOMEPAGE= http://dev.mysql.com/doc/refman/5.0/en/connector-j.html
+COMMENT= MySQL 5.0 JDBC driver
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_JAVA= run
+USE_JAVA2= 1.5
+NO_BUILD= yes
+
+DOCDIR= share/doc/${PKGBASE}
+PLIST_SUBST+= PKGNAME_NOREV=${PKGNAME_NOREV:Q}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/java
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${DOCDIR}
+
+ ${INSTALL_DATA} ${WRKSRC}/${PKGNAME_NOREV}-bin.jar \
+ ${DESTDIR}${PREFIX}/lib/java
+ ${INSTALL_DATA} ${WRKSRC}/docs/README ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/README.txt ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/connector-j.html ${DESTDIR}${PREFIX}/${DOCDIR}
+
+.include "../../mk/java-vm.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/jdbc-mysql5/PLIST b/databases/jdbc-mysql5/PLIST
new file mode 100644
index 00000000000..00cadaed89a
--- /dev/null
+++ b/databases/jdbc-mysql5/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/11 22:35:43 adrianp Exp $
+lib/java/${PKGNAME_NOREV}-bin.jar
+share/doc/mysql-connector-java/connector-j.html
+share/doc/mysql-connector-java/README
+share/doc/mysql-connector-java/README.txt
+@dirrm share/doc/mysql-connector-java
+@unexec ${RMDIR} %D/lib/java 2>/dev/null || ${TRUE}
diff --git a/databases/jdbc-mysql5/distinfo b/databases/jdbc-mysql5/distinfo
new file mode 100644
index 00000000000..7320b34e9f6
--- /dev/null
+++ b/databases/jdbc-mysql5/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/02/11 22:35:43 adrianp Exp $
+
+SHA1 (mysql-connector-java-5.0.8.tar.gz) = c76df144d24b4c654dd5417b9b18e094534acba8
+RMD160 (mysql-connector-java-5.0.8.tar.gz) = 8aba23c16c4a7c955be052cdbbecce8ef4286ac8
+Size (mysql-connector-java-5.0.8.tar.gz) = 8652406 bytes