summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2003-08-12 18:52:35 +0000
committerCaleb Tennis <caleb@gentoo.org>2003-08-12 18:52:35 +0000
commit01a5de0471d16c5edcc29e1f6af5b3cbbd5c0073 (patch)
tree4f368f9920bb9e42377e802321fffdf195725adc /net-p2p/mldonkey
parentFixed SRC_URI for ethereal (diff)
downloadgentoo-2-01a5de0471d16c5edcc29e1f6af5b3cbbd5c0073.tar.gz
gentoo-2-01a5de0471d16c5edcc29e1f6af5b3cbbd5c0073.tar.bz2
gentoo-2-01a5de0471d16c5edcc29e1f6af5b3cbbd5c0073.zip
minor fixes
Diffstat (limited to 'net-p2p/mldonkey')
-rw-r--r--net-p2p/mldonkey/files/mldonkey.confd8
-rw-r--r--net-p2p/mldonkey/files/mldonkey.initd71
2 files changed, 18 insertions, 61 deletions
diff --git a/net-p2p/mldonkey/files/mldonkey.confd b/net-p2p/mldonkey/files/mldonkey.confd
index 60c35b082fa8..b2205ebcd27f 100644
--- a/net-p2p/mldonkey/files/mldonkey.confd
+++ b/net-p2p/mldonkey/files/mldonkey.confd
@@ -1,4 +1,4 @@
-# config file for mldonkey control script
+# Config file for /etc/init.d/mldonkey
# owner of mlnet process (don't change, must be existing)
MLUSER="p2p"
@@ -9,11 +9,17 @@ MLHOME="/home/p2p"
# subdir if any (will be created, if not existing)
MLDIR=".mldonkey"
+# logfile (/dev/null for nowhere)
+MLLOG="/var/log/mldonkey.log"
+
# bandwidth control, values in kb/s
MLLOWDOWN="6"
MLLOWUP="2"
MLHIGHDOWN="30"
MLHIGHUP="10"
+# nice level, 0<x<19, more nice -> less cpuspeed consumed
+MLNICE="19"
+
# port for webinterface, usually 4080
MLPORT="4080"
diff --git a/net-p2p/mldonkey/files/mldonkey.initd b/net-p2p/mldonkey/files/mldonkey.initd
index b7e45b71f118..cc3d2f6bd36a 100644
--- a/net-p2p/mldonkey/files/mldonkey.initd
+++ b/net-p2p/mldonkey/files/mldonkey.initd
@@ -1,60 +1,11 @@
-#!/sbin/runscript
-
-opts="start stop restart slow fast"
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting mldonkey"
- if [ ! -d ${MLHOME}/${MLDIR} ]
- then
- einfo "Directory ${MLHOME}/${MLDIR} not existing, trying to create..."
- su ${MLUSER} -c "mkdir ${MLHOME}/${MLDIR}"
- if [ ! -d ${MLHOME}/${MLDIR} ]
- then
- eerror "Directory ${MLHOME}/${MLDIR} could not be created!"
- return 1
- fi
- einfo "...ok!"
- fi
- cd ${MLHOME}/${MLDIR}/
- start-stop-daemon --quiet --start \
- --exec /usr/bin/mlnet -x /usr/bin/mlnet -c ${MLUSER} &>/dev/null &
- eend $?
-}
-
-stop() {
- ebegin "Stopping mldonkey - please wait"
- wget http://$DONKSRV:4080/submit?q=close_fds -q -O - > /dev/null
- wget http://$DONKSRV:4080/submit?q=save -q -O -> /dev/null
- sleep 10
- start-stop-daemon --stop -x /usr/bin/mlnet
- eend $?
-}
-
-restart() {
- svc_stop
- svc_start
-}
-
-slow() {
- ebegin "Reducing bandwidth to ${MLLOWDOWN}k/${MLLOWUP}k"
-
- wget http://localhost:${MLPORT}/submit?q=set+max_hard_download_rate+${MLLOWDOWN} -q -O - > /dev/null
-
- wget http://localhost:${MLPORT}/submit?q=set+max_hard_upload_rate+${MLLOWUP} -q -O - > /dev/null
-
- eend $?
-}
-
-fast() {
- ebegin "Increasing bandwidth to ${MLHIGHDOWN}k/${MLHIGHUP}k"
-
- wget http://localhost:${MLPORT}/submit?q=set+max_hard_download_rate+${MLHIGHDOWN} -q -O - > /dev/null
-
- wget http://localhost:${MLPORT}/submit?q=set+max_hard_upload_rate+${MLHIGHUP} -q -O - > /dev/null
-
- eend $?
-}
+[KDE Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Exec=kbedic
+Icon=/usr/share/kbedic/kbedic_icon_mini.xpm
+Name=KBEDic
+GenericName=English - Bulgarian Dictionary
+GenericName[bg]=Българско-Английски Речник
+Comment=An English - Bulgarian Dictionary
+Comment[bg]=Българско-Английски Речник
+Categories=Qt;KDE;Utility