From f0d9f58b7f1825fb95236f427a6400ad54ad4b5e Mon Sep 17 00:00:00 2001 From: dougb Date: Sun, 5 Aug 2012 23:19:36 +0000 Subject: Move the rc.d scripts of the form *.sh.in to *.in Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op --- dns/dns_balance/Makefile | 2 +- dns/dns_balance/files/dns_balance.in | 27 +++++++++++++++++++++++++++ dns/dns_balance/files/dns_balance.sh.in | 27 --------------------------- 3 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 dns/dns_balance/files/dns_balance.in delete mode 100644 dns/dns_balance/files/dns_balance.sh.in (limited to 'dns/dns_balance') diff --git a/dns/dns_balance/Makefile b/dns/dns_balance/Makefile index 6de617276799..7bb64354719d 100644 --- a/dns/dns_balance/Makefile +++ b/dns/dns_balance/Makefile @@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A dynamic load-balancing DNS server USE_RUBY= yes -USE_RC_SUBR= dns_balance.sh +USE_RC_SUBR= dns_balance NO_BUILD= yes diff --git a/dns/dns_balance/files/dns_balance.in b/dns/dns_balance/files/dns_balance.in new file mode 100644 index 000000000000..50a51098631c --- /dev/null +++ b/dns/dns_balance/files/dns_balance.in @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: dns_balance +# REQUIRE: DAEMON + +# Add the following line to /etc/rc.conf to enable dns_balance +# dns_balance_enable="YES" +# dns_balance_flags="" + +. /etc/rc.subr + +name=dns_balance +rcvar=dns_balance_enable + +load_rc_config ${name} +: ${dns_balance_enable="NO"} +: ${dns_balance_logfile="/var/log/${name}.log"} +: ${dns_balance_pidfile="/var/log/${name}.pid"} + +command="%%PREFIX%%/sbin/${name}" +command_args="-l ${dns_balance_logfile} -p ${dns_balance_pidfile}" +command_interpreter=%%RUBY%% +pidfile=${dns_balance_pidfile} + +run_rc_command "$1" diff --git a/dns/dns_balance/files/dns_balance.sh.in b/dns/dns_balance/files/dns_balance.sh.in deleted file mode 100644 index 50a51098631c..000000000000 --- a/dns/dns_balance/files/dns_balance.sh.in +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: dns_balance -# REQUIRE: DAEMON - -# Add the following line to /etc/rc.conf to enable dns_balance -# dns_balance_enable="YES" -# dns_balance_flags="" - -. /etc/rc.subr - -name=dns_balance -rcvar=dns_balance_enable - -load_rc_config ${name} -: ${dns_balance_enable="NO"} -: ${dns_balance_logfile="/var/log/${name}.log"} -: ${dns_balance_pidfile="/var/log/${name}.pid"} - -command="%%PREFIX%%/sbin/${name}" -command_args="-l ${dns_balance_logfile} -p ${dns_balance_pidfile}" -command_interpreter=%%RUBY%% -pidfile=${dns_balance_pidfile} - -run_rc_command "$1" -- cgit