diff options
author | vanilla <vanilla@FreeBSD.org> | 2002-02-19 16:35:58 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2002-02-19 16:35:58 +0800 |
commit | e96733c6efab1a87246ebfe34f3ea138fabe2ee8 (patch) | |
tree | 9be69a9d6708b9cb7dd028b5358aa1f84e8cb80d /databases | |
parent | e0362f635bb5ee33c33a017b52671545819b8ca7 (diff) | |
download | freebsd-ports-gnome-e96733c6efab1a87246ebfe34f3ea138fabe2ee8.tar.gz freebsd-ports-gnome-e96733c6efab1a87246ebfe34f3ea138fabe2ee8.tar.zst freebsd-ports-gnome-e96733c6efab1a87246ebfe34f3ea138fabe2ee8.zip |
This is the implementation of JDBC, the Java Database Connectivity API,
for accessing PostgreSQL databases from Java.
PR: ports/34856
Submitted by: Palle Girgensohn <girgen@partitur.se>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/postgresql-jdbc/Makefile | 61 | ||||
-rw-r--r-- | databases/postgresql-jdbc/pkg-comment | 1 | ||||
-rw-r--r-- | databases/postgresql-jdbc/pkg-descr | 6 | ||||
-rw-r--r-- | databases/postgresql-jdbc/pkg-message | 8 | ||||
-rw-r--r-- | databases/postgresql-jdbc/pkg-plist | 28 |
6 files changed, 105 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index c52fd3f946eb..cbfbe52af1cf 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -91,6 +91,7 @@ SUBDIR += php-sqlrelay SUBDIR += phpmyadmin SUBDIR += phppgadmin + SUBDIR += postgresql-jdbc SUBDIR += postgresql-plruby SUBDIR += postgresql7 SUBDIR += pxtools diff --git a/databases/postgresql-jdbc/Makefile b/databases/postgresql-jdbc/Makefile new file mode 100644 index 000000000000..5b1dadfc4472 --- /dev/null +++ b/databases/postgresql-jdbc/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: PostgreSQL JDBC +# Date created: January 14, 2002 +# Whom: Palle Girgensohn <girgen@partitur.se> +# +# $FreeBSD$ +# + +PORTNAME= postgresql-jdbc +PORTVERSION= 7.2 +CATEGORIES= databases java + +MAINTAINER= girgen@partitur.se + +BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/jakarta-ant +# Since we cannot distribute JVMs in binary format yet, don't set this +# to allow bento to build something useful +#RUN_DEPENDS= ${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk13 + +POSTGRESQL_SUBPORT=YES +.include <${.CURDIR}/../postgresql7/Makefile> + +CONFIGURE_ARGS= --with-java + +# Honour JAVA_HOME if it is set +JAVA_HOME?= ${LOCALBASE}/jdk1.3.1 + +CONFIGURE_ENV= JAVA_HOME="${JAVA_HOME}" +MAKE_ENV+= JAVA_HOME="${JAVA_HOME}" +MAKE_ARGS+= -C src/interfaces/jdbc + +pre-everything:: + @ ${ECHO} ;\ + ${ECHO} "Building PostgreSQL JDBC using the JVM in ${JAVA_HOME}." ;\ + ${ECHO} "You can instruct this port to use your favourite JVM by typing:" ;\ + ${ECHO} " make JAVA_HOME=${LOCALBASE}/jdk1.1.8" ;\ + ${ECHO} "or similar." ;\ + ${ECHO} + +post-build: +# will fail for java 1.1, so ignore errors + -@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C contrib/retep + +post-install: + @ ${MKDIR} -m 0555 ${PREFIX}/share/java/classes ;\ + ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/jars/postgresql.jar \ + ${PREFIX}/share/java/classes/postgresql.jar + @ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C contrib/retep install +.if !defined(NOPORTDOCS) + @ ${MKDIR} -m 0555 ${PREFIX}/share/examples/postgresql ;\ + cd ${WRKSRC}/src/interfaces/jdbc/example ;\ + pax -rw . ${PREFIX}/share/examples/postgresql +.for i in README Implementation + @ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \ + ${PREFIX}/share/examples/postgresql +.endfor +.endif + @ ${ECHO} ==================================== ;\ + ${SED} -e "s,/usr/local,${PREFIX},g" pkg-message ;\ + ${ECHO} ==================================== + +.include <bsd.port.mk> diff --git a/databases/postgresql-jdbc/pkg-comment b/databases/postgresql-jdbc/pkg-comment new file mode 100644 index 000000000000..4643a85c3dcc --- /dev/null +++ b/databases/postgresql-jdbc/pkg-comment @@ -0,0 +1 @@ +The Java JDBC implementation for PostgreSQL diff --git a/databases/postgresql-jdbc/pkg-descr b/databases/postgresql-jdbc/pkg-descr new file mode 100644 index 000000000000..69d500395c46 --- /dev/null +++ b/databases/postgresql-jdbc/pkg-descr @@ -0,0 +1,6 @@ +This is the implementation of JDBC, the Java Database Connectivity API, +for accessing PostgreSQL databases from Java. + +This software is part of the standard PostgreSQL distribution. + +WWW: http://www.postgresql.org/ diff --git a/databases/postgresql-jdbc/pkg-message b/databases/postgresql-jdbc/pkg-message new file mode 100644 index 000000000000..d00982c26c05 --- /dev/null +++ b/databases/postgresql-jdbc/pkg-message @@ -0,0 +1,8 @@ +PostgreSQL JDBC support installed! + +postgresql.jar resides in +/usr/local/share/java/classes/postgresql.jar +Add this to your CLASSPATH! + +java examples reside in +/usr/local/share/examples/postgresql diff --git a/databases/postgresql-jdbc/pkg-plist b/databases/postgresql-jdbc/pkg-plist new file mode 100644 index 000000000000..eb33a2980e1a --- /dev/null +++ b/databases/postgresql-jdbc/pkg-plist @@ -0,0 +1,28 @@ +%%PORTDOCS%%share/examples/postgresql/corba/StockClient.java +%%PORTDOCS%%share/examples/postgresql/corba/StockDB.java +%%PORTDOCS%%share/examples/postgresql/corba/StockDispenserImpl.java +%%PORTDOCS%%share/examples/postgresql/corba/StockItemImpl.java +%%PORTDOCS%%share/examples/postgresql/corba/StockServer.java +%%PORTDOCS%%share/examples/postgresql/corba/readme +%%PORTDOCS%%share/examples/postgresql/corba/stock.idl +%%PORTDOCS%%share/examples/postgresql/corba/stock.sql +%%PORTDOCS%%@dirrm share/examples/postgresql/corba +%%PORTDOCS%%share/examples/postgresql/ImageViewer.java +%%PORTDOCS%%share/examples/postgresql/Unicode.java +%%PORTDOCS%%share/examples/postgresql/basic.java +%%PORTDOCS%%share/examples/postgresql/blobtest.java +%%PORTDOCS%%share/examples/postgresql/datestyle.java +%%PORTDOCS%%share/examples/postgresql/metadata.java +%%PORTDOCS%%share/examples/postgresql/psql.java +%%PORTDOCS%%share/examples/postgresql/threadsafe.java +%%PORTDOCS%%share/examples/postgresql/README +%%PORTDOCS%%share/examples/postgresql/Implementation +%%PORTDOCS%%@dirrm share/examples/postgresql +share/postgresql/java/postgresql-examples.jar +share/postgresql/java/postgresql.jar +share/postgresql/java/retepTools.jar +@dirrm share/postgresql/java +@unexec rmdir %D/share/postgresql 2>/dev/null || true +share/java/classes/postgresql.jar +@unexec rmdir %D/share/java/classes 2>/dev/null || true +@unexec rmdir %D/share/java 2>/dev/null || true |