From 9b905b922f0884c7249af6dbb6cad6d4e508945e Mon Sep 17 00:00:00 2001 From: Thomas Sachau Date: Sat, 14 Sep 2019 11:09:52 +0200 Subject: [PATCH] net-p2p/freenet:Add optional support for nss, fixes bug 486826 Package-Manager: Portage-2.3.62, Repoman-2.3.17 Signed-off-by: Thomas Sachau --- net-p2p/freenet/freenet-0.7.5_p1484.ebuild | 9 ++++++--- net-p2p/freenet/metadata.xml | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/net-p2p/freenet/freenet-0.7.5_p1484.ebuild b/net-p2p/freenet/freenet-0.7.5_p1484.ebuild index 104ad58ab195..5c39af96e3c3 100644 --- a/net-p2p/freenet/freenet-0.7.5_p1484.ebuild +++ b/net-p2p/freenet/freenet-0.7.5_p1484.ebuild @@ -19,7 +19,7 @@ SRC_URI=" LICENSE="GPL-2+ GPL-2 MIT BSD-2 Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" +IUSE="+nss test" CDEPEND="dev-java/bcprov:1.54 dev-java/commons-compress:0 @@ -29,7 +29,8 @@ CDEPEND="dev-java/bcprov:1.54 dev-java/jna:0 dev-java/lzma:0 dev-java/lzmajio:0 - dev-java/mersennetwister:0" + dev-java/mersennetwister:0 + nss? ( dev-libs/nss )" DEPEND=" app-arch/unzip @@ -99,7 +100,9 @@ src_prepare() { freenet-wrapper.conf || die "sed failed" echo "wrapper.java.classpath.1=/usr/share/freenet/lib/freenet.jar" >> freenet-wrapper.conf || die - + if use nss; then + echo "wrapper.java.additional.5=-Dfreenet.jce.use.NSS=true" >> freenet-wrapper.conf || die + fi local i=2 pkg jars jar local ifs_original=${IFS} IFS="," diff --git a/net-p2p/freenet/metadata.xml b/net-p2p/freenet/metadata.xml index fd6ed7a988a6..3840d6c5c4f9 100644 --- a/net-p2p/freenet/metadata.xml +++ b/net-p2p/freenet/metadata.xml @@ -8,4 +8,7 @@ freenet/fred + + Use nss for crypto operations, if it is the fastest way + -- 2.26.2