diff options
author | znerd <znerd@FreeBSD.org> | 2003-10-06 16:28:48 +0800 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2003-10-06 16:28:48 +0800 |
commit | 15143bf1abd0f3c2233415e8bd570b9224c84799 (patch) | |
tree | 80b86af39d839a4459bf5f7e0f71430a80f1b11c /java | |
parent | d34499f4ed0e6ae125527c3aabb3192b6cbe6a57 (diff) | |
download | freebsd-ports-gnome-15143bf1abd0f3c2233415e8bd570b9224c84799.tar.gz freebsd-ports-gnome-15143bf1abd0f3c2233415e8bd570b9224c84799.tar.zst freebsd-ports-gnome-15143bf1abd0f3c2233415e8bd570b9224c84799.zip |
New port: Jakarta Commons DBCP.
PR: 57573
Submitted by: Anton Yudin <toha@toha.org.ua>
Diffstat (limited to 'java')
-rw-r--r-- | java/Makefile | 1 | ||||
-rw-r--r-- | java/jakarta-commons-dbcp/Makefile | 55 | ||||
-rw-r--r-- | java/jakarta-commons-dbcp/distinfo | 1 | ||||
-rw-r--r-- | java/jakarta-commons-dbcp/files/patch-aa | 19 | ||||
-rw-r--r-- | java/jakarta-commons-dbcp/pkg-descr | 25 | ||||
-rw-r--r-- | java/jakarta-commons-dbcp/pkg-plist | 48 |
6 files changed, 149 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile index 3f7448fe6265..6a270a1855bc 100644 --- a/java/Makefile +++ b/java/Makefile @@ -29,6 +29,7 @@ SUBDIR += jakarta-commons-beanutils SUBDIR += jakarta-commons-cli SUBDIR += jakarta-commons-collections + SUBDIR += jakarta-commons-dbcp SUBDIR += jakarta-commons-lang SUBDIR += jakarta-commons-logging SUBDIR += jakarta-commons-pool 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 |