commit: 49332d3998b95c7ee47f909ac0122bbba8b0f207 Author: Alexey Korepanov <kaikaikai <AT> yandex <DOT> ru> AuthorDate: Sun Nov 9 04:00:07 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Nov 12 09:48:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49332d39
net-vpn/i2pd: version bump 2.58.0 Signed-off-by: Alexey Korepanov <kaikaikai <AT> yandex.ru> Part-of: https://github.com/gentoo/gentoo/pull/44546 Signed-off-by: Sam James <sam <AT> gentoo.org> net-vpn/i2pd/Manifest | 1 + net-vpn/i2pd/i2pd-2.58.0.ebuild | 82 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/net-vpn/i2pd/Manifest b/net-vpn/i2pd/Manifest index 36387a4c8792..611b2f385eab 100644 --- a/net-vpn/i2pd/Manifest +++ b/net-vpn/i2pd/Manifest @@ -1,2 +1,3 @@ DIST i2pd-2.56.0.tar.gz 694510 BLAKE2B a8f300cbb31aeb3f08d15e15ffa40b514460408d50a5bde8ea6d496e99c14d708453245ad443780b369b2d2bf8ec340b1bf006663f3966f4ae4ee01a30e2ddf9 SHA512 fd7d0bcd230d852cf42a87a0a7f0228b982d972eb02886ffe5d0c1b7f495323e8e8f8ccca165372f5956349e997af386959c75c6542fbb113c5dc0f3cb15cb25 DIST i2pd-2.57.0.tar.gz 712641 BLAKE2B 430161250a712f631e06aed3b0f491885e2ba5b95e931cf0865bddf0eed97acb397b52c692a42f17c4b8a77ec10365c7780244ed3bdcf13272a2a3d0550210ad SHA512 1733bd538ff3b84766dc64f1680dbb87dd3c9ea487df751487f4827def437e437e06ad3143d97944989acc98cb72df1455a66aff72e5643c674653357439ae8e +DIST i2pd-2.58.0.tar.gz 719564 BLAKE2B 16dc842d25dd24dc80b89a127c7b44f37277cf4c12a5af7a5291ceb1fa9deef6d0b4be5bbfd09fae0320050eadb879f3d7bff1b4123ceb2bac8766d74f127ec2 SHA512 d5d87a04ff5f8481516c00b07dd46726dfb3f0de67f4932874a0655b4adfa448a434056a131d727dd79a2f3ee1f6cc9aef5dc176a0b5ab546d8e94b6c0b38ee5 diff --git a/net-vpn/i2pd/i2pd-2.58.0.ebuild b/net-vpn/i2pd/i2pd-2.58.0.ebuild new file mode 100644 index 000000000000..ce457c6a94d3 --- /dev/null +++ b/net-vpn/i2pd/i2pd-2.58.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd + +DESCRIPTION="A C++ daemon for accessing the I2P anonymous network" +HOMEPAGE="https://github.com/PurpleI2P/i2pd" +SRC_URI="https://github.com/PurpleI2P/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test +upnp" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + dev-libs/boost:= + dev-libs/openssl:0=[-bindist(-)] + virtual/zlib:= + upnp? ( net-libs/miniupnpc:= ) +" +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-libs/check ) +" +RDEPEND=" + ${COMMON_DEPEND} + acct-user/i2pd + acct-group/i2pd +" + +CMAKE_USE_DIR="${WORKDIR}/${P}/build" + +DOCS=( ../README.md ../contrib/i2pd.conf ../contrib/tunnels.conf ) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + -DWITH_HARDENING=OFF # worsens or matches the non-hardened profiles + -DWITH_STATIC=OFF + -DWITH_UPNP=$(usex upnp ON OFF) + -DWITH_LIBRARY=ON + -DWITH_BINARY=ON + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + # config + insinto /etc/i2pd + doins contrib/i2pd.conf + doins contrib/tunnels.conf + + # working directory + insinto /var/lib/i2pd + doins -r contrib/certificates + + # add /var/lib/i2pd/certificates to CONFIG_PROTECT + doenvd "${FILESDIR}/99i2pd" + + # openrc and systemd daemon routines + newconfd "${FILESDIR}/i2pd-2.56.0.confd" i2pd + newinitd "${FILESDIR}/i2pd-2.56.0.initd" i2pd + systemd_newunit "${FILESDIR}/i2pd-2.38.0.service" i2pd.service + + # logrotate + insinto /etc/logrotate.d + newins "${FILESDIR}/i2pd-2.57.0.logrotate" i2pd +} + +pkg_postinst() { + if [[ -f ${EROOT}/etc/i2pd/subscriptions.txt ]]; then + ewarn + ewarn "Configuration of the subscriptions has been moved from" + ewarn "subscriptions.txt to i2pd.conf. We recommend updating" + ewarn "i2pd.conf accordingly and deleting subscriptions.txt." + fi +}
