diff options
author | Martin Holzer <mholzer@gentoo.org> | 2004-01-31 12:34:59 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2004-01-31 12:34:59 +0000 |
commit | 5acc242ff1bd74af9ec497150fac562d2d19c2c0 (patch) | |
tree | b55aad38f9b2df949465399855f9a976314c7ef2 /net-p2p | |
parent | adding RESTRICT="nomirror" and cleanup (diff) | |
download | historical-5acc242ff1bd74af9ec497150fac562d2d19c2c0.tar.gz historical-5acc242ff1bd74af9ec497150fac562d2d19c2c0.tar.bz2 historical-5acc242ff1bd74af9ec497150fac562d2d19c2c0.zip |
cleanup
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/freenet/Manifest | 3 | ||||
-rw-r--r-- | net-p2p/freenet/files/rc.freenet2 | 64 | ||||
-rw-r--r-- | net-p2p/freenet/files/rc.freenet3 | 78 | ||||
-rw-r--r-- | net-p2p/freenet/files/rc.freenet4 | 78 |
4 files changed, 0 insertions, 223 deletions
diff --git a/net-p2p/freenet/Manifest b/net-p2p/freenet/Manifest index 3a6a345154c2..f736cf6ae311 100644 --- a/net-p2p/freenet/Manifest +++ b/net-p2p/freenet/Manifest @@ -2,8 +2,5 @@ MD5 e57bfb0f201634021d50673b97ae1f53 ChangeLog 6652 MD5 830296700ca3e0757345f801a5f47aff freenet-0.5.2.1-r7.ebuild 4542 MD5 169efe0f216ade927538fab48315ecc7 files/conf.freenet 323 MD5 3a391b52e5e7740c7bdafcba7a9ee4d3 files/digest-freenet-0.5.2.1-r7 68 -MD5 2102c07c25f233d96f3ee92f4d075704 files/rc.freenet2 1713 -MD5 f42bcccd602282dd4fad406f9be9b829 files/rc.freenet3 2213 -MD5 c790a3f14dce4b353ab89ed06df54d32 files/rc.freenet4 2218 MD5 15c0d70946cdbbb23f48e9c13823a26b files/rc.freenet5 2215 MD5 4ae956431fc61a4f535d971c2e908478 files/start-freenet.sh 330 diff --git a/net-p2p/freenet/files/rc.freenet2 b/net-p2p/freenet/files/rc.freenet2 deleted file mode 100644 index 611533f25cc3..000000000000 --- a/net-p2p/freenet/files/rc.freenet2 +++ /dev/null @@ -1,64 +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 -S -q -c freenet -p /var/freenet/freenet.pid \ - -m -b -N ${FREENET_NICENESS} -x ${JAVA} -- \ - ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf - eend $? -} - -stop() { - ebegin "Stopping Freenet" - start-stop-daemon --stop --quiet --pidfile /var/freenet/freenet.pid - eend $? -} diff --git a/net-p2p/freenet/files/rc.freenet3 b/net-p2p/freenet/files/rc.freenet3 deleted file mode 100644 index 66e557100fde..000000000000 --- a/net-p2p/freenet/files/rc.freenet3 +++ /dev/null @@ -1,78 +0,0 @@ -#!/sbin/runscript -# Gentoo freenet init.d-script -# -# This script requires the companion script start-freenet.sh to do it's -# job. This script is needed to facilitate full logging of freenet. -# -# Also requires the /etc/conf.d/freenet file to be configured correctly. -# -# Gentoo Maintainer: Brandon Low <lostlogic@gentoo.org> -# Authors: Per Wigren <wigren@home.se> -# Brandon Low <lostlogic@gentoo.org> -# - -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 - # Had to change off of using start-stop-daemon to start it, - # because of suckage. This allows us to log the stdout and - # stderr of freenet. - export JAVA JAVA_ARGS CLASSPATH - echo "XXXXXX" > /var/freenet/freenet.pid - nice -n ${FREENET_NICENESS} su freenet -- /usr/bin/start-freenet.sh \ - > /var/freenet/freenet.pid - sleep 1 - ps ax|grep "^ *$(cat /var/freenet/freenet.pid)" > /dev/null - eend $? -} - -stop() { - ebegin "Stopping Freenet" - start-stop-daemon --stop --quiet --pidfile /var/freenet/freenet.pid - eend $? -} diff --git a/net-p2p/freenet/files/rc.freenet4 b/net-p2p/freenet/files/rc.freenet4 deleted file mode 100644 index f62b0f1faaeb..000000000000 --- a/net-p2p/freenet/files/rc.freenet4 +++ /dev/null @@ -1,78 +0,0 @@ -#!/sbin/runscript -# Gentoo freenet init.d-script -# -# This script requires the companion script start-freenet.sh to do it's -# job. This script is needed to facilitate full logging of freenet. -# -# Also requires the /etc/conf.d/freenet file to be configured correctly. -# -# Gentoo Maintainer: Brandon Low <lostlogic@gentoo.org> -# Authors: Per Wigren <wigren@home.se> -# Brandon Low <lostlogic@gentoo.org> -# - -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 - # Had to change off of using start-stop-daemon to start it, - # because of suckage. This allows us to log the stdout and - # stderr of freenet. - export JAVA JAVA_ARGS CLASSPATH - echo "XXXXXX" > /var/freenet/freenet.pid - nice -n ${FREENET_NICENESS} sudo -u freenet -- /usr/bin/start-freenet.sh \ - > /var/freenet/freenet.pid - sleep 1 - ps ax|grep "^ *$(cat /var/freenet/freenet.pid)" > /dev/null - eend $? -} - -stop() { - ebegin "Stopping Freenet" - start-stop-daemon --stop --quiet --pidfile /var/freenet/freenet.pid - eend $? -} |