diff options
author | Brandon Low <lostlogic@gentoo.org> | 2003-08-06 18:48:26 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2003-08-06 18:48:26 +0000 |
commit | 8d93d2a11ffffdb49bf1130b3dc955b752960990 (patch) | |
tree | dc5568307e03424ccbff52b474f1adc2e1e710b0 /net-p2p/freenet | |
parent | As per the request of yoann the prelude author we are adding a cvs version of... (diff) | |
download | historical-8d93d2a11ffffdb49bf1130b3dc955b752960990.tar.gz historical-8d93d2a11ffffdb49bf1130b3dc955b752960990.tar.bz2 historical-8d93d2a11ffffdb49bf1130b3dc955b752960990.zip |
Reconfiguration better
Diffstat (limited to 'net-p2p/freenet')
-rw-r--r-- | net-p2p/freenet/ChangeLog | 5 | ||||
-rw-r--r-- | net-p2p/freenet/Manifest | 4 | ||||
-rw-r--r-- | net-p2p/freenet/freenet-0.5.2.1-r5.ebuild | 28 |
3 files changed, 22 insertions, 15 deletions
diff --git a/net-p2p/freenet/ChangeLog b/net-p2p/freenet/ChangeLog index db56f4bacab7..d0c680222016 100644 --- a/net-p2p/freenet/ChangeLog +++ b/net-p2p/freenet/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-p2p/freenet # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.28 2003/08/04 01:26:35 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.29 2003/08/06 18:48:21 lostlogic Exp $ + + 06 Aug 2003; Brandon Low <lostlogic@gentoo.org> freenet-0.5.2.1-r5.ebuild: + Make reconfiguration a bit smarter 03 Aug 2003; Brandon Low <lostlogic@gentoo.org> freenet-0.5.2.1-r5.ebuild: STUPID diff --git a/net-p2p/freenet/Manifest b/net-p2p/freenet/Manifest index 1937070d1069..33909fc95b2c 100644 --- a/net-p2p/freenet/Manifest +++ b/net-p2p/freenet/Manifest @@ -1,6 +1,6 @@ MD5 b746e78ed522bfc79b80ac391237c244 freenet-0.5.2.1-r3.ebuild 4447 -MD5 93f27bfb5958a9d2aff70ddc22823c80 freenet-0.5.2.1-r5.ebuild 4561 -MD5 9c6fb8f4f5d4348b39f5e11085d5951d ChangeLog 5867 +MD5 8ef14c8a1b53f141d2f92abbaa9971ca freenet-0.5.2.1-r5.ebuild 4645 +MD5 821beb8928806f57defc4f4e0b7e0edd ChangeLog 5982 MD5 2102c07c25f233d96f3ee92f4d075704 files/rc.freenet2 1713 MD5 f42bcccd602282dd4fad406f9be9b829 files/rc.freenet3 2213 MD5 4ae956431fc61a4f535d971c2e908478 files/start-freenet.sh 330 diff --git a/net-p2p/freenet/freenet-0.5.2.1-r5.ebuild b/net-p2p/freenet/freenet-0.5.2.1-r5.ebuild index 5645f8a04915..c2c8f1f7e9a1 100644 --- a/net-p2p/freenet/freenet-0.5.2.1-r5.ebuild +++ b/net-p2p/freenet/freenet-0.5.2.1-r5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/freenet-0.5.2.1-r5.ebuild,v 1.3 2003/08/04 17:11:25 lostlogic Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/freenet-0.5.2.1-r5.ebuild,v 1.4 2003/08/06 18:48:21 lostlogic Exp $ IUSE="" @@ -99,17 +99,20 @@ pkg_config() { fi if [ ! -f /etc/freenet.conf ] || [ "${YN}" == C ] || [ "${YN}" == "c" ]; then einfo "Preparing to configure freenet..." - # Pre-determine IP address - IP="$(hostname -i)" - declare -i DEFLP - if [ "${RANDOM}" ]; then - DEFLP=${RANDOM}%30000+2000 + if [ -f /etc/freenet.conf ]; then + cp /etc/freenet.conf . else - echo "no random in shell, enter a FNP port number + <ENTER>" - read DEFLP - fi - - cat << EOF > freenet.conf + # Pre-determine IP address + IP="$(hostname -i)" + declare -i DEFLP + if [ "${RANDOM}" ]; then + DEFLP=${RANDOM}%30000+2000 + else + echo "no random in shell, enter a FNP port number + <ENTER>" + read DEFLP + fi + + cat << EOF > freenet.conf ipAddress=${IP} listenPort=${DEFLP} seedFile=/var/freenet/seednodes.ref @@ -119,7 +122,8 @@ diagnosticsPath=/var/freenet/stats routingDir=/var/freenet nodeFile=/var/freenet/node EOF - + fi + CLASSPATH="/usr/lib/freenet/freenet.jar:/usr/lib/freenet/freenet-ext.jar:${CLASSPATH}" $(java-config --java) freenet.node.Main --config mv freenet.conf /etc |