summaryrefslogtreecommitdiff
path: root/java/apache-commons-dbcp
diff options
context:
space:
mode:
Diffstat (limited to 'java/apache-commons-dbcp')
-rw-r--r--java/apache-commons-dbcp/Makefile47
-rw-r--r--java/apache-commons-dbcp/distinfo3
-rw-r--r--java/apache-commons-dbcp/pkg-descr23
3 files changed, 73 insertions, 0 deletions
diff --git a/java/apache-commons-dbcp/Makefile b/java/apache-commons-dbcp/Makefile
new file mode 100644
index 000000000000..0675b5a1a0d6
--- /dev/null
+++ b/java/apache-commons-dbcp/Makefile
@@ -0,0 +1,47 @@
+# Created by: Anton Yudin <toha@toha.org.ua>
+# $FreeBSD$
+
+PORTNAME= commons-dbcp
+PORTVERSION= 2.7.0
+CATEGORIES= java databases
+MASTER_SITES= APACHE_COMMONS_BINARIES
+PKGNAMEPREFIX= apache-
+DISTNAME= ${PORTNAME}2-${PORTVERSION}-bin
+
+MAINTAINER= ale@FreeBSD.org
+COMMENT= Apache Commons Database Connection Pool
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= ${JAVALIBDIR}/commons-pool.jar:java/apache-commons-pool
+
+OPTIONS_DEFINE= DOCS
+
+USE_JAVA= yes
+JAVA_VERSION= 8
+NO_BUILD= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}2-${PORTVERSION}
+JARFILE= ${PORTNAME}2-${PORTVERSION}.jar
+DOCFILES= LICENSE.txt \
+ NOTICE.txt \
+ README.txt \
+ RELEASE-NOTES.txt
+
+PORTDOCS= *
+PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar \
+ ${JAVAJARDIR}/${JARFILE}
+
+.include <bsd.port.options.mk>
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
+ ${LN} -sf ${JARFILE} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+.if ${PORT_OPTIONS:MDOCS}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR}
+.for FILE in ${DOCFILES}
+ ${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/java/apache-commons-dbcp/distinfo b/java/apache-commons-dbcp/distinfo
new file mode 100644
index 000000000000..66f4f22db77d
--- /dev/null
+++ b/java/apache-commons-dbcp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1566283829
+SHA256 (commons-dbcp2-2.7.0-bin.tar.gz) = 35a4b7c41382a643dcfe07592f93cf58b537abdddd0778c229b7e77d0bb5053f
+SIZE (commons-dbcp2-2.7.0-bin.tar.gz) = 1869315
diff --git a/java/apache-commons-dbcp/pkg-descr b/java/apache-commons-dbcp/pkg-descr
new file mode 100644
index 000000000000..d469dc623d96
--- /dev/null
+++ b/java/apache-commons-dbcp/pkg-descr
@@ -0,0 +1,23 @@
+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: https://commons.apache.org/dbcp/