diff options
Diffstat (limited to 'net-p2p/amule-devel/files')
-rw-r--r-- | net-p2p/amule-devel/files/amuled.sh | 70 | ||||
-rw-r--r-- | net-p2p/amule-devel/files/patch-amuleDlg.cpp | 24 |
2 files changed, 0 insertions, 94 deletions
diff --git a/net-p2p/amule-devel/files/amuled.sh b/net-p2p/amule-devel/files/amuled.sh deleted file mode 100644 index 8e4d5d366974..000000000000 --- a/net-p2p/amule-devel/files/amuled.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -# -# aMule RCng startup script -# Ogirinal work from Gabriele Cecchetti (amule.org forum) -# Modified by Ganaël LAPLANCHE (ganael.laplanche@martymac.com) -# - -# PROVIDE: amuled -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON -# KEYWORD: shutdown - -# -# Add the following lines to /etc/rc.conf to enable amuled at startup -# amuled (bool): Set to "NO" by default. -# Set it to "YES" to enable amuled -# amuled_user (str): Set to user running amuled -# (default 'aMule') -# amuled_home (str): Set to home directory of user running amuled -# (default /home/${amuled_user}) -# -. /etc/rc.subr - -name="amuled" -rcvar=`set_rcvar` - -load_rc_config $name - -[ -z "$amuled_enable" ] && amuled_enable="NO" -[ -z "$amuled_user" ] && amuled_user="aMule" -[ -z "$amuled_home" ] && amuled_home="/home/${amuled_user}" - -required_dirs=${amuled_home} -required_files="${amuled_home}/.aMule/amule.conf" - -start_cmd="${name}_start" -stop_cmd="${name}_stop" - -amuled_start() -{ - if [ ! -f /var/run/${name}.run ] - then - su -l ${amuled_user} -c "amuled &" 2>>/var/log/${name}.log >>/var/log/${name}.log && touch /var/run/${name}.run - echo "Started ${name}." - echo `date` : "Started ${name}." >> /var/log/${name}.log - else - echo "${name} seems to be already running -- remove /var/run/${name}.run manually if needed." - fi -} - -amuled_stop() -{ - if [ -f /var/run/${name}.run ] - then - # The following line is much better, but doesn't stop totally amuled - # su -l ${amuled_user} -c "amulecmd -c Shutdown" 2>>/var/log/${name}.log >>/var/log/${name}.log - # Since amuled catches SIGTERM, this way is preferred for now - killall -TERM amuled 2>>/var/log/${name}.log >>/var/log/${name}.log ; sleep 3 - killall -KILL amuled 2>>/var/log/${name}.log >>/var/log/${name}.log - # Also kill amuleweb if needed - killall -KILL amuleweb 2>/dev/null >/dev/null - rm -f /var/run/${name}.run - echo "Stopped ${name}." - echo `date` : "Stopped ${name}." >> /var/log/${name}.log - else - echo "${name} doesn't seem to be running -- create /var/run/${name}.run if needed." - fi -} - -run_rc_command "$1" diff --git a/net-p2p/amule-devel/files/patch-amuleDlg.cpp b/net-p2p/amule-devel/files/patch-amuleDlg.cpp deleted file mode 100644 index 5ef977954dc5..000000000000 --- a/net-p2p/amule-devel/files/patch-amuleDlg.cpp +++ /dev/null @@ -1,24 +0,0 @@ ---- src/amuleDlg.cpp.orig Sun Jan 1 06:17:25 2006 -+++ src/amuleDlg.cpp Tue Jan 3 19:12:04 2006 -@@ -413,9 +413,9 @@ - { - wxString msg = wxT(" "); - #ifdef CLIENT_GUI -- msg << _("aMule remote control ") << wxT(VERSION); -+ msg << _("aMule remote control ") << wxT(VERSION) << wxT(" for FreeBSD"); - #else -- msg << wxT("aMule ") << wxT(VERSION); -+ msg << wxT("aMule ") << wxT(VERSION) << wxT(" for FreeBSD"); - #endif - msg << wxT(" "); - #ifdef CVSDATE -@@ -425,7 +425,8 @@ - " 'All-Platform' p2p client based on eMule \n\n" - " Website: http://www.amule.org \n" - " Forum: http://forum.amule.org \n" -- " FAQ: http://wiki.amule.org \n\n" -+ " FAQ: http://wiki.amule.org \n" -+ " FreeBSD port: http://contribs.martymac.com \n\n" - " Contact: admin@amule.org (administrative issues) \n" - " Copyright (C) 2003-2006 aMule Team \n\n" - " Part of aMule is based on \n" |