summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2002-10-29 05:02:52 +0000
committerMike Frysinger <vapier@gentoo.org>2002-10-29 05:02:52 +0000
commit0e6a9001ad8ac0f1140fa13d8dc701c86bd0ed7a (patch)
tree4a2f5df0f0c0da36878aa1c19232ddaf56bf24ca /net-p2p/freenet
parentCleanup/update per #9830 (diff)
downloadgentoo-2-0e6a9001ad8ac0f1140fa13d8dc701c86bd0ed7a.tar.gz
gentoo-2-0e6a9001ad8ac0f1140fa13d8dc701c86bd0ed7a.tar.bz2
gentoo-2-0e6a9001ad8ac0f1140fa13d8dc701c86bd0ed7a.zip
Fix for #9821 and bump for #9830
Diffstat (limited to 'net-p2p/freenet')
-rw-r--r--net-p2p/freenet/ChangeLog18
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.51
-rw-r--r--net-p2p/freenet/files/digest-freenet-200206211
-rw-r--r--net-p2p/freenet/files/update-freenet17
-rw-r--r--net-p2p/freenet/freenet-0.5.ebuild68
-rw-r--r--net-p2p/freenet/freenet-20020621.ebuild74
6 files changed, 79 insertions, 100 deletions
diff --git a/net-p2p/freenet/ChangeLog b/net-p2p/freenet/ChangeLog
index 849158fee352..3d7b9b67304e 100644
--- a/net-p2p/freenet/ChangeLog
+++ b/net-p2p/freenet/ChangeLog
@@ -1,19 +1,22 @@
# ChangeLog for net-p2p/freenet
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.5 2002/07/26 05:10:54 gerk Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.6 2002/10/29 04:58:42 vapier Exp $
+
+*freenet-0.5 (28 Oct 2002)
+
+ 28 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
+ Bumped freenet via #9830
+
+*freenet-20020621.ebuild (21 Jun 2002)
24 Jul 2002; Mark Guertin <gerk@gentoo.org> :
Added ppc to keywords
26 Jun 2002; Thilo Bangert <bangert@gentoo.org> :
-
moved to net-p2p
-*freenet-20020621.ebuild ( 21 Jun 2002 )
-
15 Jul 2002; J.Alberto Su�rez L. <bass@gentoo.org> freenet-20020621.ebuild:
- Added a note about unemerge problems with updated versions bug
- #4744.
+ Added a note about unemerge problems with updated versions bug #4744.
When you update, the files in /var/freenet are more recents
that the ebuils files. The ebuild can remove it but I think that is
more secure for the user do it manually.
@@ -21,10 +24,9 @@
20 Jun 2002; J.Alberto Su�rez L. <bass@gentoo.org> freenet-20020621.ebuild:
Bumped version, and added note that explain how install the newest version.
-*freenet-20020214.ebuild ( 18 Feb 2002 )
+*freenet-20020214.ebuild (18 Feb 2002)
18 Feb 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ChangeLog files/digest-freenet-20020214 files/freenet files/update-freenet:
-
Freenet is a large-scale peer-to-peer network which pools the power of
member computers around the world to create a massive virtual information
store open to anyone to freely publish or view information of all kinds.
diff --git a/net-p2p/freenet/files/digest-freenet-0.5 b/net-p2p/freenet/files/digest-freenet-0.5
new file mode 100644
index 000000000000..9620cb66ba30
--- /dev/null
+++ b/net-p2p/freenet/files/digest-freenet-0.5
@@ -0,0 +1 @@
+MD5 a45affea456a8a1d0d6d27b2922e9692 freenet-0.5.tgz 1425586
diff --git a/net-p2p/freenet/files/digest-freenet-20020621 b/net-p2p/freenet/files/digest-freenet-20020621
deleted file mode 100644
index ff2d2f062e36..000000000000
--- a/net-p2p/freenet/files/digest-freenet-20020621
+++ /dev/null
@@ -1 +0,0 @@
-MD5 e65a6aae2c89e82291976ecd529ab4fc freenet-20020621.tgz 1063350
diff --git a/net-p2p/freenet/files/update-freenet b/net-p2p/freenet/files/update-freenet
deleted file mode 100644
index a04833ab5eeb..000000000000
--- a/net-p2p/freenet/files/update-freenet
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-echo "Upgrading Freenet-server..."
-cd /usr/lib/freenet
-rm -f freenet-latest.jar
-wget http://freenetproject.org/snapshots/freenet-latest.jar && \
- mv -f freenet-latest.jar freenet.jar && \
- echo "freenet.jar upgraded."
-
-echo "Updating seednodes..."
-cd /var/freenet
-rm -f seednodes.ref
-wget http://hawk.freenetproject.org/~freenet4/seednodes.ref && \
- echo "seednodes.ref updated."
-
-echo "Restart Freenet to run the new version."
-
diff --git a/net-p2p/freenet/freenet-0.5.ebuild b/net-p2p/freenet/freenet-0.5.ebuild
new file mode 100644
index 000000000000..ed652bd9dbd2
--- /dev/null
+++ b/net-p2p/freenet/freenet-0.5.ebuild
@@ -0,0 +1,68 @@
+# 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.1 2002/10/29 05:02:52 vapier 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!"
+}
diff --git a/net-p2p/freenet/freenet-20020621.ebuild b/net-p2p/freenet/freenet-20020621.ebuild
deleted file mode 100644
index d5fca6ced2cc..000000000000
--- a/net-p2p/freenet/freenet-20020621.ebuild
+++ /dev/null
@@ -1,74 +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-20020621.ebuild,v 1.7 2002/10/24 23:23:45 blizzy Exp $
-
-S=${WORKDIR}/${P}
-DESCRIPTION="Freenet server"
-SRC_URI="http://freenetproject.org/snapshots/${P}.tgz"
-HOMEPAGE="http://freenetproject.org"
-DEPEND="virtual/jdk"
-SLOT="0"
-KEYWORDS="x86 ppc"
-LICENSE="GPL"
-
-src_compile () {
- cd ${S}
- # Set storeSize to a 3rd of the available space on /var
- VARSZ=$(df -m /var|tail -n1|awk '{print $4}')
- if [ $VARSZ -gt 2048 ]; then
- STORSZ=1073741824
- 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 lib/freenet.jar lib/freenet-ext.jar
-
- insinto /etc
- doins freenet.conf
-
- exeinto /etc/init.d
- doexe ${FILESDIR}/freenet
-
- dosbin ${FILESDIR}/update-freenet
-}
-
-pkg_postinstall () {
- einfo "freenet is built every night, but we cannot guarantee the"
- einfo "integrity of the files with our current Portage version."
- einfo "Use \"update-freenet\" to update your version of freenet."
-}
-
-pkg_postrm () {
- einfo "Note that if updates freenat after emerge, the /var/freenet"
- einfo "dir don't is removed in unemerge. Please do it manually"
- einfo "(rm -rf /var/freenet) if you want it."
-}