From 02bedc3a7624f6d5d7a13af05c015680a9530785 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Mon, 21 Sep 2009 18:29:16 +0000 Subject: [PATCH] - Simplify RC script Submitted by: dougb@ Feature safe: yes --- irc/bitlbee/Makefile | 2 +- irc/bitlbee/files/bitlbee.in | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/irc/bitlbee/Makefile b/irc/bitlbee/Makefile index 5e7fe88afa80..a92e0d0c4e45 100644 --- a/irc/bitlbee/Makefile +++ b/irc/bitlbee/Makefile @@ -7,7 +7,7 @@ PORTNAME= bitlbee PORTVERSION= 1.2.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= irc MASTER_SITES= http://get.bitlbee.org/src/ \ ${MASTER_SITE_LOCAL} diff --git a/irc/bitlbee/files/bitlbee.in b/irc/bitlbee/files/bitlbee.in index b8cc97636350..b53c8adef9c9 100644 --- a/irc/bitlbee/files/bitlbee.in +++ b/irc/bitlbee/files/bitlbee.in @@ -3,7 +3,7 @@ # $FreeBSD$ # # PROVIDE: bitlbee -# REQUIRE: DAEMON +# REQUIRE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable bitlbee: @@ -23,12 +23,6 @@ load_rc_config $name required_files="${bitlbee_config}" command="%%PREFIX%%/sbin/bitlbee" -start_cmd="bitlbee_start" - -bitlbee_start() -{ - echo "Starting ${name}." - ${command} -D -u ${bitlbee_user} -c ${bitlbee_config} ${bitlbee_flags} -} +command_args="-D -u ${bitlbee_user} -c ${bitlbee_config} ${bitlbee_flags}" run_rc_command "$1"