From owner-freebsd-ports@FreeBSD.ORG Fri Feb 20 05:21:17 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBF1B16A4E2; Fri, 20 Feb 2004 05:21:17 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F44D43D31; Fri, 20 Feb 2004 05:21:17 -0800 (PST) (envelope-from sw@gegenunendlich.de) Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AuAai-0005mp-00; Fri, 20 Feb 2004 14:21:16 +0100 Received: from [80.142.217.93] (helo=kyuzo.dunkelkammer.void) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1AuAah-0001XG-00; Fri, 20 Feb 2004 14:21:16 +0100 Received: by kyuzo.dunkelkammer.void (Postfix, from userid 1002) id EE49F3F0F; Fri, 20 Feb 2004 14:21:13 +0100 (CET) Date: Fri, 20 Feb 2004 14:21:13 +0100 From: Stefan Walter To: FreeBSD-Ports Message-ID: <20040220132113.GA20127@kyuzo.dunkelkammer.void> Mail-Followup-To: FreeBSD-Ports , lioux@freebsd.org References: <20040219173838.GT68388@seekingfire.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline In-Reply-To: <20040219173838.GT68388@seekingfire.com> Organization: Infinity Approximation Task Force X-PGP-key: http://www.gegenunendlich.de/swalter-rsa.asc X-PGP-fingerprint: 85D8 6A49 22C7 6CD9 B011 5D6A 5691 111B 12B9 E0B3 User-Agent: Mutt/1.5.6i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:bea306e5fe0930b42d4355ca01786db1 cc: lioux@freebsd.org Subject: Re: net/freenet -- how does one use it? (possibly broken) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 13:21:18 -0000 --rJwd6BRFiFCcLxzm Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [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 'start-freenet.sh' 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: >=20 > $ 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 >=20 > 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: >=20 > HOME_DIR=3D${HOME}/.freenet > configure_freenet () { > echo "Configuring FreeNet node" > cd ${HOME_DIR} && > ${JAVAVM_CALL} -jar ./${JAR_START} freenet.node.Main --config "${= @}" > } >=20 > Which don't see right ... I don't have a ~/.freenet, and the jar files > are actually in /usr/local/share/java/jar/freenet.=20 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: >=20 > /usr/local/bin/javavm -jar /usr/local/share/java/jar/freenet/freenet.jar= freenet.node.Main --config >=20 > 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 http://freenet.sourceforge.net/index.php?page=3Dfaq, too. If you're interested in anonymous networks, /usr/ports/net/mute-net might be interesting for you, too. Stefan --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="freenet-config.patch" Content-Transfer-Encoding: quoted-printable --- freenet.old Fri Feb 20 14:04:19 2004 +++ freenet Fri Feb 20 14:06:08 2004 @@ -114,7 +114,7 @@ fi =20 # parse command line parameters -while getopts ":io" COMMAND_LINE_ARGUMENT ; do +while getopts "cio" COMMAND_LINE_ARGUMENT ; do case "${COMMAND_LINE_ARGUMENT}" in c) CONFIGURE=3Dyes --WIyZ46R2i8wDzkSu-- --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQGVAwUBQDYJyVaRERsSueCzAQLwJQv+Lf+2BolrDIEJUYC/kSxKq58OpLeTnkAR jB0PDbGBKwuEozMZV1PEn+WDdGI9wRcbCExtrxJmDAx/1G9BexzLOmhr7Q32eLA5 qbUCnx82EGEJRGkbhR2LDdfjtrhB4u4r7bDaiSlt3gyMS6kmsgbk1XcLS7G3ezBF 01qONwILNYI8pJb0RnvPBVnY97KzqbXAgp+dodxDzdHlWBhTBEKQsa5L1CUAxfxB OrGkiT+vpFq3VyySVbccL9MQlx9aSKhH7h5VR/FxgadzsSc5aWEFhk+aG7/6gyRV qYgGFo7fuKpBih0pGJ0tqL4TLZWMf2F8TJJRk3GXOHvYrxlGtEZHMMml4Dfez5xg fKeJi16Cit/MNLJRY+jJqVc+wztRQ8CktCJJRWh9H1BHT3WVInEh2wMZdyIAo33i ymcsPIAtzenGJQH8EqCzAV/bw0AWEwZZo79kdJhVT3JIRkhBxfrmt9sMbCTtyAZ5 LJL2XGAAMqAlGhVUWeMKT/Ly94jmJveI =RNCN -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm--