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 --- sysutils/tenshi/Makefile | 2 +- sysutils/tenshi/files/tenshi.in | 31 +++++++++++++++++++++++++++++++ sysutils/tenshi/files/tenshi.sh.in | 31 ------------------------------- 3 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 sysutils/tenshi/files/tenshi.in delete mode 100644 sysutils/tenshi/files/tenshi.sh.in (limited to 'sysutils/tenshi') diff --git a/sysutils/tenshi/Makefile b/sysutils/tenshi/Makefile index 7cd754d9c92e..ca15e5cc21d8 100644 --- a/sysutils/tenshi/Makefile +++ b/sysutils/tenshi/Makefile @@ -20,7 +20,7 @@ MAN8= tenshi.8 USE_PERL5= yes NO_BUILD= yes -USE_RC_SUBR= tenshi.sh +USE_RC_SUBR= tenshi SUB_LIST= PERL=${PERL} PLIST_FILES= bin/tenshi etc/tenshi.conf.sample diff --git a/sysutils/tenshi/files/tenshi.in b/sysutils/tenshi/files/tenshi.in new file mode 100644 index 000000000000..65044ae547b8 --- /dev/null +++ b/sysutils/tenshi/files/tenshi.in @@ -0,0 +1,31 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: tenshi +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable `tenshi': +# +# tenshi_enable="YES" + +. /etc/rc.subr + +name='tenshi' +rcvar=tenshi_enable + +load_rc_config "$name" + +tenshi_enable="${tenshi_enable:-NO}" + +extra_commands='reload' + +command='%%PREFIX%%/bin/tenshi' +command_interpreter='%%PERL%%' + +pidfile='/var/run/tenshi.pid' + +required_files='%%PREFIX%%/etc/tenshi.conf' + +run_rc_command "$1" diff --git a/sysutils/tenshi/files/tenshi.sh.in b/sysutils/tenshi/files/tenshi.sh.in deleted file mode 100644 index 65044ae547b8..000000000000 --- a/sysutils/tenshi/files/tenshi.sh.in +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ -# -# PROVIDE: tenshi -# REQUIRE: LOGIN -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to enable `tenshi': -# -# tenshi_enable="YES" - -. /etc/rc.subr - -name='tenshi' -rcvar=tenshi_enable - -load_rc_config "$name" - -tenshi_enable="${tenshi_enable:-NO}" - -extra_commands='reload' - -command='%%PREFIX%%/bin/tenshi' -command_interpreter='%%PERL%%' - -pidfile='/var/run/tenshi.pid' - -required_files='%%PREFIX%%/etc/tenshi.conf' - -run_rc_command "$1" -- cgit