git: dc0edf8dad7e - main - security/i2p: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sun, 04 May 2025 11:38:37 UTC
The branch main has been updated by rene:

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

commit dc0edf8dad7e31cd6ccbf371804c2c40e33c37ba
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-05-04 11:38:32 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-05-04 11:38:32 +0000

    security/i2p: Remove expired port
    
    2025-04-30 security/i2p: Outdated and unsupported upstream
---
 MOVED                                              |  1 +
 security/Makefile                                  |  1 -
 security/i2p/Makefile                              | 59 ---------------
 security/i2p/distinfo                              |  3 -
 security/i2p/files/i2p.in                          | 86 ----------------------
 .../files/patch-installer_resources_postinstall.sh | 11 ---
 security/i2p/files/wrapper.sh.in                   | 70 ------------------
 security/i2p/pkg-descr                             | 14 ----
 security/i2p/pkg-message                           | 24 ------
 9 files changed, 1 insertion(+), 268 deletions(-)

diff --git a/MOVED b/MOVED
index 65ef5bd718d0..a0ece9c2c590 100644
--- a/MOVED
+++ b/MOVED
@@ -4375,3 +4375,4 @@ textproc/resume||2025-05-04|Has expired: Obsolete XML and XSL based system that
 textproc/add-css-links||2025-05-04|Has expired: Obsolete and unmaintained in tree for years
 textproc/print-n-times||2025-05-04|Has expired: Obsolete and unmaintained in tree for years
 textproc/cdif||2025-05-04|Has expired: Deprecated upstream, repo archived on Jun 25, 2018
+security/i2p||2025-05-04|Has expired: Outdated and unsupported upstream
diff --git a/security/Makefile b/security/Makefile
index dc3322defa4e..68ae492adc97 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -229,7 +229,6 @@
     SUBDIR += hs-cryptol
     SUBDIR += hydra
     SUBDIR += hyperhotp
-    SUBDIR += i2p
     SUBDIR += i2pd
     SUBDIR += iaikpkcs11wrapper
     SUBDIR += iddawc
