git: ec5018759f6a - main - devel/apache-log4j2: repocopy from devel/log4j

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 01 May 2022 20:11:40 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ec5018759f6a0b6d8c6f08bb5203ae6604e67443

commit ec5018759f6a0b6d8c6f08bb5203ae6604e67443
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-04-30 14:00:53 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-05-01 20:09:06 +0000

    devel/apache-log4j2: repocopy from devel/log4j
---
 devel/Makefile                |  1 +
 devel/apache-log4j2/Makefile  | 38 ++++++++++++++++++++++++++++++++++++++
 devel/apache-log4j2/distinfo  |  3 +++
 devel/apache-log4j2/pkg-descr | 12 ++++++++++++
 devel/apache-log4j2/pkg-plist | 24 ++++++++++++++++++++++++
 5 files changed, 78 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 1d6bf840848a..e2f493247f9c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -159,6 +159,7 @@
     SUBDIR += apache-commons-daemon
     SUBDIR += apache-commons-io
     SUBDIR += apache-commons-jxpath
+    SUBDIR += apache-log4j2
     SUBDIR += apache-rat
     SUBDIR += aphpbreakdown
     SUBDIR += aphpunit
diff --git a/devel/apache-log4j2/Makefile b/devel/apache-log4j2/Makefile
new file mode 100644
index 000000000000..f61eed855110
--- /dev/null
+++ b/devel/apache-log4j2/Makefile
@@ -0,0 +1,38 @@
+# Created by: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
+
+PORTNAME=	log4j2
+PORTVERSION=	2.17.2
+CATEGORIES=	devel java
+MASTER_SITES=	APACHE/logging/log4j/${PORTVERSION}
+PKGNAMEPREFIX=	apache-
+DISTNAME=	apache-log4j-${PORTVERSION}-bin
+
+MAINTAINER=	thierry@FreeBSD.org
+COMMENT=	Fast and flexible logging library for Java
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		cpe
+
+USE_JAVA=	yes
+NO_BUILD=	yes
+NO_ARCH=	yes
+CPE_VENDOR=	apache
+
+PORTDOCS=	NOTICE.txt RELEASE-NOTES.md
+
+OPTIONS_DEFINE=	DOCS
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
+	cd ${WRKSRC} && \
+	for j in `${FIND} . -name "*${PORTVERSION}.jar"`; do \
+		${INSTALL_DATA} $$j ${STAGEDIR}${JAVAJARDIR}/`echo $$j | ${SED} -e 's|-${PORTVERSION}||'`; \
+	done
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/apache-log4j2/distinfo b/devel/apache-log4j2/distinfo
new file mode 100644
index 000000000000..a2df2390ea67
--- /dev/null
+++ b/devel/apache-log4j2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1651327026
+SHA256 (apache-log4j-2.17.2-bin.tar.gz) = c8f7cfe4ac9825043432b310709dee2661398573de28c83e603e80e0e86df9bb
+SIZE (apache-log4j-2.17.2-bin.tar.gz) = 15406684
diff --git a/devel/apache-log4j2/pkg-descr b/devel/apache-log4j2/pkg-descr
new file mode 100644
index 000000000000..2d85aff06648
--- /dev/null
+++ b/devel/apache-log4j2/pkg-descr
@@ -0,0 +1,12 @@
+pache Log4j 2 is an upgrade to Log4j that provides significant improvements over
+its predecessor, Log4j 1.x, and provides many of the improvements available in
+Logback while fixing some inherent problems in Logback's architecture.
+
+Log4J is an open source library based on the work of many authors.
+It allows the developer to control which log statements are output
+with arbitrary granularity. It is fully configurable at runtime
+using external configuration files. Best of all, Log4J has a gentle
+learning curve. Beware: judging from user feedback, it is also quite
+addictive.
+
+WWW: http://logging.apache.org/log4j/
diff --git a/devel/apache-log4j2/pkg-plist b/devel/apache-log4j2/pkg-plist
new file mode 100644
index 000000000000..058cd55378a0
--- /dev/null
+++ b/devel/apache-log4j2/pkg-plist
@@ -0,0 +1,24 @@
+%%JAVAJARDIR%%/log4j-1.2-api.jar
+%%JAVAJARDIR%%/log4j-api.jar
+%%JAVAJARDIR%%/log4j-appserver.jar
+%%JAVAJARDIR%%/log4j-cassandra.jar
+%%JAVAJARDIR%%/log4j-core.jar
+%%JAVAJARDIR%%/log4j-couchdb.jar
+%%JAVAJARDIR%%/log4j-docker.jar
+%%JAVAJARDIR%%/log4j-flume-ng.jar
+%%JAVAJARDIR%%/log4j-iostreams.jar
+%%JAVAJARDIR%%/log4j-jcl.jar
+%%JAVAJARDIR%%/log4j-jdbc-dbcp2.jar
+%%JAVAJARDIR%%/log4j-jmx-gui.jar
+%%JAVAJARDIR%%/log4j-jpa.jar
+%%JAVAJARDIR%%/log4j-jul.jar
+%%JAVAJARDIR%%/log4j-liquibase.jar
+%%JAVAJARDIR%%/log4j-mongodb3.jar
+%%JAVAJARDIR%%/log4j-mongodb4.jar
+%%JAVAJARDIR%%/log4j-slf4j-impl.jar
+%%JAVAJARDIR%%/log4j-slf4j18-impl.jar
+%%JAVAJARDIR%%/log4j-spring-boot.jar
+%%JAVAJARDIR%%/log4j-spring-cloud-config-client.jar
+%%JAVAJARDIR%%/log4j-taglib.jar
+%%JAVAJARDIR%%/log4j-to-slf4j.jar
+%%JAVAJARDIR%%/log4j-web.jar