From efcaba0c16b2dc9bcd4ff232185b5db76e696e32 Mon Sep 17 00:00:00 2001 From: Palle Girgensohn Date: Mon, 31 Jan 2005 00:20:25 +0000 Subject: Split the postgresql ports into a server and a client part. The JDBC interface has been moved from the main distribution to its own project at jdbc.postgresql.org. Fixate to the latest version in main distro, 7.4.6, pending an update to latest version from the project site. PR: 75344 Approved by: portmgr@ (kris), ade & sean (mentors) --- databases/postgresql-jdbc/Makefile | 25 +++++++++++++------------ databases/postgresql-jdbc/files/patch-aa | 14 -------------- databases/postgresql-jdbc/pkg-message | 8 -------- databases/postgresql-jdbc/pkg-plist | 24 ------------------------ 4 files changed, 13 insertions(+), 58 deletions(-) delete mode 100644 databases/postgresql-jdbc/files/patch-aa delete mode 100644 databases/postgresql-jdbc/pkg-message delete mode 100644 databases/postgresql-jdbc/pkg-plist (limited to 'databases') diff --git a/databases/postgresql-jdbc/Makefile b/databases/postgresql-jdbc/Makefile index c3a5211ec50f..d825fca4e3d7 100644 --- a/databases/postgresql-jdbc/Makefile +++ b/databases/postgresql-jdbc/Makefile @@ -5,6 +5,7 @@ # $FreeBSD$ # +PORTNAME= postgresql PORTREVISION= 0 CATEGORIES= databases java PKGNAMESUFFIX= -jdbc @@ -14,33 +15,33 @@ COMMENT= The Java JDBC implementation for PostgreSQL BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant -POSTGRESQL_PORT?= databases/postgresql7 -POSTGRESQL_SUBPORT=YES -.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile> +MASTERDIR= ${.CURDIR}/../../databases/postgresql74-server + +CONFLICTS= ${PORTNAME}${PKGNAMESUFFIX}-7.[0-3]* \ + ${PORTNAME}${PKGNAMESUFFIX}-[1-689]* CONFIGURE_ARGS= --with-java -USE_JAVA= 1.1+ +USE_JAVA= yes +JAVA_VERSION?= "1.1+" CONFIGURE_ENV= JAVA_HOME="${JAVA_HOME}" MAKE_ENV+= JAVA_HOME="${JAVA_HOME}" -MAKE_ARGS+= -C src/interfaces/jdbc +BUILD_DIRS= src/interfaces/jdbc +SLAVE_ONLY= yes post-install: - @ ${MKDIR} -m 0555 ${PREFIX}/share/java/classes ;\ + @- ${MKDIR} -m 0555 ${PREFIX}/share/java/classes ;\ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/jars/postgresql.jar \ ${PREFIX}/share/java/classes/postgresql.jar .if !defined(NOPORTDOCS) - @ ${MKDIR} -m 0555 ${EXAMPLESDIR} ;\ + @- ${MKDIR} -m 0555 ${EXAMPLESDIR} ;\ cd ${WRKSRC}/src/interfaces/jdbc/example ;\ ${PAX} -rw . ${EXAMPLESDIR} .for i in README - @ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \ + @- ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \ ${EXAMPLESDIR} .endfor .endif - @ ${ECHO} ==================================== ;\ - ${SED} -e "s,/usr/local,${PREFIX},g" ${PKGDIR}/pkg-message ;\ - ${ECHO} ==================================== -.include +.include "${MASTERDIR}/Makefile" diff --git a/databases/postgresql-jdbc/files/patch-aa b/databases/postgresql-jdbc/files/patch-aa deleted file mode 100644 index 89806a159665..000000000000 --- a/databases/postgresql-jdbc/files/patch-aa +++ /dev/null @@ -1,14 +0,0 @@ ---- src/interfaces/jdbc/build.xml.orig Thu Jun 24 11:51:44 2004 -+++ src/interfaces/jdbc/build.xml Thu Sep 2 01:51:36 2004 -@@ -113,10 +113,7 @@ - - - -- -- -- -- -+ - - - diff --git a/databases/postgresql-jdbc/pkg-message b/databases/postgresql-jdbc/pkg-message deleted file mode 100644 index d00982c26c05..000000000000 --- a/databases/postgresql-jdbc/pkg-message +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 7f92494f27c0..000000000000 --- a/databases/postgresql-jdbc/pkg-plist +++ /dev/null @@ -1,24 +0,0 @@ -%%PORTDOCS%%%%EXAMPLESDIR%%/ImageViewer.java -%%PORTDOCS%%%%EXAMPLESDIR%%/README -%%PORTDOCS%%%%EXAMPLESDIR%%/Unicode.java -%%PORTDOCS%%%%EXAMPLESDIR%%/basic.java -%%PORTDOCS%%%%EXAMPLESDIR%%/blobtest.java -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockClient.java -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockDB.java -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockDispenserImpl.java -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockItemImpl.java -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockServer.java -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/readme -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/stock.idl -%%PORTDOCS%%%%EXAMPLESDIR%%/corba/stock.sql -%%PORTDOCS%%%%EXAMPLESDIR%%/datestyle.java -%%PORTDOCS%%%%EXAMPLESDIR%%/metadata.java -%%PORTDOCS%%%%EXAMPLESDIR%%/psql.java -%%PORTDOCS%%%%EXAMPLESDIR%%/threadsafe.java -share/java/classes/postgresql.jar -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/corba -@unexec rmdir %D/%%EXAMPLESDIR%% 2>/dev/null || true -share/postgresql/java/postgresql-examples.jar -share/postgresql/java/postgresql.jar -@dirrm share/postgresql/java -@unexec rmdir %D/share/postgresql 2>/dev/null || true -- cgit v1.2.3