From 4dd8de9ec257b819af1fff421abd4551a99efb9f Mon Sep 17 00:00:00 2001 From: Rene Ladan Date: Tue, 17 Jun 2025 11:17:08 -0400 Subject: [PATCH] devel/artifactory: Remove expired port 2025-05-31 devel/artifactory: Outdated with known vulnerabilities and marked as forbidden in 2023 Event: Kitchener-Waterloo Hackathon 202506 --- MOVED | 1 + devel/Makefile | 1 - devel/artifactory/Makefile | 79 ----------------- devel/artifactory/distinfo | 3 - devel/artifactory/files/artifactory.in | 78 ----------------- devel/artifactory/files/pkg-message.in | 43 --------- devel/artifactory/pkg-descr | 4 - devel/artifactory/pkg-plist | 116 ------------------------- 8 files changed, 1 insertion(+), 324 deletions(-) delete mode 100644 devel/artifactory/Makefile delete mode 100644 devel/artifactory/distinfo delete mode 100644 devel/artifactory/files/artifactory.in delete mode 100644 devel/artifactory/files/pkg-message.in delete mode 100644 devel/artifactory/pkg-descr delete mode 100644 devel/artifactory/pkg-plist diff --git a/MOVED b/MOVED index 5ba729ce7075..8754bd905bb2 100644 --- a/MOVED +++ b/MOVED @@ -4519,3 +4519,4 @@ german/bugzilla44||2025-06-16|Removed, localized version of devel/bugzilla44 japanese/bugzilla44||2025-06-16|Removed, localized version of devel/bugzilla44 russian/bugzilla44||2025-06-16|Removed, localized version of devel/bugzilla44 sysutils/plasma6-drkonqi||2025-06-17|Removed, requires Systemd +devel/artifactory||2025-06-17|Has expired: Outdated with known vulnerabilities and marked as forbidden in 2023 diff --git a/devel/Makefile b/devel/Makefile index cd39e8390b49..56d4ca5732d5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -241,7 +241,6 @@ SUBDIR += aros-sdk SUBDIR += arpc SUBDIR += art - SUBDIR += artifactory SUBDIR += asfml SUBDIR += asl SUBDIR += asmjit diff --git a/devel/artifactory/Makefile b/devel/artifactory/Makefile deleted file mode 100644 index 5b41d147b354..000000000000 --- a/devel/artifactory/Makefile +++ /dev/null @@ -1,79 +0,0 @@ -PORTNAME= artifactory -DISTVERSION= 5.8.3 -PORTREVISION= 1 -CATEGORIES= devel java -MASTER_SITES= https://bintray.com/artifact/download/jfrog/artifactory/ -DISTNAME= jfrog-${PORTNAME}-oss-${PORTVERSION} - -MAINTAINER= dharrigan@gmail.com -COMMENT= Universal Artifact Repository Manager -WWW= https://www.jfrog.com/artifactory - -LICENSE= GPLv3 APACHE20 -LICENSE_COMB= multi -LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING.AFFERO -LICENSE_FILE_APACHE20= ${WRKSRC}/tomcat/LICENSE - -FORBIDDEN= Ships a very vulnerable Tomcat 8.5.23 -DEPRECATED= Outdated with known vulnerabilities and marked as forbidden in 2023 -EXPIRATION_DATE=2025-05-31 - -RUN_DEPENDS= bash:shells/bash - -WRKSRC= ${WRKDIR}/${PORTNAME}-oss-${PORTVERSION} - -USES= cpe java shebangfix zip -CPE_VENDOR= jfrog -SHEBANG_FILES= bin/artifactory.sh -JAVA_VENDOR= openjdk -NO_BUILD= yes -NO_ARCH= yes -USE_RC_SUBR= ${PORTNAME} - -APP_NAME= ${PORTNAME} -APP_HOME?= ${PORTNAME} -PID_FILE?= /var/run/${PORTNAME}.pid -VARDIR= /var/${PORTNAME} - -USERS= artifactory -GROUPS= artifactory - -SUB_LIST= APP_HOME=${PREFIX}/${APP_HOME} \ - APP_NAME=${APP_NAME} \ - PID_FILE=${PID_FILE} \ - VARDIR=${VARDIR} - -SUB_FILES= pkg-message \ - -PLIST_SUB= APP_HOME=${APP_HOME} \ - VARDIR=${VARDIR} - -do-install: -.for f in artifactory-service.exe artifactory.bat installService.bat \ - uninstallService.bat - ${RM} ${WRKSRC}/bin/${f} -.endfor - ${RM} ${WRKSRC}/tomcat/bin/*.bat - - ${MKDIR} ${STAGEDIR}${PREFIX}/${APP_HOME} - (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${APP_HOME}) - - ${MKDIR} ${STAGEDIR}/${VARDIR}/tomcat/logs/catalina - ${LN} -sf ${VARDIR}/tomcat/logs/catalina ${STAGEDIR}${PREFIX}/${APP_HOME}/tomcat/logs - -.for d in etc logs - ${MV} ${STAGEDIR}${PREFIX}/${APP_HOME}/${d} ${STAGEDIR}/${VARDIR} - ${LN} -sf ${VARDIR}/${d} ${STAGEDIR}${PREFIX}/${APP_HOME}/${d} -.endfor - -.for d in temp webapps work - ${MV} ${STAGEDIR}${PREFIX}/${APP_HOME}/tomcat/${d} ${STAGEDIR}/${VARDIR}/tomcat - ${LN} -sf ${VARDIR}/tomcat/${d} ${STAGEDIR}${PREFIX}/${APP_HOME}/tomcat/${d} -.endfor - -.for d in data backup support access - ${MKDIR} ${STAGEDIR}/${VARDIR}/${d} - ${LN} -sf ${VARDIR}/${d} ${STAGEDIR}${PREFIX}/${APP_HOME}/${d} -.endfor - -.include diff --git a/devel/artifactory/distinfo b/devel/artifactory/distinfo deleted file mode 100644 index b0e3f83c819d..000000000000 --- a/devel/artifactory/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1516806922 -SHA256 (jfrog-artifactory-oss-5.8.3.zip) = c84e19779b3a7e62b86fdd3a71ba6b975838ac4f4531379d284290cc28637461 -SIZE (jfrog-artifactory-oss-5.8.3.zip) = 92381086 diff --git a/devel/artifactory/files/artifactory.in b/devel/artifactory/files/artifactory.in deleted file mode 100644 index 8aea7c5d81e5..000000000000 --- a/devel/artifactory/files/artifactory.in +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh -# -# artifactory startup script. -# -# Make sure you have the artifactory user and artifactory home or set them below accordingly! - -# PROVIDE: artifactory -# REQUIRE: NETWORKING SERVERS -# KEYWORD: shutdown - -# Add the following lines to /etc/rc.conf to enable artifactory: -# artifactory_enable (bool): Set to "YES" to enable artifactory -# artifactory_args (str): Optional arguments to Artifactory -# artifactory_log_stdout (str) Artifactory log output stdout, filename. -# artifactory_log_stderr (str) Artifactory log output stderr, filename. -# - -ARTIFACTORY_HOME=%%APP_HOME%% - -. /etc/rc.subr - -name="artifactory" -rcvar=artifactory_enable - -load_rc_config $name - -artifactory_enable="${artifactory_enable:-"NO"}" -artifactory_log_stdout="${artifactory_log_stdout:-"${artifactory_logdir}/stdout.log"}" -artifactory_log_stderr="${artifactory_log_stderr:-"${artifactory_logdir}/stderr.log"}" -artifactory_args="${artifactory_args:-""}" -artifactory_sleep="${artifactory_sleep:-"5"}" -artifactory_kill9="${artifactory_kill9:-""}" -artifactory_additional_killall="${artifactory_additional_killall:-""}" -artifactory_user="artifactory" -artifactory_logdir=$ARTIFACTORY_HOME/logs - -start_cmd="artifactory_start" -stop_cmd="artifactory_stop" -pidfile=%%PID_FILE%% - -artifactory_start () -{ - if [ ! -d "${artifactory_logdir}" ] - then - install -d -o ${artifactory_user} ${artifactory_logdir} - fi - - echo "Starting artifactory." - daemon -u ${artifactory_user} ${ARTIFACTORY_HOME}/bin/artifactory.sh ${artifactory_args} >> ${artifactory_log_stdout} 2>> ${artifactory_log_stderr} >> ${artifactory_logdir}/boot.log 2>> ${artifactory_logdir}/boot.log - - sleep ${artifactory_sleep} # let daemon(8) and sh(1) finish before executing pgrep(1) - pgrep -U ${artifactory_user} > ${pidfile} - chown ${artifactory_user} $pidfile -} - -artifactory_stop () -{ - # Subvert the check_pid_file procname check. - if [ -f ${pidfile} ] - then - kill `cat ${pidfile}` - # Only if we aware that our setup can hangs, and only after trying simple kill, we can kill it hard way. - if [ ! -z "${artifactory_kill9}" ] - then - sleep ${artifactory_sleep} - kill -9 `cat ${pidfile}` - fi - # In some setups, Artifactory can spawn some child processess, which could prevent it from stopping, and freeing net ports. - # Let's blindly kill them all, since we are really know what we are doing. - if [ ! -z "${artifactory_additional_killall}" ] - then - sleep ${artifactory_sleep} - killall ${artifactory_additional_killall} - fi - fi -} - -run_rc_command "$1" diff --git a/devel/artifactory/files/pkg-message.in b/devel/artifactory/files/pkg-message.in deleted file mode 100644 index e8e08adac583..000000000000 --- a/devel/artifactory/files/pkg-message.in +++ /dev/null @@ -1,43 +0,0 @@ -[ -{ type: install - message: <> /etc/rc.conf - -Now, start Artifactory: - - # service %%APP_NAME%% start - -Once Artifactory is started, point your web browser to: - -http://localhost:8081/ - -Artifactory configuration files are located in %%APP_HOME%%/etc - -Please don't forget to review and edit the files in the -%%APP_HOME%%/etc directory to suit your needs. - -Full documentation may be found at: - -https://www.jfrog.com/confluence/display/RTF/Welcome+to+Artifactory -EOM -} -{ type: remove - message: <