Package Details: freenet

Git Clone URL: (read-only, click to copy)
Package Base: freenet
Description: A peer-to-peer platform for censorship-resistant communication and publishing
Upstream URL:
Keywords: anonymous censorship encrypted freenet network
Licenses: GPL2
Submitter: Xemertix
Maintainer: Thynix (skydrome)
Last Packager: skydrome
Votes: 181
Popularity: 0.72
First Submitted: 2009-04-17 16:46 (UTC)
Last Updated: 2022-06-25 08:53 (UTC)

Dependencies (7)

Required by (0)

Sources (8)

Pinned Comments

amanvg commented on 2020-10-13 08:32 (UTC)

if you are having issues with the key, run this command:

curl -sS | gpg --import -

Latest Comments

r381581 commented on 2022-02-06 14:13 (UTC)

If you use openjdk 11 the service will not start. Disable ShenandoahGC in the wrapper config to fix this.

skydrome commented on 2022-01-20 22:16 (UTC) (edited on 2022-01-20 22:24 (UTC) by skydrome)

Changes to the package:

  • Building with jdk17 now works along with WebOfTrust plugin, jdk11 is now the minimum in order to keep the pkgbuild and build script simple
  • Be sure to use the updated wrapper.config and java-service-wrapper package

1 unit test fails (GzipCompressorTest) with jdk17, if that is of any concern to you, stick with jdk11

e3a4 commented on 2021-09-19 20:13 (UTC)

Build fails with the following message

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'fred'.
> Dependency verification failed for configuration ':classpath'
  2 artifacts failed verification:
    - JavaEWAH-1.1.12.jar (com.googlecode.javaewah:JavaEWAH:1.1.12) from repository Gradle Central Plugin Repository
    - JavaEWAH-1.1.12.pom (com.googlecode.javaewah:JavaEWAH:1.1.12) from repository Gradle Central Plugin Repository
  If the artifacts are trustworthy, you will need to update the gradle/verification-metadata.xml file by following the instructions at

  Open this report for more details: file:///home/me/.cache/yay/freenet/src/fred/build/reports/dependency-verification/at-1632082316444/dependency-verification-report.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at

==> ERROR: A failure occurred in build().
error making: freenet

skydrome commented on 2021-06-15 18:49 (UTC)

Changes to the package:

  • As before, make sure to build with jdk15 or earlier or plugins wont work

dluciv commented on 2021-05-17 16:45 (UTC)

As for, FreeNet works with IpToCountry.dat copied from previous versions (to sources) and builds by modifying a PKGBUILD. Or you can use this one in PKGBUILD URL.

This file looks like it is a piece of very old crap which is not maintained anymore.

general commented on 2021-04-23 14:22 (UTC)

curl: (6) Could not resolve host:

everything else resolves/downloads just fine on this machine might be down permanently

skydrome commented on 2021-04-12 03:04 (UTC) (edited on 2021-04-12 03:05 (UTC) by skydrome)

Changes to the package:

  • Gradle 7.0
  • Even though the ability to build with jdk16 is available, it breaks some plugins and could be other issues with the main router.

skydrome commented on 2020-10-15 06:19 (UTC) (edited on 2021-01-09 09:47 (UTC) by skydrome)

amanvg commented on 2020-10-13 08:32 (UTC)

if you are having issues with the key, run this command:

curl -sS | gpg --import -

Refawn commented on 2020-08-22 14:51 (UTC)

Tried building using Pamac in Manjaro and I get this:

Building freenet...
==> Making package: freenet (sáb 22 ago 2020 11:26:22)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating fred git repo...
Fetching origin
  -> Updating plugin-KeyUtils git repo...
Fetching origin
  -> Updating plugin-UPnP git repo...
Fetching origin
  -> Updating plugin-Library git repo...
Fetching origin
  -> Updating plugin-WebOfTrust git repo...
Fetching origin
  -> Updating seedrefs git repo...
Fetching origin
  -> Found IpToCountry.dat
  -> Found
  -> Found wrapper.config
  -> Found freenet.ini
  -> Found freenet.service
  -> Found freenet.tmpfiles
  -> Found 0001-keyutils-fix-constructor-call.patch
==> Validating source files with sha256sums...
    fred ... Skipped
    plugin-KeyUtils ... Skipped
    plugin-UPnP ... Skipped
    plugin-Library ... Skipped
    plugin-WebOfTrust ... Skipped
    seedrefs ... Skipped
    IpToCountry.dat ... Skipped ... Passed
    wrapper.config ... Passed
    freenet.ini ... Passed
    freenet.service ... Passed
    freenet.tmpfiles ... Passed
    0001-keyutils-fix-constructor-call.patch ... Passed
==> Verifying source file signatures with gpg...
    fred git repo ... FAILED (unknown public key B41A6047FD6C57F9)
==> ERROR: One or more PGP signatures could not be verified!
Failed to build freenet
I guess I could modify the build files to match the key but I'm not sure.

skydrome commented on 2020-08-11 04:44 (UTC) (edited on 2021-04-12 03:02 (UTC) by skydrome)

Changes to the package:

  • Gradle 6.6

artivision commented on 2020-03-13 20:24 (UTC)

Good day, build failed with an exception 13/Mar.

skydrome commented on 2020-02-16 18:10 (UTC)

fixed, sry

AlPiotrowicz commented on 2020-02-16 11:15 (UTC) (edited on 2020-02-16 11:17 (UTC) by AlPiotrowicz)

I get :

    [junit] Running
    [junit] Testsuite:
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0,022 sec
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0,022 sec
    [junit] Testcase: initializationError took 0,002 sec
    [junit]     Caused an ERROR
    [junit] org/hamcrest/SelfDescribing
    [junit] java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
    [junit]     at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    [junit]     at java.base/java.lang.ClassLoader.defineClass(
    [junit]     at java.base/
    [junit]     at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(
    [junit]     at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(
    [junit]     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(
    [junit]     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
    [junit]     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
    [junit]     at java.base/java.lang.ClassLoader.loadClass(
    [junit]     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [junit]     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(
    [junit]     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(
    [junit]     at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(
    [junit]     at java.base/java.lang.reflect.Constructor.newInstance(
    [junit] Caused by: java.lang.ClassNotFoundException: org.hamcrest.SelfDescribing
    [junit]     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
    [junit]     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
    [junit]     at java.base/java.lang.ClassLoader.loadClass(

BUILD FAILED /tmp/makepkg/freenet/src/plugin-Library/build.xml:190: Test failed

skydrome commented on 2020-02-15 20:21 (UTC) (edited on 2020-02-19 21:17 (UTC) by skydrome)

Changes to the package:

  • Git verifies the signed tag now, you will have to import the freenet developers key from ** or gpg --recv-keys FD6C57F9
  • Includes the Library plugin
  • /opt/freenet folder permissions updated, youll likely see warnings about it when updating. Systemd will change them on its own. Install the package twice and you shouldnt see the warnings again if it changed them correctly.
  • freenet.ini.pacnew can be ignored unless you want a fresh install, only updated for new installations ** New installs will have opennet disabled until you manually enable it
  • wrapper.config.pacnew should be updated if youve made local changes to yours
  • freenet doesnt overwrite our newest geoip db anymore

skydrome commented on 2019-04-01 04:37 (UTC)

HiJack88 commented on 2019-03-17 19:57 (UTC)

@skydrome: Thanks for fixing it. It works now :) I appreciate your help!

skydrome commented on 2019-03-12 08:19 (UTC)

fixed it for using git-fetch without a gitconfig

HiJack88 commented on 2019-03-09 04:22 (UTC)

Hi all,

looks like i°m keep getting a new build error:

==> Starting prepare()... remote: Enumerating objects: 7, done. remote: Counting objects: 100% (7/7), done. remote: Compressing objects: 100% (4/4), done. remote: Total 7 (delta 3), reused 7 (delta 3), pack-reused 0 Unpacking objects: 100% (7/7), done. From * branch gradle-4.10.3 -> FETCH_HEAD

*** Please tell me who you are.


git config --global "" git config --global "Your Name"

to set your account's default identity. Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'robin@Hood.(none)') ==> ERROR: A failure occurred in prepare(). Aborting... ==> ERROR: Makepkg was unable to build . ==> Restart building freenet ? [y/N] ==> -------------------------------- ==>

Does that mean i need to provide login data in order to download sources?

skydrome commented on 2019-03-06 20:30 (UTC)

fixed building with java10+ until its fixed upstream next release

tleydxdy commented on 2019-03-04 02:31 (UTC)

The version is inconsistent with the PKGBUILD

HiJack88 commented on 2019-03-03 20:11 (UTC)

Hi all,

unfortunatey i keep getting a build error.


==> Starting build()... ==> Building Freenet...

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine java version from '11.0.2'.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at ==> ERROR: A failure occurred in build(). Aborting...

I'm using Antergos Linux with KDE Plasma v5 with all lates updates. My computer is a Lenovo ThinkPad T510 with 8 GB RAM and 512 GB SSD by Samsung.

All further dependencies (java-service-wrapper, java-hamcrest, junit) are already installed.

Can you tell me what i'm doing wrong?


Thynix commented on 2019-01-20 10:18 (UTC) (edited on 2019-01-20 10:23 (UTC) by Thynix)

I've applied your patch, 14mRh4X0r. Thanks!

I was hoping to figure out a way to use the pre-built jar, as it's a reproducible build, but the build also downloads the dependency jars the package uses, so that'd be a bigger task.

I feel I should also mention what security settings are in place for the wrapper. As set by fred/gradle/wrapper/ the distribution is downloaded over HTTPS and distributionSha256Sum is set so if the checksum is wrong it'll fail the build. The official checksum list is, and the build uses 4.2.1 as of this writing.

Thynix commented on 2019-01-20 09:54 (UTC)

The reason the build fails with Gradle 5 is that Witness - the Gradle plugin the build uses to verify dependencies after fetching them - uses a deprecated function that was finally removed in Gradle 5.

14mRh4X0r commented on 2019-01-07 15:34 (UTC)

Using the gradle wrapper in the repo makes sure the build always works. However, this does download the specified gradle version from

diff --git a/PKGBUILD b/PKGBUILD
index 27b71ba..ee78f0c 100644
@@ -22,7 +22,7 @@ license=('GPL2')
 arch=('i686' 'x86_64')
 depends=('java-runtime>=8' 'gmp' 'java-service-wrapper')
-makedepends=('java-environment>=8' 'apache-ant' 'gradle' 'git' 'java-hamcrest' 'zip')
+makedepends=('java-environment>=8' 'apache-ant' 'git' 'java-hamcrest' 'zip')
@@ -70,7 +70,7 @@ build() {
     export GRADLE_OPTS="-Dfile.encoding=UTF-8"

     msg "Building Freenet..."
-    gradle copyRuntimeLibs
+    ./gradlew copyRuntimeLibs

@@ -97,7 +97,7 @@ check() {

     # these tests use alot of memory and can cause OOM's
     rm -f test/freenet/client/async/{*Storage,ClientRequestSelector}
-    gradle test
+    ./gradlew test

 package() {

tydynrain commented on 2019-01-01 21:04 (UTC)

I got the same build error as klore when trying to build 1483. jihem's suggestion of downgrading to gradle 4.10.2 fixed the issue for me as well.

klore commented on 2018-12-30 19:18 (UTC)

jihem: Downgrading gradle working, thank you

jihem commented on 2018-12-28 14:16 (UTC)

klore: I was able to fix this bug by downgrading the package gradle to 4.10.2.

I think the maintainer should replace the dependency gradle with gradle4.

klore commented on 2018-12-24 15:08 (UTC)

hi, i can't compile 2018-12-24

FAILURE: Build failed with an exception.

  • Where: Build file '/tmp/yaourt-tmp-user/aur-freenet/src/fred/build.gradle' line: 16

  • What went wrong: A problem occurred evaluating root project 'fred'.

    Failed to apply plugin [id 'witness'] Could not find method leftShift() for arguments [org.whispersystems.witness.WitnessPlugin$_apply_closure4@23766c12] on task ':calculateChecksums' of type org.gradle.api.DefaultTask.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at


skydrome commented on 2018-10-11 04:27 (UTC)

I was using a custom version of apache-ant and didnt see they change updated their package. Thanks, its good now.

tydynrain commented on 2018-10-11 03:01 (UTC) (edited on 2018-10-11 03:11 (UTC) by tydynrain)

I just tried to build the latest version (, and it went successfully until it stopped with this, using my aursync repo:

/home/tydynrain/.cache/aursync/freenet/PKGBUILD: line 79: /etc/profile.d/ No such file or directory

skydrome commented on 2018-07-27 20:45 (UTC)

nope cant hurt, in fact i had to do that for the i2p package also. If this happens with other java apps you are probably better off just setting this in your bashrc

alkis05 commented on 2018-07-27 17:51 (UTC) (edited on 2018-07-27 17:58 (UTC) by alkis05)

For those having the same problem as I did, here is a tip: If are having encoding errors while building WebOfTrust plugin like the one bellow

[javac] /tmp/yaourt-tmp-alkis/aur-freenet/src/plugin-WebOfTrust/test/plugins/WebOfTrust/ error: unmappable character (0xB2) for encoding US-ASCII [javac] final int trustCount = (identityCount*identityCount) / 5; // A complete graph would be identityCount?? trust values. [javac] ^ [javac] 10 errors [javac] 1 warning BUILD FAILED /tmp/yaourt-tmp-alkis/aur-freenet/src/plugin-WebOfTrust/build.xml:225: Compile failed; see the compiler error output for details.

The encoding of your java might be different from the file (as you can see, mine was US-ASCII instead of UTF8) So if you are having this problem, add the following line in the PKGBUILD in the prepare() function: export JAVA_TOOLS_OPTIONS=-Dfile.encoding=UTF8

Now it compiled without errors. Perhaps it is worth looking into adding it to the package, skydrome. I guess it can't hurt anyway.

skydrome commented on 2018-07-21 04:38 (UTC)

thanks for notifying me, fixed

haximilian commented on 2018-07-21 02:07 (UTC) (edited on 2018-07-21 02:12 (UTC) by haximilian)

Hi! Please add "p7zip" as a build dependency. It provides the "7z" command, which is needed to run the PKGBUILD.

skydrome commented on 2018-07-10 19:20 (UTC)

Updated to version 1481 which now uses the gradle buildsystem and simplifies the pkgbuild

KitamuraRin commented on 2018-06-09 02:37 (UTC) These two links are broken, at least from my home connection. Is there any other ways to get these two files?

phaseburn commented on 2018-04-23 00:43 (UTC)

@sipaktli - I had the same error, and switching to openjdk8 via "sudo archlinux-java set java-8-openjdk" worked for me to build the package (make sure that openjdk8 packages are installed, first).

commented on 2018-04-21 05:35 (UTC)

==> Building Contrib Modules... Buildfile: /tmp/makepkg/freenet/src/contrib/freenet-ext/build.xml


build: [copy] Copying 1 file to /tmp/makepkg/freenet/src/contrib/freenet-ext/build/freenet/node [echo] Updated build version to v50 in build/freenet/node/ [javac] /tmp/makepkg/freenet/src/contrib/freenet-ext/build.xml:77: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 1 source file to /tmp/makepkg/freenet/src/contrib/freenet-ext/build [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5 [javac] error: Source option 1.5 is no longer supported. Use 1.6 or later. [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

BUILD FAILED /tmp/makepkg/freenet/src/contrib/freenet-ext/build.xml:77: Compile failed; see the compiler error output for details.

Total time: 0 seconds ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build freenet.

tydynrain commented on 2018-03-02 02:48 (UTC) (edited on 2018-03-02 02:50 (UTC) by tydynrain)

If I enable the systemd service, freenet is very rarely running once my computer is fully booted, though it starts and runs fine if I manually start it. If I add,, and Restart=on-failure, then it starts successfully at boot, and is still running once my computer is up and running.

This is what I have in my freenet.service file:


Description=An encrypted network without censorship and monitoring.




ExecStart=/opt/freenet/ start --quiet

ExecStop=/opt/freenet/ stop --quiet




I hope this helps anyone who might be having the same issue.

bm456 commented on 2017-12-22 23:17 (UTC)


i've troubles with freenet (sometimes)

if my internet hangs up (and i need reboot) freenet FAILS and i need restart it via systemctl

kubrick commented on 2017-10-30 10:25 (UTC)

I can't seem to install the Freemail plugin, it complains that it doesn't have permission to create directories. Any ideas how to fix that?

skydrome commented on 2017-05-27 00:05 (UTC)

thanks for mentioning, fixed

Daklon commented on 2017-05-07 18:50 (UTC)

Hi, there is a problem when install it, the file IpToCountry.dat seems changed and now it fail when check the sha256 checksum, the new hash is 8d89837013f7c89ed9bedbf40aa6fc66e1b4c7e345eeb0eea588d8c3c20b5edb

skydrome commented on 2017-04-28 19:28 (UTC)

Ive uploaded the affected files to github until the freenet team gets their maven server running

MrTimscampi commented on 2017-04-28 08:29 (UTC) seems completely down.

klore commented on 2017-04-21 12:56 (UTC) uses an invalid security certificate. The certificate expired on 06/04/17 00:47. The current time is 21/04/17 14:55. Error code: SEC_ERROR_EXPIRED_CERTIFICATE

3ED_0 commented on 2017-04-20 12:56 (UTC)

klore > curl: (60) SSL certificate problem: certificate has expired Same here

klore commented on 2017-04-12 18:59 (UTC)

curl: (60) SSL certificate problem: certificate has expired ==> ERROR: Failure while downloading Aborting... can't download seednodes.fref , HTTP Strict Transport Security (HSTS) , certificate expired

skydrome commented on 2017-02-24 16:00 (UTC)

relogin after installing jdk to update the path to javah

fausterjames commented on 2017-02-21 00:52 (UTC)

I have this error : ==> Building NativeBigInt... + gcc -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -I./jbigi/include -I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux jbigi/src/jbigi.c + gcc -shared -Wl,-O1,--sort-common,-z,relro,-soname, -lgmp jbigi.o -o lib/net/i2p/util/ + set +x ==> Building NativeThread... + javah -o NativeThread.h -classpath ../../fred/src /tmp/yaourt-tmp-usr/aur-freenet/./PKGBUILD: line 200: javah: command not found

skydrome commented on 2016-08-07 04:59 (UTC)

MissingNoIOI commented on 2016-07-09 11:45 (UTC)

The link doesnt seem to work anylonger

whynothugo commented on 2016-05-28 15:44 (UTC)

fatal error: jni.h: No such file or directory Maybe a dependency is missing?

henkm commented on 2016-05-25 01:47 (UTC)

D101101, I had the same issue when trying to update. I removed jcpuid.c to force downloading a new version and it builds fine after that.

D101101 commented on 2016-05-04 09:21 (UTC)

==> Validating source files with sha256sums... *** ant-contrib-1.0b3-bin.tar.bz2 ... Passed jcpuid.c ... FAILED jcpuid.h ... Passed *** ==> ERROR: One or more files did not pass the validity check! ==> ERROR: Could not download sources.

Thynix commented on 2016-04-24 15:18 (UTC)

Whoops, it needed an update for the KeyUtils version. I've pushed that change. Does it work for you now?

MrTimscampi commented on 2016-04-24 10:35 (UTC)

It's not compiling on my machine, both with openjdk7/8 and java7/8. Here's what I get: [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] /home/mrtimscampi/.cache/pacaur/freenet/src/plugin-KeyUtils/src/plugins/KeyUtils/ error: cannot find symbol [javac] import freenet.client.async.KeyListenerConstructionException; [javac] ^ [javac] symbol: class KeyListenerConstructionException [javac] location: package freenet.client.async [javac] /home/mrtimscampi/.cache/pacaur/freenet/src/plugin-KeyUtils/src/plugins/KeyUtils/ error: cannot find symbol [javac] KeyListenerConstructionException { [javac] ^ [javac] symbol: class KeyListenerConstructionException [javac] location: class KeyExplorerUtils [javac] /home/mrtimscampi/.cache/pacaur/freenet/src/plugin-KeyUtils/src/plugins/KeyUtils/ error: cannot find symbol And it continues for a while, with more KeyListenerConstructionException symbol not being found.

X-san commented on 2016-03-26 05:33 (UTC)

It's suddenly working tonight. Guess my connectivity was poor earlier. Thanks for the quick response though.

skydrome commented on 2016-03-26 04:47 (UTC)

you should not be getting different chksums as nothing has changed regarding them. The issue files are from sourceforge maybe it is serving you a bad mirror. Try downloading them manually from a different host.

X-san commented on 2016-03-25 22:47 (UTC)

sha256sums are not passing on the following files: ant-contrib-1.0b3-bin.tar.bz2 lzma465.tar.bz2 Have tried a couple times making sure to use clean directory.

Matheus commented on 2016-03-23 18:01 (UTC)

The freenet 0.7.5 build 1472 has been released.

skydrome commented on 2016-02-17 22:28 (UTC)

no reason other than didn't need to at the time, ive updated the pkgbuild to checkout each version tag now

tuxayo commented on 2016-02-13 17:40 (UTC)

@skydrome I confirm that it works. Is there a reason to keep to two incompatible versions configured in the PKGBUILD? (fred 1470 and KeyUtils master)

skydrome commented on 2016-02-04 06:49 (UTC)

you just have to uncomment _fred=#branch=next

tuxayo commented on 2016-02-03 15:03 (UTC)

@skydrome You mean compiling the PKGBUILD without any modification works?

TZ86 commented on 2016-02-03 07:25 (UTC)

Oh, and seems to it needs latest version of bc because with current one I've got " no such algorithm: SHA256withECDDSA for provider BC" There is updated PKGBUILD:

TZ86 commented on 2016-02-03 06:38 (UTC)

It fails on KeyUtils plugin building. I've fixed that by switching to fred master (just removed ${_fred} from fred source url).

skydrome commented on 2016-01-08 08:30 (UTC)

Compiling the latest is working fine for me right now, you can build a pre-release tag from one named here Official release shouldnt be too far away

tuxayo commented on 2016-01-07 22:35 (UTC) (edited on 2016-01-07 22:35 (UTC) by tuxayo)

I get an error when compiling Plugin KeyUtils: Anybody else?

felixonmars commented on 2015-09-25 06:37 (UTC)

FYI, bcprov 1.52 has been added to [testing].

hexchain commented on 2015-09-25 06:28 (UTC)

Thank you, that's really quick!

skydrome commented on 2015-09-25 04:36 (UTC)

i recently change the build to include bcprov 1.52 directly into this package instead of relying on yet another aur package but forgot to point freenet to this new path. Its fixed now

Thynix commented on 2015-09-25 03:05 (UTC)

extra/bcprov is too old - it's 1.50, but Freenet requires 1.52.

hexchain commented on 2015-09-25 02:53 (UTC)

I'm not able to build this package. It fails when building Freenet: aur-freenet/src/fred/build-clean.xml:185: Bouncycastle not available (or not recent enough); try $ java -version openjdk version "1.8.0_60" OpenJDK Runtime Environment (build 1.8.0_60-b24) OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode) extra/bcprov installed

skydrome commented on 2015-09-20 01:55 (UTC) makes use of the latest Web of Trust plugin

skydrome commented on 2015-08-15 13:17 (UTC)

-3 makes use of the latest Web of Trust plugin

ptr commented on 2015-08-13 02:26 (UTC)

works now for me, thanks for help ==> Beendete Erstellung: freenet 1: (Do 13. Aug 04:24:01 CEST 2015)

JohnRobson commented on 2015-08-12 22:11 (UTC)

Now works perfectly. Thank you very much skydrome.

skydrome commented on 2015-08-12 20:09 (UTC)

JohnRobson, can you try now?

skydrome commented on 2015-08-12 15:15 (UTC)

my fault again sorry,

ptr commented on 2015-08-12 15:07 (UTC)

ok, thanks and now i have this ==> Building onion-fec... cc fec.c -o fec8.S -S -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -Wall -DGF_BITS=8 cc fec8.S -o fec8.o -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -Wall -DGF_BITS=8 cc fec-jinterf.c -o fec8-jinterf.o -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -Wall -DGF_BITS=8 -I/include/linux cc1: Fehler: /include/linux: Keine Berechtigung Makefile:31: die Regel für Ziel „fec8-jinterf.o“ scheiterte make: *** [fec8-jinterf.o] Fehler 1 rm fec8.S fec8.o ==> FEHLER: Ein Fehler geschah in build(). Breche ab...

skydrome commented on 2015-08-12 14:54 (UTC)

arch used to set JAVA_HOME itself but I always kept mine set locally by myself and now arch uses archlinux-java script to set symlinks to what JAVA_HOME would be. ( ╰──▶ pac_what_owns /usr/bin/javah /usr/bin/javah is owned by java-environment-common 2-2 you should have this since installing a jdk requires it...

ptr commented on 2015-08-12 14:39 (UTC)

@skydrome, thanks (What was the error?) But Now at line 186: ==> Building NativeThread... /tmp/yaourt-tmp-patrick/aur-freenet/./PKGBUILD: Zeile 186: javah: Kommando nicht gefunden.

skydrome commented on 2015-08-12 13:35 (UTC)

ptr, fixed

ptr commented on 2015-08-12 05:41 (UTC)

ERROR: Building NativeBigInt... cc1: Fehler: /include/linux: Keine Berechtigung

ptr commented on 2015-08-12 04:30 (UTC)

==> Beginne build()... ==> Building NativeBigInt... cc1: Fehler: /include/linux: Keine Berechtigung ==> FEHLER: Ein Fehler geschah in build(). Breche ab... ==> FEHLER:Makepkg konnte freenet nicht erstellen. ==> Erstellen von freenet neu starten?[j/N]

Thynix commented on 2015-08-12 00:45 (UTC)

I've updated the seed nodes file. sha256 is now e9552d1912216e88f2d04fd6882cc015acb81bd2a2b2392197b3758578b23f81.

Thynix commented on 2015-07-17 01:32 (UTC)

I've updated an existing reference in the seed nodes file. sha256sum is now d00e9dc27d6fda8ba01c3cd0b5a30ae77e36590ef58848ab9445ce29331e0434.

Thynix commented on 2015-07-10 23:48 (UTC)

I've updated the seed nodes file to update existing references. sha256sum is now 25c396c1b7025c7c8fec7bbab926fbb2d56a5262bed4f5c8f7510c0a9bbef833.

Thynix commented on 2015-06-18 03:13 (UTC)

I've updated the seed nodes file to add another seed node. sha256sum is now 231f30141d246a33c06dc6fa6c51b9da5524088b960130792f55bb6d7843827d.

aricart commented on 2015-05-26 03:40 (UTC)

You should change the service file ExecStop line so it points to an absolute path...

Orpheus commented on 2015-05-06 08:01 (UTC)

Build failed ==> Building onion-fec... Makefile:33: *** Ziel-Muster enthält kein „%“. Schluss. ==> FEHLER: Ein Fehler geschah in build(). Breche ab...

esbeye commented on 2015-05-06 04:36 (UTC)

On Raspberry Pi it kept gives me error when building jcpuid. When I looked at i2p-dev PKGBUILD, I noticed that it only compiled on condition "if [[ "$CARCH" != @(arm)* ]];". So, I removed the line "build_jcpuid" and the package can be built. Freenet is working well the last couple of hours with constant CPU usage about 90%. But I'm still wondering what jcpuid does

skydrome commented on 2015-05-05 19:55 (UTC)

fixed the hash check for seednodes file, unit tests are not run by default now

lava commented on 2015-04-30 15:00 (UTC)

seednodes.fref hash is wrong (94105af71304797010929dbec77b720eacd22343ef6a0c31dfc100921f3ce35e), also gives the same failed test as for prodigen. I'm not a java-dev and cannot understand if there is still something missing in the system or this is merely a bug.

Thynix commented on 2015-03-29 03:34 (UTC)

Is there a reason to run the tests when building a package? The "package-only" target only builds the jar and does not run the tests. Would that help?

commented on 2015-03-06 08:40 (UTC)


skydrome commented on 2015-02-17 01:57 (UTC)

new build of testing version 1468 allows building of the KeyUtils plugin from source. No need to update if you dont want/need to.

skydrome commented on 2015-02-17 01:00 (UTC)

Sorry for the delay, after no update to my bug report to provide the updated bcprov package in 2 months Ive just resorted to polluting the AUR with In other news, at the time of me writing this, building freenet from the development branch is working fine also.

whynothugo commented on 2015-01-11 03:57 (UTC)

Dependency "bcprov>=1.51" can't be satified: only 1.50 is in [extra] and there's no newer version on the AUR. Is there any workaround?

skydrome commented on 2014-12-21 03:39 (UTC)

just needed to use "rm -f" there instead, it was my fault after moving that line from the perpare() function to check(). All good now, thanks

commented on 2014-12-20 06:01 (UTC)


commented on 2014-12-20 05:23 (UTC)


commented on 2014-12-20 05:23 (UTC)


skydrome commented on 2014-12-16 01:16 (UTC)

check the result of your environments $JAVA_HOME you might need to re-login after installing java and/or read 'archlinux-java help'

sknd commented on 2014-12-15 11:12 (UTC)

ok, i installed it, but now i have this error: (...) ==> Zaczynam pkgver() ==> Updated version: freenet 0.7.5.build01467-1 ==> Zaczynam prepare() ==> Zaczynam build() ==> Building libjbigi... In file included from jbigi/src/jbigi.c:3:0: ./jbigi/include/jbigi.h:5:18: fatal error: jni.h: Nie ma takiego pliku ani katalogu # include <jni.h> ^ compilation terminated. ==> BŁĄD: Wystąpił błąd w build(). Przerywam... The build failed. what should I do now? There's nothing about libjbigi on forum...

skydrome commented on 2014-12-15 05:13 (UTC)

see bcprov-1.51-1.src.tar.gz in this archive

sknd commented on 2014-12-14 19:27 (UTC)

I cannot update, because bcprov>=1.51 is needed, and actual version of bcprov in aur is 1.50... what can i do?

skydrome commented on 2014-12-07 17:24 (UTC) it works

ironborn commented on 2014-12-07 13:27 (UTC)

-> Downloading lzma465.tar.bz2... ... curl: (22) The requested URL returned error: 404 Not Found ==> ERROR: Failure while downloading lzma465.tar.bz2

skydrome commented on 2014-12-07 01:42 (UTC)

If you have a working freenet installation to your liking I would ignore upgrading to this PKGBUILD until the next release to strip java/db4o since a fresh install might be needed in either case. if you do upgrade to -2 make sure to backup your working freenet install, uninstall freenet make sure any freenet user/group is removed also. The last thing is the directory structure might be different after upgrading. Compare freenet.ini to see.

Thynix commented on 2014-12-07 00:43 (UTC)

Also - the version of Fred in next now sets ant to check /usr/share/java by default so the symlinks to lib/ will no longer be needed. See

Thynix commented on 2014-12-07 00:39 (UTC)

Might signals not working be due to IGNORE_SIGNALS=TRUE in the stock

skydrome commented on 2014-12-07 00:36 (UTC)

Changes in -2 Option to build git HEAD, build a tagged release by default Option to skip unit tests Remove 2 unit tests dealing with storage, these are memory intensive and can take a long time to finish if it doesnt OOM first Provide prebuilt WebOfTrust and KeyUtils plugins, neither would build for me Compile NativeBigInteger jcpuid onion-fec for our own architecture Attempting to load a natively compiled NativeTheads lib caused a NPE, so use prebuilt for now This pkgbuild depends on extra/bcprov which hasnt been updated yet, a support ticket has been created for someone to do it. Use this PKGBUILD for that till then. systemd service file has not been tested, it'll changed to the style of how I2P's is later. is set to 192 MB you may want to increase that, changes to wrapper.config will be saved on upgrades What doesnt seem to work is stopping freenet by sending -TERM signals to it, the wrapper just restarts the process.

commented on 2014-12-06 19:28 (UTC)


skydrome commented on 2014-12-04 14:53 (UTC)

What i would do is download this package ex: 'yaourt -G freenet' and use this one liner to view changes i make periodically. Should make it easier to help this pkgbuild get better with more people who take part.

Almin commented on 2014-12-04 09:00 (UTC)

Signature Checks failed! Please update PKGBUILD!

felixonmars commented on 2014-12-04 02:17 (UTC)

seednodes.fref failed checksums here :(

skydrome commented on 2014-12-03 22:30 (UTC)

there was a defcon presentation in 2010ish that kept me from ever enabling upnp on any router I owned. Maybe things are different now.

Thynix commented on 2014-12-03 03:50 (UTC)

Great to hear! Official plugins I run: * WebOfTrust (though it is very resource-intensive and should probably not run by default) * KeyUtils * Freemail (v2; requires WebOfTrust) * UPnP * FlogHelper (also requires WebOfTrust) Unofficial plugins: * Sone Care to elaborate on why UPnP is evil? JSTUN I'd understand because it contacts 3rd party external services to determine the publicly routable IP, but why UPnP? I'll have to check on the library naming scheme.

skydrome commented on 2014-12-02 16:02 (UTC)

Great news, I have a working freenet PKGBUILD that builds as much as possible from source, the only prebuilt pieces being java/commons-compress and java/db4o. What are some recommended plugins besides the needed JSTUN and UPnP (which i hope upnp, cause its evil, isnt actually required). Last question is the way the BigInt lib gets loaded. What is the naming scheme freenet uses to load these libs? ex: libNativeThread-{i386}.so libjcpuid-{x86} Resource name [net/i2p/util/libjbigi-linux-{pentium3}.so] was not found libjbigi-linux-{none}.so

skydrome commented on 2014-10-28 00:53 (UTC)

Ok, Ive managed to build freenet along with the contrib deps (most of them) from source. The debian rules is what ultimately helped me. Thynix, the ant build system seems like a nuisance to view and edit those build.xml files, they are not easily understandable. Packaging for distros could be made easier by making more individualized ant targets perhaps. Next step is rewriting the wrapper like i did for the i2p package

Thynix commented on 2014-10-28 00:02 (UTC)

The build of the contrib repo isn't the easiest thing, and I haven't tried on Arch, but I've done it on Debian. We're hoping to move away from this single monolithic jar insanity to separate libraries both for our own comfort and to make packaging easier - both for dependencies and the complexity of the packaging. Other than break freenet-ext.jar into its component libraries what can the project do to make packaging easier? There is an unmaintained Debian package that builds contrib: The dependencies for building everything to make a release are documented: Packaging by using the installer seems like something that might work but isn't really intended. You're correct on the installer dependencies:

alexander commented on 2014-10-27 17:49 (UTC)

I am also not able to write a proper pkgbuild. AFAIK you need freenet.jar (freenet-build01465.jar for the current build, refered to by freenet-stable-latest.jar.url), freenet-ext.jar, opennet/seednodes.fref, update/wrapper.conf and some certificates. Maybe even more. I also tried to utilize the offline installer. You can unpack it and run the Installer with an options file instead of the gui. The problem with that is that the installer aborts when you run it as root. makepkg does run it as fake root. I will orphan the package. It would be great if someone could give us some help to build the package properly.

skydrome commented on 2014-10-27 00:17 (UTC)

been working on a pkgbuild in my free time, freenet is proving to be difficult to build from source (along with contrib deps). Its dep requirements seem very outdated for archlinux. Falling back to shoving prebuild jars from 2011 into folders, neither openjdk 7/8 succeeded in building freenet. Is there anyone else that can try?

commented on 2014-10-18 09:12 (UTC)


Thynix commented on 2014-07-20 02:20 (UTC)

The freenet07.tar.gz this uses hasn't been updated since 2012. It's built with but no longer uploaded. I'm the current Freenet release manager; would it help to have this tarball kept up to date, or would something else be more useful?

sknd commented on 2014-01-14 19:56 (UTC)

in PKGBUILD, in line cp -aL ../bcprov-jdk15on-150.jar . there should be 149 instead of 150, otherwise build fails

exine commented on 2014-01-05 16:46 (UTC)

Thanks Andares! Well, this package have used bouncycastle 147 before and it crashed too. After using 150 it also crashed afterwards, but I had no time to check it. Thanks for the fix!

Andares commented on 2013-12-31 09:20 (UTC)

The package is broken. I've found that bcprov-jdk15on-150 causes Freenet to throw the following exception: java.lang.IllegalArgumentException: IV must be no more than 15 bytes at org.bouncycastle.crypto.modes.OCBBlockCipher.init(Unknown Source) at freenet.crypt.AEADOutputStream.( Looking at the bouncycastle code, I saw that the 149 release only throws if IV is greater than 127 bytes. Therefore, the following workaround uses v149 instead of v150 and worked for me: 1. systemctl stop freenet 2. Change the last line of /opt/freenet/wrapper.conf to "" 3. wget in /opt/freenet 4. systemctl start freenet

grawity commented on 2013-12-27 13:43 (UTC)

Does this always install the latest build, or only the 0.7.5 release?

cros13 commented on 2013-09-18 15:28 (UTC)

needs 'bsprov' in depends

felixonmars commented on 2013-07-18 08:44 (UTC)

The two lines in freenet.service: ExecStart=/bin/su freenet -c "/opt/freenet/ start" ExecStop=/bin/su freenet -c "/opt/freenet/ stop" Could now be simplify to User=freenet ExecStart=/opt/freenet/ start ExecStop=/opt/freenet/ stop And you may add a "TimeoutSec=0" into the [Service] section to avoid timeout on first-time downloading.

Nikus commented on 2012-12-06 00:35 (UTC)

Finally, I removed the freenet-ext.jar and freenet-ext.jar.sha1 files. Then I ran the script. And after that, I managed to run freenet successfully. Maybe there is something to update in the package.

Nikus commented on 2012-12-05 22:25 (UTC)

I don't manage to start FreeNet : when I execute the following command : sudo su -c "/opt/freenet/ start" freenet I get the following error in the /opt/freenet/wrapper.log file : Exception in thread "main" java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperListener Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperListener Any idea to correct the problem ?

chungy commented on 2012-11-30 20:30 (UTC)

Thanks; I must have overlooked this when making the package earlier. :)

commented on 2012-11-29 17:44 (UTC)

I've had issues with this package. To be more exact, Freenet was giving the following error message: FAILED TO LOAD BOUNCY CASTLE CRYPTO LIBRARY! This means the file "bcprov-jdk15on-147.jar" is not found or not on the classpath. Freenet will not be able to use the newer link setup code or newer format keys. Unless you installed it yourself, THIS IS A SEVERE BUG! I've talked around on the #freenet channel a bit, and figured out I had to do the following to fix it: Add "" to /opt/freenet/wrapper.conf Remove "bcprov-jdk15on-147.jar6860594339305037097.updater.tmp" Download "" and save it in /opt/freenet/ This seems to be an issue with the package, and I have been asked to report it to the package maintainer, so I'd like to nicely ask you if you could check this. Kind Regards, TheLastProject

chungy commented on 2012-11-07 00:16 (UTC)

I've overhauled the package on github here: (you can download a tar.gz from Big changes are: * Changed arch to 'any' * Correct sha256 checksums * Cleaned up package() so building from paths with a space should be safer * Do not used a fixed GID/UID for freenet; let the system figure out what's best * No world-readable/writable permissions in /opt/freenet. Far more secure when there are users you may not want accessing Freenet downloads/bookmarks/etc. * systemd service file (thanks felix!) and removal of the initscript (hopefully won't be missed)

vladimir1922 commented on 2012-10-05 16:25 (UTC)

Won't install. I tough it whas a md5 mismatch, so I downloaded, added the correct md5 (712cde8f51eed472dfee1be027a80b6a), but then it complains: "==> ERROR: Integrity checks (md5) differ in size from the source array."

felixonmars commented on 2012-09-06 06:34 (UTC)

A simple systemd unit file for whoever needs: [Unit] Description=An encrypted network without censorship [Service] Type=forking ExecStart=/bin/sh -c "/bin/su freenet -c '/opt/freenet/ start'" ExecStop=/bin/sh -c "/bin/su freenet -c '/opt/freenet/ stop'" WorkingDirectory=/opt/freenet [Install]

tlvince commented on 2012-07-05 16:38 (UTC)

Updated the PKGBUILD to use sha1sums:

sysfu commented on 2012-07-01 23:26 (UTC)

Same issue with md5sum verification of freenet tarball failing. ==> Validating source files with md5sums... freenet07.tar.gz ... FAILED rc.freenet ... Passed Manual download of freenet07.tar.gz and freenet07.tar.gz.sha1 and manual verification of checksum using sha1sum works properly. No trace of md5 checksum files in Perhaps PKGBUILD needs to be updated to use SHA1 instead of MD5.

mmm commented on 2012-06-26 22:01 (UTC)

md5sum does not fit. For this kind of program it seems suspicious!

salviati commented on 2011-11-30 06:34 (UTC)

@stqn: su -c "./ start" freenet dies eventually with "Could not find the main class: freenet.node.NodeStarter." The daemon script does not report this failure and you simply get "DONE". @ Prometheus: there is no such file /opt/freenet/ It would be pulled by bin/ though. I noticed that official wiki mentions running ./bin/ during the installation, but it's not in PKGBUILD or INSTALL.

commented on 2011-09-23 15:06 (UTC)

Hm looks like my comment should have been targeted at upstream. Sorry :).

commented on 2011-09-23 15:00 (UTC)

Holy sh**!!! I've just discovered today that freenet was running without me knowing... I'm wondering if it has been running since 2 and a half months ago?! Or if it started auto-launching itself only since I installed openjdk a few days ago... *Please* don't install a cron job automatically and silently!

commented on 2011-08-17 09:08 (UTC)

From the official wiki: (q) Is there a way to prevent Freenet from automatically starting every time my computer is booted? (a) On Linux/Unix: Run the script in Freenet/bin/ Could you add this to your PKGBUILD to prevent freenet from starting without the daemon?

commented on 2011-07-05 22:55 (UTC)

Doesn't work (running "sudo rc.d start freenet" says "Done" but doesn't run freenet.) However, downloading freenet from the official site and running "./" does work.

commented on 2011-04-24 22:48 (UTC)

To whoever flagged this out-of-date: this package isn't out of date. You simply need to run /opt/freenet/ when you receive the message saying your node is out of date. Or turn on automatic updating and leave freenet running 24/7.