summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/apache-log4j2/Makefile38
-rw-r--r--devel/apache-log4j2/distinfo3
-rw-r--r--devel/apache-log4j2/pkg-descr12
-rw-r--r--devel/apache-log4j2/pkg-plist24
5 files changed, 78 insertions, 0 deletions
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