diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2007-06-04 12:54:16 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2007-06-04 12:54:16 +0000 |
commit | 50410e660c383e06ce6c0de0024d501a0194c19a (patch) | |
tree | 5faa487b61b2afd7756c347891450ab9802751b4 /net-p2p/freenet/files/freenet.sh | |
parent | - Fix build on FreeBSD 5.X [1] (diff) |
Remove expired ports:
2007-04-22 net-p2p/freenet: Does not work with existing Freenet network
2007-04-22 net-p2p/libfreenet: Does not work with existing Freenet network
2007-05-03 net-p2p/microdc: microdc is no longer in development. Consider using net-p2p/microdc2 instead
Notes
Notes:
svn path=/head/; revision=192704
Diffstat (limited to 'net-p2p/freenet/files/freenet.sh')
-rw-r--r-- | net-p2p/freenet/files/freenet.sh | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/net-p2p/freenet/files/freenet.sh b/net-p2p/freenet/files/freenet.sh deleted file mode 100644 index f77a13c15784..000000000000 --- a/net-p2p/freenet/files/freenet.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Under a BSDL license. Copyright 2005. Mario S F Ferreira <lioux@FreeBSD.org> - -# PROVIDE: freenet -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# -# Add the following lines to /etc/rc.conf to enable freenet: -# -#freenet_enable="YES" -#freenet_user="" -# - -. /etc/rc.subr - -name="freenet" -rcvar=`set_rcvar` -command="%%PREFIX%%/sbin/${name}" -extra_commands="configure" - -freenet_check_vars() -{ - if [ -z "${freenet_user}" ]; then - freenet_user=$(whoami) - fi - - if [ "x${freenet_user}" = "xroot" ]; then - err 1 "You have to set freenet_user to a non-root user for security reasons" - fi -} - -configure_cmd="configure_cmd" -configure_cmd() -{ - freenet_check_vars - su -l ${freenet_user} -c "${command} -c" -} - -start_cmd="start_cmd" -start_cmd() -{ - freenet_check_vars - su -l ${freenet_user} -c "${command} -i" -} - -stop_cmd="stop_cmd" -stop_cmd() -{ - freenet_check_vars - su -l ${freenet_user} -c "${command} -o" -} - -status_cmd="status_cmd" -status_cmd() -{ - echo "Can't check ${name} status" -} - -load_rc_config "${name}" -: ${freenet_enable="NO"} -: ${freenet_user=""} - -run_rc_command "$1" |