commit:     398b8d378f48cbdfd0794546fff16af6b1bdd984
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  1 07:08:59 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Feb  1 07:16:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=398b8d37

net-vpn/vopono: adjust dependencies

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../{vopono-0.10.11.ebuild => vopono-0.10.11-r1.ebuild}    | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/net-vpn/vopono/vopono-0.10.11.ebuild 
b/net-vpn/vopono/vopono-0.10.11-r1.ebuild
similarity index 59%
rename from net-vpn/vopono/vopono-0.10.11.ebuild
rename to net-vpn/vopono/vopono-0.10.11-r1.ebuild
index 16c2beb63020..bf5bd35d9ec6 100644
--- a/net-vpn/vopono/vopono-0.10.11.ebuild
+++ b/net-vpn/vopono/vopono-0.10.11-r1.ebuild
@@ -1,11 +1,9 @@
 # Copyright 2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-# Autogenerated by pycargoebuild 0.13.5
-
 EAPI=8
 
-inherit cargo
+inherit cargo optfeature
 
 DESCRIPTION="Launch applications via VPN tunnels using temporary network 
namespaces"
 HOMEPAGE="https://github.com/jamesmcm/vopono";
@@ -18,9 +16,11 @@ LICENSE+=" Apache-2.0 BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 
Unicode-3.0"
 SLOT="0"
 KEYWORDS="~amd64"
 
+# VPN backends sorted by preference.
 RDEPEND="|| (
                net-vpn/openvpn
                net-vpn/wireguard-tools
+               net-vpn/openfortivpn
        )"
 
 src_install() {
@@ -28,3 +28,11 @@ src_install() {
        einstalldocs
        dodoc USERGUIDE.md
 }
+
+pkg_postinst() {
+       # Judging from https://github.com/jamesmcm/vopono/issues/189 sudo is a 
pretty strict
+       # dependency, but not _absolutely_ needed.
+       # Alternatives like doas or run0 doesn't seem to be supported yet, but 
once they are, another
+       # "|| ( )" dependency block could be added for them.
+       optfeature "easy and automatic set up of network namespaces" 
app-admin/sudo
+}

Reply via email to