diff --git a/security/i2p/Makefile b/security/i2p/Makefile
deleted file mode 100644
index 900c0eb45d04..000000000000
--- a/security/i2p/Makefile
+++ /dev/null
@@ -1,59 +0,0 @@
-PORTNAME=	i2p
-DISTVERSION=	0.9.48
-CATEGORIES=	security java net-p2p
-MASTER_SITES=	http://download.i2p2.de/releases/${PORTVERSION}/
-DISTNAME=	i2psource_${PORTVERSION}
-
-MAINTAINER=	m.muenz@gmail.com
-COMMENT=	Anonymizing network
-WWW=		https://geti2p.net/
-
-LICENSE=	EULA
-LICENSE_NAME=	End User License Agreement
-LICENSE_FILE=	${WRKSRC}/LICENSE.txt
-LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-LICENSE_DISTFILES=	i2psource_${PORTVERSION}${EXTRACT_SUFX}
-
-BROKEN=		Unfetchable
-DEPRECATED=	Outdated and unsupported upstream
-EXPIRATION_DATE=2025-04-30
-
-ONLY_FOR_ARCHS=	amd64 i386
-ONLY_FOR_ARCHS_REASON=	i2p libwrapper.so library binary only available for i386 and amd64
-
-BUILD_DEPENDS=	${LOCALBASE}/lib/libgmp.a:math/gmp
-LIB_DEPENDS=	libiconv.so:converters/libiconv
-
-USES=		cpe gettext java:ant tar:bz2
-CPE_VENDOR=	geti2p
-
-WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
-
-USE_RC_SUBR=	i2p
-NO_ARCH=	yes
-USE_LOCALE=	en_US.UTF-8
-ALL_TARGET=	updater tarball
-
-SUB_FILES=	wrapper.sh
-
-PORTDATA=	*
-PLIST_FILES=	sbin/i2prouter
-
-post-patch:
-# postinstall.sh SHOULD only do post installation house keeping
-	@${REINPLACE_CMD} -E \
-		-e 's|./i2prouter[[:space:]]+start||' \
-		${WRKSRC}/installer/resources/postinstall.sh
-	@${REINPLACE_CMD} -E \
-		-e 's|%INSTALL_PATH|$${HOME}/i2p|' \
-		-e 's|%USER_HOME|$${HOME}|' \
-		${WRKSRC}/installer/resources/i2prouter \
-		${WRKSRC}/installer/resources/runplain.sh
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/i2p.tar.bz2 ${STAGEDIR}${DATADIR}/
-	${INSTALL_DATA} ${WRKSRC}/i2pupdate.zip ${STAGEDIR}${DATADIR}/
-	${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/sbin/i2prouter
-
-.include <bsd.port.mk>
diff --git a/security/i2p/distinfo b/security/i2p/distinfo
deleted file mode 100644
index 79834fc4cc48..000000000000
--- a/security/i2p/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1607097374
-SHA256 (i2psource_0.9.48.tar.bz2) = e8c55b17b2066d8eab82bc407128f1f0366530c5429a1413ea0cbf40f922d532
-SIZE (i2psource_0.9.48.tar.bz2) = 33029295
diff --git a/security/i2p/files/i2p.in b/security/i2p/files/i2p.in
deleted file mode 100644
index 43dadf945867..000000000000
--- a/security/i2p/files/i2p.in
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-
-# Under a BSDL license. Copyright 2005. Mario S F Ferreira <lioux@FreeBSD.org>
-
-# PROVIDE: i2p
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable i2p:
-#
-# i2p_enable="YES"
-# i2p_user
-
-. /etc/rc.subr
-
-name="i2p"
-rcvar=i2p_enable
-command="%%PREFIX%%/sbin/i2prouter"
-extra_commands="install uninstall update"
-
-i2p_check_vars()
-{
-  if [ -z "${i2p_user}" ]; then
-    i2p_user=$(whoami)
-  fi
-
-  if [ "x${i2p_user}" = "xroot" ]; then
-    err 1 "You have to set i2p_user to a non-root user for security reasons"
-  fi
-}
-
-start_cmd="start_cmd"
-stop_cmd="stop_cmd"
-status_cmd="status_cmd"
-restart_cmd="restart_cmd"
-install_cmd="install_cmd"
-uninstall_cmd="uninstall_cmd"
-update_cmd="update_cmd"
-
-generic_cmd()
-{
-  i2p_check_vars
-  su -l ${i2p_user} -c "${command} ${1}"
-}
-
-start_cmd()
-{
-  generic_cmd start
-}
-
-stop_cmd()
-{
-  generic_cmd stop
-}
-
-status_cmd()
-{
-  generic_cmd status
-}
-
-restart_cmd()
-{
-  generic_cmd restart
-}
-
-install_cmd()
-{
-  generic_cmd install
-}
-
-uninstall_cmd()
-{
-  generic_cmd uninstall
-}
-
-update_cmd()
-{
-  generic_cmd update
-}
-
-load_rc_config "${name}"
-: ${i2p_enable="NO"}
-: ${i2p_user=""}
-
-run_rc_command "$1"
diff --git a/security/i2p/files/patch-installer_resources_postinstall.sh b/security/i2p/files/patch-installer_resources_postinstall.sh
deleted file mode 100644
index 32697f4221df..000000000000
--- a/security/i2p/files/patch-installer_resources_postinstall.sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- installer/resources/postinstall.sh.orig	2020-02-24 17:37:40 UTC
-+++ installer/resources/postinstall.sh
-@@ -57,7 +57,7 @@ case $HOST_OS in
-         else
-             wrapperpath="./lib/wrapper/linux64"
-             # the 32bit libwrapper.so will be needed if a 32 bit jvm is used
--            cp ./lib/wrapper/linux/libwrapper.so ./lib/libwrapper-linux-x86-32.so
-+            cp ./lib/wrapper/freebsd/libwrapper.so ./lib/libwrapper-freebsd-x86-32.so
-         fi
-         cp ${wrapperpath}/libwrapper.so ./lib/
-         ;;
diff --git a/security/i2p/files/wrapper.sh.in b/security/i2p/files/wrapper.sh.in
deleted file mode 100644
index 314ac513cd20..000000000000
--- a/security/i2p/files/wrapper.sh.in
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-#
-# Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org>
-
-DATADIR="%%DATADIR%%"
-#
-I2P_HOME="${HOME}/i2p"
-I2P_RC_SCRIPT=i2prouter
-I2P_POSTINSTALL_SCRIPT=postinstall.sh
-#
-I2P_INSTALL_TARBALL=i2p.tar.bz2
-I2P_UPDATE_ZIP=i2pupdate.zip
-
-if [ -z "${HOME}" -o ! -d "${HOME}" ]; then
-	echo 'ERROR: Please, set HOME environment variable to a valid value!'
-	echo 'ERROR: You may LOSE data if the variable is pointed at an'
-	echo 'ERROR: incorrect location!'
-	exit 1
-fi
-
-case "$1" in
-	restart|start|status|stop)
-		echo "i2p ${1}"
-		if [ -f "${I2P_HOME}/${I2P_RC_SCRIPT}" ]; then
-			case "$1" in
-				restart|start)
-					echo 'To access i2p:'
-					echo 'Point your browser at http://localhost:7657/ to access configuration'
-					echo 'Point your browser proxy at http://localhost:4444/ to access i2p network'
-				;;
-			esac
-			exec sh "${I2P_HOME}/${I2P_RC_SCRIPT}" ${1}
-		else
-			echo 'ERROR: i2p is not installed'
-			echo 'ERROR: Please install i2p first'
-			exit 2
-		fi
-		;;
-	install)
-		echo "i2p ${1}"
-		if [ ! -d "${I2P_HOME}" ]; then
-			rm -Rf "${I2P_HOME}"
-			mkdir -p "${I2P_HOME}"
-		fi
-		cd "${HOME}" && \
-			tar -xvjf "${DATADIR}/${I2P_INSTALL_TARBALL}" && \
-			cd "${I2P_HOME}" &&  \
-				exec sh "${I2P_HOME}/${I2P_POSTINSTALL_SCRIPT}"
-		;;
-	uninstall)
-		echo "i2p ${1}"
-		exec rm -Rf "${I2P_HOME}"
-		;;
-	update)
-		echo "i2p ${1}"
-		if [ ! -d "${I2P_HOME}" ]; then
-			echo 'ERROR: i2p is not installed'
-			echo 'ERROR: Please install i2p before trying to update it'
-			exit 3
-		fi
-		cd "${I2P_HOME}" &&  \
-			exec unzip -o "${DATADIR}/${I2P_UPDATE_ZIP}"
-		;;
-	*)
-		echo ""
-		echo "Usage: `basename $0` { start | stop | status | restart | install | uninstall | update }"
-		echo ""
-		exit 64
-		;;
-esac
diff --git a/security/i2p/pkg-descr b/security/i2p/pkg-descr
deleted file mode 100644
index 679beb89e343..000000000000
--- a/security/i2p/pkg-descr
+++ /dev/null
@@ -1,14 +0,0 @@
-[ excerpt from developer's web site ]
-
-I2P is an anonymous overlay network - a network within a network.
-It is intended to protect communication from dragnet surveillance
-and monitoring by third parties such as ISPs.
-
-I2P is used by many people who care about their privacy: activists,
-oppressed people, journalists and whistleblowers, as well as the
-average person.
-
-No network can be "perfectly anonymous". The continued goal of I2P
-is to make attacks more and more difficult to mount. Its anonymity
-will get stronger as the size of the network increases and with
-ongoing academic review.
diff --git a/security/i2p/pkg-message b/security/i2p/pkg-message
deleted file mode 100644
index 91c837769ce4..000000000000
--- a/security/i2p/pkg-message
+++ /dev/null
@@ -1,24 +0,0 @@
-[
-{ type: install
-  message: <<EOM
-
-The wrapper and rc script are currently broken and under review,
-so you have to install and run i2p in the following way:
-
-- Install security/i2p port (which you might have now)
-- As normal user run /usr/local/sbin/i2prouter install (root is not allowed)
-  to extract all data into $HOME/i2p.
-- Go to users home i2p/ and edit runplain.sh to map I2PTEMP to the same 
-  directory as I2P
-- Now you can start the process in I2P home directory with ./runplain.sh
-
-You first have to walk through an initial setup via 
-
-http://localhost:7657
-
-Follow the instructions and map your browser to the configured ports.
-You can also host hidden services and many more via the UI.
-
-EOM
-}
-]