From 9aac569eaa031e27191a3f4165b389a17f467ad2 Mon Sep 17 00:00:00 2001 From: Doug Barton 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 --- net-p2p/bnbt/Makefile | 2 +- net-p2p/bnbt/files/bnbt.in | 38 ++++++++++++++++++++++++++++++++++++++ net-p2p/bnbt/files/bnbt.sh.in | 38 -------------------------------------- 3 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 net-p2p/bnbt/files/bnbt.in delete mode 100644 net-p2p/bnbt/files/bnbt.sh.in (limited to 'net-p2p/bnbt') diff --git a/net-p2p/bnbt/Makefile b/net-p2p/bnbt/Makefile index a6c0557f6aac..ec7e0674730b 100644 --- a/net-p2p/bnbt/Makefile +++ b/net-p2p/bnbt/Makefile @@ -21,7 +21,7 @@ USE_GMAKE= yes USE_DOS2UNIX= yes SUB_FILES= pkg-message -USE_RC_SUBR= bnbt.sh +USE_RC_SUBR= bnbt PORTDOCS= footer.html header.html diff --git a/net-p2p/bnbt/files/bnbt.in b/net-p2p/bnbt/files/bnbt.in new file mode 100644 index 000000000000..f8bde3c225cb --- /dev/null +++ b/net-p2p/bnbt/files/bnbt.in @@ -0,0 +1,38 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: bnbt +# REQUIRE: LOGIN abi +# BEFORE: securelevel +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable `bnbt': +# +# bnbt_enable="YES" +# bnbt_flags="" +# +# See bnbt(1) for bnbt_flags +# + +. /etc/rc.subr + +name="bnbt" +rcvar=bnbt_enable + +# path to your executable, might be libxec, bin, sbin, ... +command="%%PREFIX%%/bin/$name" + +# extra required arguments +command_args="&" + +# you can check for required_dirs and required_vars too, see rc.subr(8) +# +required_dirs="/var/log/$name" + +# read settings, set default values +load_rc_config "$name" +: ${bnbt_enable="NO"} + +run_rc_command "$1" diff --git a/net-p2p/bnbt/files/bnbt.sh.in b/net-p2p/bnbt/files/bnbt.sh.in deleted file mode 100644 index f8bde3c225cb..000000000000 --- a/net-p2p/bnbt/files/bnbt.sh.in +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: bnbt -# REQUIRE: LOGIN abi -# BEFORE: securelevel -# KEYWORD: shutdown - -# Add the following line to /etc/rc.conf to enable `bnbt': -# -# bnbt_enable="YES" -# bnbt_flags="" -# -# See bnbt(1) for bnbt_flags -# - -. /etc/rc.subr - -name="bnbt" -rcvar=bnbt_enable - -# path to your executable, might be libxec, bin, sbin, ... -command="%%PREFIX%%/bin/$name" - -# extra required arguments -command_args="&" - -# you can check for required_dirs and required_vars too, see rc.subr(8) -# -required_dirs="/var/log/$name" - -# read settings, set default values -load_rc_config "$name" -: ${bnbt_enable="NO"} - -run_rc_command "$1" -- cgit