From 80df483fc23bb22deb0b0af1a337af3f2b47d4e6 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Wed, 23 Jul 2003 19:39:59 +0000 Subject: Big cleanup after a little update for the rc-script --- net-p2p/freenet/Manifest | 21 +---- net-p2p/freenet/files/digest-freenet-0.5 | 1 - net-p2p/freenet/files/digest-freenet-0.5.0.5 | 1 - net-p2p/freenet/files/digest-freenet-0.5.0.6 | 1 - net-p2p/freenet/files/digest-freenet-0.5.1 | 1 - net-p2p/freenet/files/digest-freenet-0.5.2.1 | 1 - net-p2p/freenet/files/digest-freenet-0.5.2.1-r1 | 1 - net-p2p/freenet/files/digest-freenet-0.5.2.1-r2 | 1 + net-p2p/freenet/files/digest-freenet-0.5.2_rc3 | 1 - net-p2p/freenet/files/freenet | 35 -------- net-p2p/freenet/files/rc.freenet | 3 + net-p2p/freenet/freenet-0.5.0.5.ebuild | 68 ---------------- net-p2p/freenet/freenet-0.5.0.6.ebuild | 68 ---------------- net-p2p/freenet/freenet-0.5.1.ebuild | 70 ---------------- net-p2p/freenet/freenet-0.5.2.1-r1.ebuild | 102 ------------------------ net-p2p/freenet/freenet-0.5.2.1-r2.ebuild | 102 ++++++++++++++++++++++++ net-p2p/freenet/freenet-0.5.2.1.ebuild | 76 ------------------ net-p2p/freenet/freenet-0.5.2_rc3.ebuild | 71 ----------------- net-p2p/freenet/freenet-0.5.ebuild | 68 ---------------- 19 files changed, 109 insertions(+), 583 deletions(-) delete mode 100644 net-p2p/freenet/files/digest-freenet-0.5 delete mode 100644 net-p2p/freenet/files/digest-freenet-0.5.0.5 delete mode 100644 net-p2p/freenet/files/digest-freenet-0.5.0.6 delete mode 100644 net-p2p/freenet/files/digest-freenet-0.5.1 delete mode 100644 net-p2p/freenet/files/digest-freenet-0.5.2.1 delete mode 100644 net-p2p/freenet/files/digest-freenet-0.5.2.1-r1 create mode 100644 net-p2p/freenet/files/digest-freenet-0.5.2.1-r2 delete mode 100644 net-p2p/freenet/files/digest-freenet-0.5.2_rc3 delete mode 100644 net-p2p/freenet/files/freenet delete mode 100644 net-p2p/freenet/freenet-0.5.0.5.ebuild delete mode 100644 net-p2p/freenet/freenet-0.5.0.6.ebuild delete mode 100644 net-p2p/freenet/freenet-0.5.1.ebuild delete mode 100644 net-p2p/freenet/freenet-0.5.2.1-r1.ebuild create mode 100644 net-p2p/freenet/freenet-0.5.2.1-r2.ebuild delete mode 100644 net-p2p/freenet/freenet-0.5.2.1.ebuild delete mode 100644 net-p2p/freenet/freenet-0.5.2_rc3.ebuild delete mode 100644 net-p2p/freenet/freenet-0.5.ebuild diff --git a/net-p2p/freenet/Manifest b/net-p2p/freenet/Manifest index 4d28c3d26760..110dde8a0c13 100644 --- a/net-p2p/freenet/Manifest +++ b/net-p2p/freenet/Manifest @@ -1,20 +1,5 @@ -MD5 0b03cc47b8abad9dfc40aab776959a9d freenet-0.5.0.6.ebuild 2005 -MD5 c590072cc0c6cbe0d3d11299d62cbe78 freenet-0.5.2.1-r1.ebuild 3079 -MD5 39a33e12384fb7d28a92c358e782f942 freenet-0.5.2_rc3.ebuild 2058 -MD5 428ee623760f03deab555da1fcccd7af freenet-0.5.ebuild 1998 -MD5 4a572336e5656ed9e389c1253785d40e freenet-0.5.0.5.ebuild 2005 -MD5 1f41b68bc47197176b77df6c977812e4 freenet-0.5.1.ebuild 2016 -MD5 7008d46e46b0cbbad9e1ad5608a5b216 freenet-0.5.2.1.ebuild 2060 -MD5 c590072cc0c6cbe0d3d11299d62cbe78 freenet-0.5.2.1-r2.ebuild 3079 -MD5 f8ea2f8d3cc0c65e93e3fbb7a418d57a ChangeLog 3568 -MD5 0c3733e4f32eb31b35911b1607a89b26 files/digest-freenet-0.5.0.5 68 -MD5 0d58992419b9ac733891b7d7d5d3bdf3 files/digest-freenet-0.5.0.6 68 -MD5 3a391b52e5e7740c7bdafcba7a9ee4d3 files/digest-freenet-0.5.2.1 68 -MD5 890e052f3e48c07373faf6800fbfbb37 files/digest-freenet-0.5 61 -MD5 4bd090725f69c1d13e2f08134e99f51f files/digest-freenet-0.5.1 66 +MD5 37cc7312e793c474e6f11bf6aceccfeb freenet-0.5.2.1-r2.ebuild 3079 +MD5 4a94f6fa01d3d05042739fd903f0029b ChangeLog 4058 MD5 169efe0f216ade927538fab48315ecc7 files/conf.freenet 323 -MD5 24f25cc59216bf29f6312ecc48491c04 files/freenet 1171 -MD5 3a391b52e5e7740c7bdafcba7a9ee4d3 files/digest-freenet-0.5.2.1-r1 68 MD5 3a391b52e5e7740c7bdafcba7a9ee4d3 files/digest-freenet-0.5.2.1-r2 68 -MD5 7318827f8ff1d596bea432329487ce89 files/digest-freenet-0.5.2_rc3 70 -MD5 a43bae4a7f02244a06f566eb58e870be files/rc.freenet 1728 +MD5 ff721c9a73980dc222ff10c07b53162f files/rc.freenet 1729 diff --git a/net-p2p/freenet/files/digest-freenet-0.5 b/net-p2p/freenet/files/digest-freenet-0.5 deleted file mode 100644 index 9620cb66ba30..000000000000 --- a/net-p2p/freenet/files/digest-freenet-0.5 +++ /dev/null @@ -1 +0,0 @@ -MD5 a45affea456a8a1d0d6d27b2922e9692 freenet-0.5.tgz 1425586 diff --git a/net-p2p/freenet/files/digest-freenet-0.5.0.5 b/net-p2p/freenet/files/digest-freenet-0.5.0.5 deleted file mode 100644 index 4e05c6745a10..000000000000 --- a/net-p2p/freenet/files/digest-freenet-0.5.0.5 +++ /dev/null @@ -1 +0,0 @@ -MD5 4e687bb9b772277ad7d06bf1bfc8e8ed freenet-0.5.0.5.tar.gz 1461536 diff --git a/net-p2p/freenet/files/digest-freenet-0.5.0.6 b/net-p2p/freenet/files/digest-freenet-0.5.0.6 deleted file mode 100644 index f0280ac53a0a..000000000000 --- a/net-p2p/freenet/files/digest-freenet-0.5.0.6 +++ /dev/null @@ -1 +0,0 @@ -MD5 202b1a54b8bdba2732e39f277785c454 freenet-0.5.0.6.tar.gz 1438063 diff --git a/net-p2p/freenet/files/digest-freenet-0.5.1 b/net-p2p/freenet/files/digest-freenet-0.5.1 deleted file mode 100644 index 3cb14de55374..000000000000 --- a/net-p2p/freenet/files/digest-freenet-0.5.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 79752570c8e02f0d11a6f1dc4a750e95 freenet-0.5.1.tar.gz 1819392 diff --git a/net-p2p/freenet/files/digest-freenet-0.5.2.1 b/net-p2p/freenet/files/digest-freenet-0.5.2.1 deleted file mode 100644 index a9b4651be0e9..000000000000 --- a/net-p2p/freenet/files/digest-freenet-0.5.2.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 59270ee48d889e0be9cae584b67d2743 freenet-0.5.2.1.tar.gz 2118774 diff --git a/net-p2p/freenet/files/digest-freenet-0.5.2.1-r1 b/net-p2p/freenet/files/digest-freenet-0.5.2.1-r1 deleted file mode 100644 index a9b4651be0e9..000000000000 --- a/net-p2p/freenet/files/digest-freenet-0.5.2.1-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 59270ee48d889e0be9cae584b67d2743 freenet-0.5.2.1.tar.gz 2118774 diff --git a/net-p2p/freenet/files/digest-freenet-0.5.2.1-r2 b/net-p2p/freenet/files/digest-freenet-0.5.2.1-r2 new file mode 100644 index 000000000000..a9b4651be0e9 --- /dev/null +++ b/net-p2p/freenet/files/digest-freenet-0.5.2.1-r2 @@ -0,0 +1 @@ +MD5 59270ee48d889e0be9cae584b67d2743 freenet-0.5.2.1.tar.gz 2118774 diff --git a/net-p2p/freenet/files/digest-freenet-0.5.2_rc3 b/net-p2p/freenet/files/digest-freenet-0.5.2_rc3 deleted file mode 100644 index a9af4043ca24..000000000000 --- a/net-p2p/freenet/files/digest-freenet-0.5.2_rc3 +++ /dev/null @@ -1 +0,0 @@ -MD5 5144a69f0189273a02322d131f604200 freenet-0.5.2-rc3.tar.gz 2077830 diff --git a/net-p2p/freenet/files/freenet b/net-p2p/freenet/files/freenet deleted file mode 100644 index d3d402f03870..000000000000 --- a/net-p2p/freenet/files/freenet +++ /dev/null @@ -1,35 +0,0 @@ -#!/sbin/runscript -# Freenet init.d-script by Per Wigren - -depend() { - need net -} - -SEEDNODES_REF="http://freenetproject.org/snapshots/seednodes.ref" -FREENET_JAR="http://freenetproject.org/snapshots/freenet-latest.jar" - -start() { - einfo "Fetching latest seednodes.ref..." - mv -f /var/freenet/seednodes.ref /var/freenet/seednodes.ref.old &>/dev/null - wget -O /var/freenet/seednodes.ref -q $SEEDNODES_REF || \ - mv -f /var/freenet/seednodes.ref.old /var/freenet/seednodes.ref - - einfo "Fetching latest freenet.jar..." - mv -f /usr/lib/freenet/freenet.jar /usr/lib/freenet/freenet.jar.old &>/dev/null - wget -O /usr/lib/freenet/freenet.jar -q $FREENET_JAR || \ - mv -f /usr/lib/freenet/freenet.jar.old /usr/lib/freenet/freenet.jar - - ebegin "Starting Freenet" - export CLASSPATH=/usr/lib/freenet/freenet.jar:/usr/lib/freenet/freenet-ext.jar:$CLASSPATH - start-stop-daemon --start --quiet --pidfile /var/run/freenet.pid -m \ - --background \ - --exec $(java-config --java) -- freenet.node.Main -p /etc/freenet.conf - eend $? -} - -stop() { - ebegin "Stopping Freenet" - start-stop-daemon --stop --quiet --pidfile /var/run/freenet.pid - rm -f /var/run/freenet.pid - eend $? -} diff --git a/net-p2p/freenet/files/rc.freenet b/net-p2p/freenet/files/rc.freenet index acda2b819d60..3bd803a56712 100644 --- a/net-p2p/freenet/files/rc.freenet +++ b/net-p2p/freenet/files/rc.freenet @@ -22,6 +22,9 @@ check_config() { start() { JAVA="$(java-config --java)" + #The JVMs don't support NPTL yet, so this is necessary + export LD_ASSUME_KERNEL=2.4.1 + check_config || return 1 ebegin "Starting Freenet now" diff --git a/net-p2p/freenet/freenet-0.5.0.5.ebuild b/net-p2p/freenet/freenet-0.5.0.5.ebuild deleted file mode 100644 index d7dbacc6df56..000000000000 --- a/net-p2p/freenet/freenet-0.5.0.5.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright (c) 2002, Per Wigren -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/freenet-0.5.0.5.ebuild,v 1.2 2003/07/13 20:28:39 aliz Exp $ - -DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" -SRC_URI="mirror://sourceforge/freenet/${P}.tar.gz" -HOMEPAGE="http://freenetproject.org/" -DEPEND="virtual/jdk" -SLOT="0" -KEYWORDS="x86 ~ppc" -LICENSE="GPL-2" -S=${WORKDIR}/${PN} - -src_compile() { - # Set storeSize to a 3rd of the available space on /var - # but not bigger that 2GB. - VARSZ=$(df -mP /var|tail -n1|awk '{print $4}') - if [ $VARSZ -gt 4096 ]; then - STORSZ=2147483648 - else - let STORSZ=($VARSZ/3)*1024*1024 - fi - - # Create a default freenet.conf - ( echo ipAddress=$(hostname) - echo listenPort=$(let PORT=($RANDOM%30000)+9000; echo $PORT) - echo seedFile=/var/freenet/seednodes.ref - echo storeFile=/var/freenet/store - echo storeSize=$STORSZ - echo nodeFile=/var/freenet/node - echo diagnosticsPath=/var/freenet/stats - echo logLevel=normal - echo logFile=/var/log/freenet.log - echo maxHopsToLive=25 - echo fproxy.class=freenet.client.http.FproxyServlet - echo fproxy.port=8888 - echo fproxy.insertHtl=25 - echo fproxy.requestHtl=25 - echo fproxy.params.filter=false - echo nodestatus.class=freenet.client.http.NodeStatusServlet - echo nodestatus.port=8889 - echo logInboundContacts=true - echo logOutboundContacts=true - echo logInboundRequests=true - ) >freenet.conf -} - -src_install() { - dodir /var/freenet/stats - - insinto /usr/lib/freenet - doins freenet.jar freenet-ext.jar - - insinto /etc - doins freenet.conf - - exeinto /etc/init.d - doexe ${FILESDIR}/freenet -} - -pkg_postinstall () { - einfo "Please change /etc/freenet.conf according to your needs!" -} - -pkg_postrm() { - einfo "Please remove /var/freenet manually if you are't going to" - einfo "continue to use Freenet on this machine!" -} diff --git a/net-p2p/freenet/freenet-0.5.0.6.ebuild b/net-p2p/freenet/freenet-0.5.0.6.ebuild deleted file mode 100644 index 81afa44e2f12..000000000000 --- a/net-p2p/freenet/freenet-0.5.0.6.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright (c) 2002, Per Wigren -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/freenet-0.5.0.6.ebuild,v 1.2 2003/07/13 20:28:39 aliz Exp $ - -DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" -SRC_URI="mirror://sourceforge/freenet/${P}.tar.gz" -HOMEPAGE="http://freenetproject.org/" -DEPEND="virtual/jdk" -SLOT="0" -KEYWORDS="x86 ~ppc" -LICENSE="GPL-2" -S=${WORKDIR}/${PN} - -src_compile() { - # Set storeSize to a 3rd of the available space on /var - # but not bigger that 2GB. - VARSZ=$(df -mP /var|tail -n1|awk '{print $4}') - if [ $VARSZ -gt 4096 ]; then - STORSZ=2147483648 - else - let STORSZ=($VARSZ/3)*1024*1024 - fi - - # Create a default freenet.conf - ( echo ipAddress=$(hostname) - echo listenPort=$(let PORT=($RANDOM%30000)+9000; echo $PORT) - echo seedFile=/var/freenet/seednodes.ref - echo storeFile=/var/freenet/store - echo storeSize=$STORSZ - echo nodeFile=/var/freenet/node - echo diagnosticsPath=/var/freenet/stats - echo logLevel=normal - echo logFile=/var/log/freenet.log - echo maxHopsToLive=25 - echo fproxy.class=freenet.client.http.FproxyServlet - echo fproxy.port=8888 - echo fproxy.insertHtl=25 - echo fproxy.requestHtl=25 - echo fproxy.params.filter=false - echo nodestatus.class=freenet.client.http.NodeStatusServlet - echo nodestatus.port=8889 - echo logInboundContacts=true - echo logOutboundContacts=true - echo logInboundRequests=true - ) >freenet.conf -} - -src_install() { - dodir /var/freenet/stats - - insinto /usr/lib/freenet - doins freenet.jar freenet-ext.jar - - insinto /etc - doins freenet.conf - - exeinto /etc/init.d - doexe ${FILESDIR}/freenet -} - -pkg_postinstall () { - einfo "Please change /etc/freenet.conf according to your needs!" -} - -pkg_postrm() { - einfo "Please remove /var/freenet manually if you are't going to" - einfo "continue to use Freenet on this machine!" -} diff --git a/net-p2p/freenet/freenet-0.5.1.ebuild b/net-p2p/freenet/freenet-0.5.1.ebuild deleted file mode 100644 index 361b32c5d593..000000000000 --- a/net-p2p/freenet/freenet-0.5.1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# 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.1.ebuild,v 1.2 2003/07/13 20:28:39 aliz Exp $ - -DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" -SRC_URI="mirror://sourceforge/freenet/${P}.tar.gz" -HOMEPAGE="http://freenetproject.org/" -DEPEND="virtual/jdk" -SLOT="0" -KEYWORDS="x86 ~ppc" -LICENSE="GPL-2" -S=${WORKDIR}/${PN} - -src_compile() { - # Set storeSize to a 3rd of the available space on /var - # but not bigger that 2GB. - VARSZ=$(df -mP /var|tail -n1|awk '{print $4}') - if [ $VARSZ -gt 4096 ]; then - STORSZ=2147483648 - else - let STORSZ=($VARSZ/3)*1024*1024 - fi - - # Create a default freenet.conf - ( echo ipAddress=$(hostname) - echo listenPort=$(let PORT=($RANDOM%30000)+9000; echo $PORT) - echo seedFile=/var/freenet/seednodes.ref - echo storeFile=/var/freenet/store - echo storeSize=$STORSZ - echo nodeFile=/var/freenet/node - echo diagnosticsPath=/var/freenet/stats - echo logLevel=normal - echo logFile=/var/log/freenet.log - echo maxHopsToLive=25 - echo fproxy.class=freenet.client.http.FproxyServlet - echo fproxy.port=8888 - echo fproxy.insertHtl=25 - echo fproxy.requestHtl=25 - echo fproxy.params.filter=false - echo nodestatus.class=freenet.client.http.NodeStatusServlet - echo nodestatus.port=8889 - echo logInboundContacts=true - echo logOutboundContacts=true - echo logInboundRequests=true - ) >freenet.conf -} - -src_install() { - dodoc README - - dodir /var/freenet/stats - - insinto /usr/lib/freenet - doins freenet.jar freenet-ext.jar - - insinto /etc - doins freenet.conf - - exeinto /etc/init.d - doexe ${FILESDIR}/freenet -} - -pkg_postinstall () { - einfo "Please change /etc/freenet.conf according to your needs!" -} - -pkg_postrm() { - einfo "Please remove /var/freenet manually if you are't going to" - einfo "continue to use Freenet on this machine!" -} diff --git a/net-p2p/freenet/freenet-0.5.2.1-r1.ebuild b/net-p2p/freenet/freenet-0.5.2.1-r1.ebuild deleted file mode 100644 index a5889e96b7b3..000000000000 --- a/net-p2p/freenet/freenet-0.5.2.1-r1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# 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-r1.ebuild,v 1.3 2003/07/22 16:12:22 lostlogic Exp $ - -IUSE="" - -S=${WORKDIR}/${PN} - -DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" -SRC_URI="mirror://sourceforge/freenet/${P}.tar.gz" -HOMEPAGE="http://freenetproject.org/" - -SLOT="0" -KEYWORDS="x86 ~ppc" -LICENSE="GPL-2" - -DEPEND="virtual/jre - >=sys-apps/sed-4" - -src_install() { - dodoc README - - dodir /var/freenet/stats /var/freenet/store - keepdir /var/freenet/stats /var/freenet/store - - insinto /usr/lib/freenet - doins freenet.jar freenet-ext.jar - - insinto /etc/conf.d - newins ${FILESDIR}/conf.freenet freenet - - exeinto /etc/init.d - newexe ${FILESDIR}/rc.freenet freenet -} - -pkg_postinst() { - einfo "Congratulations on merging freenet, please run" - einfo "# ebuild ${EBUILD} config" - einfo "to update freenet to the latest jars and seednodes." - einfo "This step is also necessary to configure freenet for" - einfo "first use. You may also run this step again at any time" - einfo "to get any updates available to freenet" -} - -pkg_postrm() { - if [ -z has_version ]; then - einfo "Please remove /var/freenet manually if you are't going to" - einfo "continue to use Freenet on this machine!" - fi -} - -pkg_config() { - YN="X" - while [ "${YN}" != "y" -a "${YN}" != "Y" -a "${YN}" != "n" -a "${YN}" != "N" -a "${YN}" != "" ]; do - echo "Would you like to update freenet files now? [Y/n]" - read YN - done - if [ -z "$(echo ${YN}|sed -e s/y//i)" ];then - wget http://freenetproject.org/snapshots/freenet-latest.jar -O /usr/lib/freenet/freenet.jar - wget http://freenetproject.org/snapshots/seednodes.ref -O /var/freenet/seednodes.ref - touch -d "1/1/1970" /var/freenet/seednodes.ref - fi - - if [ ! -f /etc/freenet.conf ]; then - einfo "Preparing to configure freenet..." - # 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 + " - read DEFLP - fi - - cat << EOF > freenet.conf -ipAddress=${IP} -listenPort=${DEFLP} -seedFile=/var/freenet/seednodes.ref -logFile=/var/log/freenet.log -storeFile=/var/freenet/store -diagnosticsPath=/var/freenet/stats -routingDir=/var/freenet -nodeFile=/var/freenet/node -EOF - - CLASSPATH="/usr/lib/freenet/freenet.jar:/usr/lib/freenet/freenet-ext.jar:${CLASSPATH}" - $(java-config --java) freenet.node.Main --config - mv freenet.conf /etc - sed -i -e "s/^%\(ipAddress\)/\1/" \ - -e "s/^%\(listenPort\)/\1/" \ - -e "s/^%\(seedFile\)/\1/" \ - -e "s/^%\(logFile\)/\1/" \ - -e "s/^%\(storeFile\)/\1/" \ - -e "s/^%\(diagnosticsPath\)/\1/" \ - -e "s/^%\(routingDir\)/\1/" \ - -e "s/^%\(nodeFile\)/\1/" /etc/freenet.conf - - fi - einfo "Congratulations, freenet is configured and up to date" - einfo "use '/etc/init.d/freenet start' to start it" -} diff --git a/net-p2p/freenet/freenet-0.5.2.1-r2.ebuild b/net-p2p/freenet/freenet-0.5.2.1-r2.ebuild new file mode 100644 index 000000000000..a256519d7741 --- /dev/null +++ b/net-p2p/freenet/freenet-0.5.2.1-r2.ebuild @@ -0,0 +1,102 @@ +# 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-r2.ebuild,v 1.1 2003/07/23 19:39:53 lostlogic Exp $ + +IUSE="" + +S=${WORKDIR}/${PN} + +DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" +SRC_URI="mirror://sourceforge/freenet/${P}.tar.gz" +HOMEPAGE="http://freenetproject.org/" + +SLOT="0" +KEYWORDS="x86 ~ppc" +LICENSE="GPL-2" + +DEPEND="virtual/jre + >=sys-apps/sed-4" + +src_install() { + dodoc README + + dodir /var/freenet/stats /var/freenet/store + keepdir /var/freenet/stats /var/freenet/store + + insinto /usr/lib/freenet + doins freenet.jar freenet-ext.jar + + insinto /etc/conf.d + newins ${FILESDIR}/conf.freenet freenet + + exeinto /etc/init.d + newexe ${FILESDIR}/rc.freenet freenet +} + +pkg_postinst() { + einfo "Congratulations on merging freenet, please run" + einfo "# ebuild ${EBUILD} config" + einfo "to update freenet to the latest jars and seednodes." + einfo "This step is also necessary to configure freenet for" + einfo "first use. You may also run this step again at any time" + einfo "to get any updates available to freenet" +} + +pkg_postrm() { + if [ -z has_version ]; then + einfo "Please remove /var/freenet manually if you are't going to" + einfo "continue to use Freenet on this machine!" + fi +} + +pkg_config() { + YN="X" + while [ "${YN}" != "y" -a "${YN}" != "Y" -a "${YN}" != "n" -a "${YN}" != "N" -a "${YN}" != "" ]; do + echo "Would you like to update freenet files now? [Y/n]" + read YN + done + if [ -z "$(echo ${YN}|sed -e s/y//i)" ];then + wget http://freenetproject.org/snapshots/freenet-latest.jar -O /usr/lib/freenet/freenet.jar + wget http://freenetproject.org/snapshots/seednodes.ref -O /var/freenet/seednodes.ref + touch -d "1/1/1970" /var/freenet/seednodes.ref + fi + + if [ ! -f /etc/freenet.conf ]; then + einfo "Preparing to configure freenet..." + # 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 + " + read DEFLP + fi + + cat << EOF > freenet.conf +ipAddress=${IP} +listenPort=${DEFLP} +seedFile=/var/freenet/seednodes.ref +logFile=/var/log/freenet.log +storeFile=/var/freenet/store +diagnosticsPath=/var/freenet/stats +routingDir=/var/freenet +nodeFile=/var/freenet/node +EOF + + CLASSPATH="/usr/lib/freenet/freenet.jar:/usr/lib/freenet/freenet-ext.jar:${CLASSPATH}" + $(java-config --java) freenet.node.Main --config + mv freenet.conf /etc + sed -i -e "s/^%\(ipAddress\)/\1/" \ + -e "s/^%\(listenPort\)/\1/" \ + -e "s/^%\(seedFile\)/\1/" \ + -e "s/^%\(logFile\)/\1/" \ + -e "s/^%\(storeFile\)/\1/" \ + -e "s/^%\(diagnosticsPath\)/\1/" \ + -e "s/^%\(routingDir\)/\1/" \ + -e "s/^%\(nodeFile\)/\1/" /etc/freenet.conf + + fi + einfo "Congratulations, freenet is configured and up to date" + einfo "use '/etc/init.d/freenet start' to start it" +} diff --git a/net-p2p/freenet/freenet-0.5.2.1.ebuild b/net-p2p/freenet/freenet-0.5.2.1.ebuild deleted file mode 100644 index cf99785057a6..000000000000 --- a/net-p2p/freenet/freenet-0.5.2.1.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# 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.ebuild,v 1.1 2003/07/21 06:50:30 raker Exp $ - -IUSE="" - -S=${WORKDIR}/${PN} - -DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" -SRC_URI="mirror://sourceforge/freenet/${P}.tar.gz" -HOMEPAGE="http://freenetproject.org/" - -SLOT="0" -KEYWORDS="~x86 ~ppc" -LICENSE="GPL-2" - -DEPEND="virtual/jdk" - -src_compile() { - # Set storeSize to a 3rd of the available space on /var - # but not bigger that 2GB. - VARSZ=$(df -mP /var|tail -n1|awk '{print $4}') - if [ $VARSZ -gt 4096 ]; then - STORSZ=2147483648 - else - let STORSZ=($VARSZ/3)*1024*1024 - fi - - # Create a default freenet.conf - ( echo ipAddress=$(hostname) - echo listenPort=$(let PORT=($RANDOM%30000)+9000; echo $PORT) - echo seedFile=/var/freenet/seednodes.ref - echo storeFile=/var/freenet/store - echo storeSize=$STORSZ - echo nodeFile=/var/freenet/node - echo diagnosticsPath=/var/freenet/stats - echo logLevel=normal - echo logFile=/var/log/freenet.log - echo maxHopsToLive=25 - echo fproxy.class=freenet.client.http.FproxyServlet - echo fproxy.port=8888 - echo fproxy.insertHtl=25 - echo fproxy.requestHtl=25 - echo fproxy.params.filter=false - echo nodestatus.class=freenet.client.http.NodeStatusServlet - echo nodestatus.port=8889 - echo logInboundContacts=true - echo logOutboundContacts=true - echo logInboundRequests=true - ) >freenet.conf -} - -src_install() { - dodoc README - - dodir /var/freenet/stats - keepdir /var/freenet/stats - - insinto /usr/lib/freenet - doins freenet.jar freenet-ext.jar - - insinto /etc - doins freenet.conf - - exeinto /etc/init.d - doexe ${FILESDIR}/freenet -} - -pkg_postinstall () { - einfo "Please change /etc/freenet.conf according to your needs!" -} - -pkg_postrm() { - einfo "Please remove /var/freenet manually if you are't going to" - einfo "continue to use Freenet on this machine!" -} diff --git a/net-p2p/freenet/freenet-0.5.2_rc3.ebuild b/net-p2p/freenet/freenet-0.5.2_rc3.ebuild deleted file mode 100644 index cca9cb937c9a..000000000000 --- a/net-p2p/freenet/freenet-0.5.2_rc3.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# 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_rc3.ebuild,v 1.1 2003/07/10 18:28:21 lostlogic Exp $ - -DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" -SRC_URI="mirror://sourceforge/freenet/${P/_/-}.tar.gz" -HOMEPAGE="http://freenetproject.org/" -DEPEND="virtual/jdk" -SLOT="0" -KEYWORDS="~x86 ~ppc" -LICENSE="GPL-2" -S=${WORKDIR}/${PN} - -src_compile() { - # Set storeSize to a 3rd of the available space on /var - # but not bigger that 2GB. - VARSZ=$(df -mP /var|tail -n1|awk '{print $4}') - if [ $VARSZ -gt 4096 ]; then - STORSZ=2147483648 - else - let STORSZ=($VARSZ/3)*1024*1024 - fi - - # Create a default freenet.conf - ( echo ipAddress=$(hostname) - echo listenPort=$(let PORT=($RANDOM%30000)+9000; echo $PORT) - echo seedFile=/var/freenet/seednodes.ref - echo storeFile=/var/freenet/store - echo storeSize=$STORSZ - echo nodeFile=/var/freenet/node - echo diagnosticsPath=/var/freenet/stats - echo logLevel=normal - echo logFile=/var/log/freenet.log - echo maxHopsToLive=25 - echo fproxy.class=freenet.client.http.FproxyServlet - echo fproxy.port=8888 - echo fproxy.insertHtl=25 - echo fproxy.requestHtl=25 - echo fproxy.params.filter=false - echo nodestatus.class=freenet.client.http.NodeStatusServlet - echo nodestatus.port=8889 - echo logInboundContacts=true - echo logOutboundContacts=true - echo logInboundRequests=true - ) >freenet.conf -} - -src_install() { - dodoc README - - dodir /var/freenet/stats - keepdir /var/freenet/stats - - insinto /usr/lib/freenet - doins freenet.jar freenet-ext.jar - - insinto /etc - doins freenet.conf - - exeinto /etc/init.d - doexe ${FILESDIR}/freenet -} - -pkg_postinstall () { - einfo "Please change /etc/freenet.conf according to your needs!" -} - -pkg_postrm() { - einfo "Please remove /var/freenet manually if you are't going to" - einfo "continue to use Freenet on this machine!" -} diff --git a/net-p2p/freenet/freenet-0.5.ebuild b/net-p2p/freenet/freenet-0.5.ebuild deleted file mode 100644 index 9d73b93710e3..000000000000 --- a/net-p2p/freenet/freenet-0.5.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright (c) 2002, Per Wigren -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/freenet-0.5.ebuild,v 1.2 2003/07/13 20:28:39 aliz Exp $ - -DESCRIPTION="large-scale peer-to-peer network that creates a massive virtual information store open to anyone" -SRC_URI="mirror://sourceforge/freenet/${P}.tgz" -HOMEPAGE="http://freenetproject.org/" -DEPEND="virtual/jdk" -SLOT="0" -KEYWORDS="x86 ~ppc" -LICENSE="GPL-2" -S=${WORKDIR}/${PN} - -src_compile() { - # Set storeSize to a 3rd of the available space on /var - # but not bigger that 2GB. - VARSZ=$(df -mP /var|tail -n1|awk '{print $4}') - if [ $VARSZ -gt 4096 ]; then - STORSZ=2147483648 - else - let STORSZ=($VARSZ/3)*1024*1024 - fi - - # Create a default freenet.conf - ( echo ipAddress=$(hostname) - echo listenPort=$(let PORT=($RANDOM%30000)+9000; echo $PORT) - echo seedFile=/var/freenet/seednodes.ref - echo storeFile=/var/freenet/store - echo storeSize=$STORSZ - echo nodeFile=/var/freenet/node - echo diagnosticsPath=/var/freenet/stats - echo logLevel=normal - echo logFile=/var/log/freenet.log - echo maxHopsToLive=25 - echo fproxy.class=freenet.client.http.FproxyServlet - echo fproxy.port=8888 - echo fproxy.insertHtl=25 - echo fproxy.requestHtl=25 - echo fproxy.params.filter=false - echo nodestatus.class=freenet.client.http.NodeStatusServlet - echo nodestatus.port=8889 - echo logInboundContacts=true - echo logOutboundContacts=true - echo logInboundRequests=true - ) >freenet.conf -} - -src_install() { - dodir /var/freenet/stats - - insinto /usr/lib/freenet - doins freenet.jar freenet-ext.jar - - insinto /etc - doins freenet.conf - - exeinto /etc/init.d - doexe ${FILESDIR}/freenet -} - -pkg_postinstall () { - einfo "Please change /etc/freenet.conf according to your needs!" -} - -pkg_postrm() { - einfo "Please remove /var/freenet manually if you are't going to" - einfo "continue to use Freenet on this machine!" -} -- cgit v1.2.3-65-gdbad