summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-07-23 19:39:59 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-07-23 19:39:59 +0000
commit80df483fc23bb22deb0b0af1a337af3f2b47d4e6 (patch)
tree2747a5fddc7c5caf50044935e377d8d60edcf77b /net-p2p/freenet
parentBig cleanup after a little update for the rc-script (diff)
downloadhistorical-80df483fc23bb22deb0b0af1a337af3f2b47d4e6.tar.gz
historical-80df483fc23bb22deb0b0af1a337af3f2b47d4e6.tar.bz2
historical-80df483fc23bb22deb0b0af1a337af3f2b47d4e6.zip
Big cleanup after a little update for the rc-script
Diffstat (limited to 'net-p2p/freenet')
-rw-r--r--net-p2p/freenet/Manifest21
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.51
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.5.0.51
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.5.0.61
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.5.11
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.5.2.1-r11
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.5.2.1-r2 (renamed from net-p2p/freenet/files/digest-freenet-0.5.2.1)0
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.5.2_rc31
-rw-r--r--net-p2p/freenet/files/freenet35
-rw-r--r--net-p2p/freenet/files/rc.freenet3
-rw-r--r--net-p2p/freenet/freenet-0.5.0.5.ebuild68
-rw-r--r--net-p2p/freenet/freenet-0.5.0.6.ebuild68
-rw-r--r--net-p2p/freenet/freenet-0.5.1.ebuild70
-rw-r--r--net-p2p/freenet/freenet-0.5.2.1-r2.ebuild (renamed from net-p2p/freenet/freenet-0.5.2.1-r1.ebuild)2
-rw-r--r--net-p2p/freenet/freenet-0.5.2.1.ebuild76
-rw-r--r--net-p2p/freenet/freenet-0.5.2_rc3.ebuild71
-rw-r--r--net-p2p/freenet/freenet-0.5.ebuild68
17 files changed, 7 insertions, 481 deletions
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-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 b/net-p2p/freenet/files/digest-freenet-0.5.2.1-r2
index a9b4651be0e9..a9b4651be0e9 100644
--- a/net-p2p/freenet/files/digest-freenet-0.5.2.1
+++ b/net-p2p/freenet/files/digest-freenet-0.5.2.1-r2
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 <wigren@home.se>
-
-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 <wigren@home.se>
-# 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 <wigren@home.se>
-# 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-r2.ebuild
index a5889e96b7b3..a256519d7741 100644
--- a/net-p2p/freenet/freenet-0.5.2.1-r1.ebuild
+++ b/net-p2p/freenet/freenet-0.5.2.1-r2.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-r1.ebuild,v 1.3 2003/07/22 16:12:22 lostlogic Exp $
+# $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=""
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 <wigren@home.se>
-# 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!"
-}