diff options
author | lioux <lioux@FreeBSD.org> | 2002-02-24 13:18:33 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-02-24 13:18:33 +0800 |
commit | 0f6647fac9178abaa956f90c71c3e58abd4046bc (patch) | |
tree | 93538101ef8b660ee87d38ba71bb29169c011799 /net/linux-edonkey-server/files | |
parent | 658477c589e2beccb66c4f6fc31b9150e8f33f57 (diff) | |
download | freebsd-ports-gnome-0f6647fac9178abaa956f90c71c3e58abd4046bc.tar.gz freebsd-ports-gnome-0f6647fac9178abaa956f90c71c3e58abd4046bc.tar.zst freebsd-ports-gnome-0f6647fac9178abaa956f90c71c3e58abd4046bc.zip |
o New port linux-edonkey-server version 16.38: A decentralized
peer-to-peer file-sharing server (eDonkey2000 server)
o Submitter asked lioux to take over maintainership since he is
already maintaining all eDonkey related ports
PR: 33222
Submitted by: Yen-Ming Lee <leeym@leeym.com>
Diffstat (limited to 'net/linux-edonkey-server/files')
-rw-r--r-- | net/linux-edonkey-server/files/donkey.ini | 19 | ||||
-rw-r--r-- | net/linux-edonkey-server/files/edonkey2000-server.sh.sample | 44 |
2 files changed, 63 insertions, 0 deletions
diff --git a/net/linux-edonkey-server/files/donkey.ini b/net/linux-edonkey-server/files/donkey.ini new file mode 100644 index 000000000000..c268f163becb --- /dev/null +++ b/net/linux-edonkey-server/files/donkey.ini @@ -0,0 +1,19 @@ +[server] +name=UNKNOWN(Amnesiac) +desc=Change both name and description to real values +maxClients=6000 +public=true +console=false +logFile= +verbose=false +welcome[0]=This is my server built from FreeBSD ports collection. +welcome[1]=Check www.edonkey2000.com for updates. +threads=5 +thisIP= +port=4661 +seedIP= +seedPort=4661 +type=key +tableSize=2333 +maxVersion=1000 +minVersion=39 diff --git a/net/linux-edonkey-server/files/edonkey2000-server.sh.sample b/net/linux-edonkey-server/files/edonkey2000-server.sh.sample new file mode 100644 index 000000000000..8f38866566f1 --- /dev/null +++ b/net/linux-edonkey-server/files/edonkey2000-server.sh.sample @@ -0,0 +1,44 @@ +#!/bin/sh + +ETC_DIR=%%PREFIX%%/etc/edonkey2000 +SBIN_DIR=%%PREFIX%%/sbin +PATH=/bin:/usr/bin:%%LOCALBASE%%/bin +# +SU=/usr/bin/su +# +USER=edonkey2000 + +CONSOLE=`grep ^console= ${ETC_DIR}/donkey.ini | grep -i true | wc -l` + +if [ ${CONSOLE} -gt 0 -a ! -x %%LOCALBASE%%/bin/screen ]; then + echo "Please install ports misc/screen first to enable edonkey2000-server console" >&2 + exit +fi + +case "${1}" in +start) + if [ -x ${SBIN_DIR}/dserver ]; then + cd ${ETC_DIR} + if [ ${CONSOLE} -gt 0 ]; then + ${SU} ${USER} -c "screen -dmS ${SBIN_DIR}/dserver dserver" & + else + ${SU} ${USER} -c "${SBIN_DIR}/dserver >/dev/null 2>&1" & + fi + echo -n ' edonkey2000-server' + fi + ;; +stop) + killall -1 dserver > /dev/null 2>&1 + echo -n ' edonkey2000-server' + ;; +console) + if [ ${CONSOLE} -gt 0 ]; then + ${SU} edonkey2000 -c "screen -d -r dserver" + else + echo "Please set console=true in ${ETC_DIR}/donkey.ini, install ports misc/screen, then restart dserver" + fi + ;; +*) + echo "Usage: `basename $0` {start|stop|console}" >&2 + ;; +esac |