aboutsummaryrefslogtreecommitdiff
path: root/java/jakarta-commons-dbcp
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2003-10-06 08:28:48 +0000
committerErnst de Haan <znerd@FreeBSD.org>2003-10-06 08:28:48 +0000
commit3fddb0b9fd397e0320ca5a00bd9956d500e5c67b (patch)
treec2066db02f386e597a010041e06646db95c3e990 /java/jakarta-commons-dbcp
parent1cbf7547079ca2a0473969b13de595666007af06 (diff)
downloadports-3fddb0b9fd397e0320ca5a00bd9956d500e5c67b.tar.gz
ports-3fddb0b9fd397e0320ca5a00bd9956d500e5c67b.zip
Notes
Diffstat (limited to 'java/jakarta-commons-dbcp')
-rw-r--r--java/jakarta-commons-dbcp/Makefile55
-rw-r--r--java/jakarta-commons-dbcp/distinfo1
-rw-r--r--java/jakarta-commons-dbcp/files/patch-aa19
-rw-r--r--java/jakarta-commons-dbcp/pkg-descr25
-rw-r--r--java/jakarta-commons-dbcp/pkg-plist48
5 files changed, 148 insertions, 0 deletions
diff --git a/java/jakarta-commons-dbcp/Makefile b/java/jakarta-commons-dbcp/Makefile
new file mode 100644
index 000000000000..6f08557c006c
--- /dev/null
+++ b/java/jakarta-commons-dbcp/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: Jakarta Commons DBCP
+# Date created: October 6, 2003
+# Whom: Anton Yudin <toha@toha.org.ua>
+#
+# $FreeBSD$
+#
+
+PORTNAME= commons-dbcp
+PORTVERSION= 1.0
+CATEGORIES= java
+MASTER_SITES= http://www.apache.org/dist/jakarta/commons/dbcp/source/
+PKGNAMEPREFIX= jakarta-
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+DIST_SUBDIR= jakarta
+
+MAINTAINER= toha@toha.org.ua
+COMMENT= The DBCP Component
+
+BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant \
+ ${LOCALBASE}/share/java/classes/commons-pool.jar:${PORTSDIR}/java/jakarta-commons-pool \
+
+USE_JAVA= 1.2+
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
+ANT?= ${LOCALBASE}/bin/ant
+.if defined(NOPORTDOCS)
+ANT_TARGET= dist-jar
+.else
+ANT_TARGET= dist-jar doc
+.endif
+JAVASHAREDIR= ${PREFIX}/share/java
+JARDIR= ${JAVASHAREDIR}/classes
+JARFILE= ${PORTNAME}.jar
+DESTJARFILE= ${PORTNAME}.jar
+
+post-patch:
+ @${CP} ${WRKSRC}/LICENSE.txt ${WRKSRC}/../LICENSE
+
+do-build:
+ @cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
+
+do-install:
+ @${ECHO} -n ">> Installing JAR as ${JARDIR}/${DESTJARFILE}..."
+ @${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/${DESTJARFILE}
+ @${ECHO} " [ DONE ]"
+
+.if !defined(NOPORTDOCS)
+ @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR}
+ @${ECHO} " [ DONE ]"
+.endif
+
+.include <bsd.port.mk>
diff --git a/java/jakarta-commons-dbcp/distinfo b/java/jakarta-commons-dbcp/distinfo
new file mode 100644
index 000000000000..5652dd3278d5
--- /dev/null
+++ b/java/jakarta-commons-dbcp/distinfo
@@ -0,0 +1 @@
+MD5 (jakarta/commons-dbcp-1.0-src.tar.gz) = 85305821547f060fb6090f022c33e5f9
diff --git a/java/jakarta-commons-dbcp/files/patch-aa b/java/jakarta-commons-dbcp/files/patch-aa
new file mode 100644
index 000000000000..85f8c2eb2e93
--- /dev/null
+++ b/java/jakarta-commons-dbcp/files/patch-aa
@@ -0,0 +1,19 @@
+*** build.xml.orig Sat Oct 4 14:56:13 2003
+--- build.xml Sat Oct 4 14:56:15 2003
+***************
+*** 282,288 ****
+ <patternset refid="patternset-non-test-classes"/>
+ </fileset>
+ </copy>
+! <jar jarfile="${dest.jardir.jar}" manifest="${dest.conf}/MANIFEST.MF">
+ <fileset dir="${workdir}"/>
+ </jar>
+ <delete dir="${workdir}"/>
+--- 282,288 ----
+ <patternset refid="patternset-non-test-classes"/>
+ </fileset>
+ </copy>
+! <jar jarfile="${dest.jardir.jar}" manifest="${source.src.conf}/MANIFEST.MF">
+ <fileset dir="${workdir}"/>
+ </jar>
+ <delete dir="${workdir}"/>
diff --git a/java/jakarta-commons-dbcp/pkg-descr b/java/jakarta-commons-dbcp/pkg-descr
new file mode 100644
index 000000000000..c9411e5846c0
--- /dev/null
+++ b/java/jakarta-commons-dbcp/pkg-descr
@@ -0,0 +1,25 @@
+The DBCP Component
+
+ Many Jakarta projects support interaction with a relational database.
+ Creating a new connection for each user can be time consuming (often
+ requiring multiple seconds of clock time), in order to perform a
+ database transaction that might take milliseconds. Opening a
+ connection per user can be unfeasible in a publicly-hosted Internet
+ application where the number of simultaneous users can be very large.
+ Accordingly, developers often wish to share a "pool" of open
+ connections between all of the application's current users. The number
+ of users actually performing a request at any given time is usually a
+ very small percentage of the total number of active users, and during
+ request processing is the only time that a database connection is
+ required. The application itself logs into the DBMS, and handles any
+ user account issues internally.
+
+ There are several Database Connection Pools already available, both
+ within Jakarta products and elsewhere. This Commons package provides
+ an opportunity to coordinate the efforts required to create and
+ maintain an efficient, feature-rich package under the ASF license.
+
+ The commons-dbcp package relies on code in the commons-pool package to
+ provide the underlying object pool mechanisms that it utilizes.
+
+WWW: http://jakarta.apache.org/commons/dbcp
diff --git a/java/jakarta-commons-dbcp/pkg-plist b/java/jakarta-commons-dbcp/pkg-plist
new file mode 100644
index 000000000000..d471b9bd72de
--- /dev/null
+++ b/java/jakarta-commons-dbcp/pkg-plist
@@ -0,0 +1,48 @@
+share/doc/commons-dbcp/allclasses-frame.html
+share/doc/commons-dbcp/allclasses-noframe.html
+share/doc/commons-dbcp/constant-values.html
+share/doc/commons-dbcp/index-all.html
+share/doc/commons-dbcp/index.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/AbandonedConfig.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/AbandonedObjectPool.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/AbandonedTrace.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/BasicDataSource.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/BasicDataSourceFactory.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/ConnectionFactory.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DataSourceConnectionFactory.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DbcpException.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DelegatingCallableStatement.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DelegatingConnection.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DelegatingPreparedStatement.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DelegatingResultSet.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DelegatingStatement.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DriverConnectionFactory.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/DriverManagerConnectionFactory.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/PoolableConnection.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/PoolableConnectionFactory.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/PoolablePreparedStatement.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/PoolingConnection.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/PoolingDataSource.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/PoolingDriver.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/cpdsadapter/package-frame.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/cpdsadapter/package-summary.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/package-frame.html
+share/doc/commons-dbcp/org/apache/commons/dbcp/package-summary.html
+share/doc/commons-dbcp/org/apache/commons/jocl/ConstructorUtil.html
+share/doc/commons-dbcp/org/apache/commons/jocl/JOCLContentHandler.html
+share/doc/commons-dbcp/org/apache/commons/jocl/package-frame.html
+share/doc/commons-dbcp/org/apache/commons/jocl/package-summary.html
+share/doc/commons-dbcp/overview-frame.html
+share/doc/commons-dbcp/overview-summary.html
+share/doc/commons-dbcp/package-list
+share/doc/commons-dbcp/packages.html
+share/doc/commons-dbcp/serialized-form.html
+share/doc/commons-dbcp/stylesheet.css
+@dirrm share/doc/commons-dbcp/org/apache/commons/dbcp/cpdsadapter
+@dirrm share/doc/commons-dbcp/org/apache/commons/dbcp
+@dirrm share/doc/commons-dbcp/org/apache/commons/jocl
+@dirrm share/doc/commons-dbcp/org/apache/commons
+@dirrm share/doc/commons-dbcp/org/apache
+@dirrm share/doc/commons-dbcp/org
+@dirrm share/doc/commons-dbcp