On Tue, Nov 06, 2001 at 09:07:22PM +0100, Robert Bihlmeyer wrote: > I'm packaging 0.4 snapshots for Debian unstable and wrote a short > manpage for the Freenet.client.cli.Main class. I'm attaching it in > case you'd like to incorporate it into your sources (it's GPLd). I'd > be also grateful for any errors/enhancements that you can point out. > How do you handle distribution changes to seedNodes ? I wouldn't want my hard-won custom seedNodes to be overwritten by an apt-get upgrade. Also, this will be updated automatically daily? freenetproject.org can do annoying things with wget, I use this script: #!/bin/bash cd /var/spool/freenet0.4 rm -Rf tmp-download mkdir tmp-download chown browser.browser tmp-download cd tmp-download su browser -c "while ! wget -t 0 -T15 http://www.freenetproject.org/snapshots/freenet-latest.jar; do rm freenet-latest.jar; echo grrrr; done" cd .. mv tmp-download/freenet-latest.jar freenet.jar rm -R tmp-download /etc/ppp/ip-up.d/06freenet0.4
(it's really, really nice that 0.4 loads so fast) Where /etc/ppp/ip-up.d is #! /bin/sh # # /etc/init.d/freenet: Control Freenet node # PATH=$PATH:/sbin # Restart freenet node #echo -n "Starting Freenet 0.4: " killall Kaffe > /dev/null 2>&1 cd /var/spool/freenet0.4 (cat freenet.conf | sed "/^ipAddress=/d"; echo -n "ipAddress="; ifconfig ppp0 | sed -n "s/^.*inet addr:\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\) .*$/\1/p") > 1; mv 1 freenet.conf cd /var/spool/freenet0.4 rm freenet.log su freenet -c touch freenet.log su freenet -c ./run.sh > /dev/tty11 2>&1 /etc/init.d/freenet start > /dev/tty11 2>&1 # start freenet 0.3 too exit 0 The killall Kaffe is rather crude, I'm sure you can do something nicer; Freenet 0.4 absolutely must be restarted on ppp reconnection unless you have a static IP, and the scripts provided don't seem capable of detecting your IP address, so you'll need something like this eventually (with a setting for static IP or get from a given interface). The /etc/init.d/freenet start just restarts the 0.3 node :) > > -- > Robbe We also need a package for GJ's manifest-tools, and ideally the fcptools distributed with freenet 0.4 snapshots should be in a separate package. There are a zillion other scripts which I find massively useful for freenet 0.4, maybe I should package them. -- The road to Tycho is paved with good intentions _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
