net/freenet -- how does one use it? (possibly broken)

Stefan Walter sw at
Fri Feb 20 05:21:18 PST 2004

[Cc'ed lioux, as he's the maintainer of net/freenet]

Tillman Hodgson, 19.02.04, 18:38h CET:

> After installing the freenet port, I'm at a bit of a loss as to how to
> actually /use/ it. The port doesn't install '' which is
> referenced in /usr/local/share/doc/freenet/README. Instead, it appears
> that /usr/local/bin/freenet replaces it (though I might be wrong as I
> haven't gotten it to work you).

/usr/local/bin/freenet is the correct script to run. That's because the
Freenet people assume you just unpack their software into a directory
and run it from there.

> Running that script produces:
> $ freenet
> Usage: /usr/local/bin/freenet [-h] [-i|-o]
> Options:
>   -h  Display this help message
>   -c  Configure FreeNet node
>   -i  Start a FreeNet node
>   -o  Stop a FreeNet node
> Running 'freenet -c' does the same thing, however. Delving into

Yes, you're right. That's a bug in the startup script - the 'c'
parameter isn't recognized. Applying the attached patch to
/usr/local/bin/freenet should make it work.

> /usr/local/bin/freenet (it's a shell script), I notice lines like this:
> HOME_DIR=${HOME}/.freenet
> configure_freenet () {
>   echo "Configuring FreeNet node"
>   cd ${HOME_DIR} &&
>         ${JAVAVM_CALL} -jar ./${JAR_START} freenet.node.Main --config "${@}"
> }
> Which don't see right ... I don't have a ~/.freenet, and the jar files
> are actually in /usr/local/share/java/jar/freenet. 

The startup script creates ~/.freenet for you and places soft links to
the jar files in there, along with the configuration files.

> If I manually do:
>  /usr/local/bin/javavm -jar /usr/local/share/java/jar/freenet/freenet.jar freenet.node.Main --config
> I enter a configuration system. I haven't followed this track because I
> have no idea if I'm on the right track or not.

It's correct.

> Is there some documentation on how to properly install this port that
> I've overlooked? I'm not even sure if I'm supposed to run it as my
> regular user or as root, or how to configure a permanenet node, or ...

It's possible to use it as a regular user, so you should do that - maybe
even as a 'sandbox' user created for that purpose only.

Be sure to read, too.

If you're interested in anonymous networks, /usr/ports/net/mute-net
might be interesting for you, too.

-------------- next part --------------
--- freenet.old	Fri Feb 20 14:04:19 2004
+++ freenet	Fri Feb 20 14:06:08 2004
@@ -114,7 +114,7 @@
 # parse command line parameters
-while getopts ":io" COMMAND_LINE_ARGUMENT ; do
+while getopts "cio" COMMAND_LINE_ARGUMENT ; do
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 650 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list