commit:     9800445fc9556434a4b4417584df621f312baf96
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Tue Oct  1 18:26:26 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Oct  1 23:04:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9800445f

net-p2p/qbittorrent: add i2p optfeature

since 4.6.0 qBitTorrent has experimental I2P support via SAM.
An external router package can provide that. It works out of the box
with net-vpn/i2pd.

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Closes: https://github.com/gentoo/gentoo/pull/38831
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 net-p2p/qbittorrent/qbittorrent-5.0.0.ebuild | 8 +++++++-
 net-p2p/qbittorrent/qbittorrent-9999.ebuild  | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/net-p2p/qbittorrent/qbittorrent-5.0.0.ebuild 
b/net-p2p/qbittorrent/qbittorrent-5.0.0.ebuild
index 77ac01cf12cb..e40ab0f8d98e 100644
--- a/net-p2p/qbittorrent/qbittorrent-5.0.0.ebuild
+++ b/net-p2p/qbittorrent/qbittorrent-5.0.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake edo multibuild systemd verify-sig xdg
+inherit cmake edo multibuild optfeature systemd verify-sig xdg
 
 DESCRIPTION="BitTorrent client in C++ and Qt"
 HOMEPAGE="https://www.qbittorrent.org";
@@ -127,3 +127,9 @@ src_install() {
                newinitd "${FILESDIR}/${PN}.initd" "${PN}"
        fi
 }
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       optfeature "I2P anonymyzing network support" net-vpn/i2pd net-vpn/i2p
+}

diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild 
b/net-p2p/qbittorrent/qbittorrent-9999.ebuild
index 77ac01cf12cb..e40ab0f8d98e 100644
--- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild
+++ b/net-p2p/qbittorrent/qbittorrent-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake edo multibuild systemd verify-sig xdg
+inherit cmake edo multibuild optfeature systemd verify-sig xdg
 
 DESCRIPTION="BitTorrent client in C++ and Qt"
 HOMEPAGE="https://www.qbittorrent.org";
@@ -127,3 +127,9 @@ src_install() {
                newinitd "${FILESDIR}/${PN}.initd" "${PN}"
        fi
 }
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       optfeature "I2P anonymyzing network support" net-vpn/i2pd net-vpn/i2p
+}

Reply via email to