summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2019-09-14 11:09:52 +0200
committerThomas Sachau <tommy@gentoo.org>2019-09-14 12:51:02 +0200
commit9b905b922f0884c7249af6dbb6cad6d4e508945e (patch)
treecc7d98a6d6a26b3574bcdf4861d3169de6ef8b47 /net-p2p
parentnet-mail/fetchmail: Version 6.4.0_rc4 (diff)
downloadgentoo-9b905b922f0884c7249af6dbb6cad6d4e508945e.tar.gz
gentoo-9b905b922f0884c7249af6dbb6cad6d4e508945e.tar.bz2
gentoo-9b905b922f0884c7249af6dbb6cad6d4e508945e.zip
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 <tommy@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/freenet/freenet-0.7.5_p1484.ebuild9
-rw-r--r--net-p2p/freenet/metadata.xml3
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 @@
<upstream>
<remote-id type="github">freenet/fred</remote-id>
</upstream>
+ <use>
+ <flag name="nss">Use nss for crypto operations, if it is the fastest way</flag>
+ </use>
</pkgmetadata>