summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-07-24 18:43:08 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-07-24 18:43:08 +0000
commit8f6498bceaddbb55d9fe3ff54db08b9ecfb2e7b5 (patch)
tree4cdc50872a67abd99d8ef849a28080ed8f5d836c /net-p2p/freenet/files
parentMasking for all arches. (diff)
downloadgentoo-2-8f6498bceaddbb55d9fe3ff54db08b9ecfb2e7b5.tar.gz
gentoo-2-8f6498bceaddbb55d9fe3ff54db08b9ecfb2e7b5.tar.bz2
gentoo-2-8f6498bceaddbb55d9fe3ff54db08b9ecfb2e7b5.zip
Remove extras
Diffstat (limited to 'net-p2p/freenet/files')
-rw-r--r--net-p2p/freenet/files/digest-freenet-0.5.2.1-r21
-rw-r--r--net-p2p/freenet/files/rc.freenet65
2 files changed, 0 insertions, 66 deletions
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
deleted file mode 100644
index a9b4651be0e9..000000000000
--- a/net-p2p/freenet/files/digest-freenet-0.5.2.1-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 59270ee48d889e0be9cae584b67d2743 freenet-0.5.2.1.tar.gz 2118774
diff --git a/net-p2p/freenet/files/rc.freenet b/net-p2p/freenet/files/rc.freenet
deleted file mode 100644
index 3bd803a56712..000000000000
--- a/net-p2p/freenet/files/rc.freenet
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/sbin/runscript
-# Freenet init.d-script
-# Gentoo Maintainer: Brandon Low <lostlogic@gentoo.org>
-# Authors: Per Wigren <wigren@home.se>
-
-depend() {
- need net
-}
-
-check_config() {
- if [ -z "${FREENET_NICENESS}" ] || [ -z "${JAVA_OPTIONS}" ]; then
- eerror "Please set all options in /etc/conf.d/freenet"
- return 1
- fi
- if [ ! -f /etc/freenet.conf ]; then
- eerror "To configure freenet, please run:"
- eerror "# ebuild /usr/portage/net-p2p/freenet/freenet-[version].ebuild"
- return 1
- fi
- return 0
-}
-
-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"
- if [ ! -f /usr/lib/freenet/freenet-ext.jar ]; then
- ewarn "freenet-ext.jar not found. It can be downloaded from"
- ewarn "http://freenetproject.org/snapshots/freenet-ext.jar"
- eend 1
- return 1
- fi
- if [ ! -f /var/freenet/seednodes.ref ]; then
- ewarn "seednodes.ref not found, you can download some seeds"
- ewarn "from http://hawk.freenetproject.org/~freenet4/seednodes.ref"
- eend 1
- return 1
- fi
-
- CLASSPATH=/usr/lib/freenet/freenet.jar:/usr/lib/freenet/freenet-ext.jar:$CLASSPATH
-
- # if Sun JDK set -server option as suggested on mailing list
- if [ ! -z "`${JAVA} -help 2>&1 | grep '[-]server'`" ]; then
- JAVA_ARGS="-server"
- else
- JAVA_ARGS=""
- fi
- JAVA_ARGS="${JAVA_ARGS} ${JAVA_OPTIONS}"
- ulimit -n 4096
- start-stop-daemon --start --quiet --pidfile \
- /var/run/freenet.pid -m --background -N ${FREENET_NICENESS} \
- --exec ${JAVA} -- \
- ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf
- eend $?
-}
-
-stop() {
- ebegin "Stopping Freenet"
- start-stop-daemon --stop --quiet --pidfile /var/run/freenet.pid
- eend $?
-}