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 --- net-mgmt/choparp/Makefile | 2 +- net-mgmt/choparp/files/choparp.in | 34 ++++++++++++++++++++++++++++++++++ net-mgmt/choparp/files/choparp.sh.in | 34 ---------------------------------- 3 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 net-mgmt/choparp/files/choparp.in delete mode 100644 net-mgmt/choparp/files/choparp.sh.in (limited to 'net-mgmt/choparp') diff --git a/net-mgmt/choparp/Makefile b/net-mgmt/choparp/Makefile index 2234bb93c3dd..ea1047f1e9c4 100644 --- a/net-mgmt/choparp/Makefile +++ b/net-mgmt/choparp/Makefile @@ -14,7 +14,7 @@ MASTER_SITES= SF MAINTAINER= nork@FreeBSD.org COMMENT= Simple proxy arp daemon -USE_RC_SUBR= choparp.sh +USE_RC_SUBR= choparp MANCOMPRESSED= yes MAN8= choparp.8 diff --git a/net-mgmt/choparp/files/choparp.in b/net-mgmt/choparp/files/choparp.in new file mode 100644 index 000000000000..ba8d8e4bb2d5 --- /dev/null +++ b/net-mgmt/choparp/files/choparp.in @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: choparp +# REQUIRE: LOGIN +# +choparp_enable=${choparp_enable-"NO"} +choparp_iface=${choparp_iface-} +choparp_macaddr=${choparp_macaddr-"auto"} +choparp_network=${choparp_network-} + +. /etc/rc.subr + +name="choparp" +rcvar=choparp_enable +start_precmd="choparp_precmd" +restart_precmd="choparp_precmd" + +load_rc_config ${name} + +choparp_precmd () { + if [ -z "${choparp_iface}" \ + -o -z "${choparp_macaddr}" \ + -o -z "${choparp_network}" ]; then + warn "set choparp_iface, choparp_macaddr and choparp_network." + return 1 + fi +} + +command="%%PREFIX%%/sbin/${name}" +command_args="${choparp_iface} ${choparp_macaddr} ${choparp_network}" + +run_rc_command "$1" diff --git a/net-mgmt/choparp/files/choparp.sh.in b/net-mgmt/choparp/files/choparp.sh.in deleted file mode 100644 index ba8d8e4bb2d5..000000000000 --- a/net-mgmt/choparp/files/choparp.sh.in +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: choparp -# REQUIRE: LOGIN -# -choparp_enable=${choparp_enable-"NO"} -choparp_iface=${choparp_iface-} -choparp_macaddr=${choparp_macaddr-"auto"} -choparp_network=${choparp_network-} - -. /etc/rc.subr - -name="choparp" -rcvar=choparp_enable -start_precmd="choparp_precmd" -restart_precmd="choparp_precmd" - -load_rc_config ${name} - -choparp_precmd () { - if [ -z "${choparp_iface}" \ - -o -z "${choparp_macaddr}" \ - -o -z "${choparp_network}" ]; then - warn "set choparp_iface, choparp_macaddr and choparp_network." - return 1 - fi -} - -command="%%PREFIX%%/sbin/${name}" -command_args="${choparp_iface} ${choparp_macaddr} ${choparp_network}" - -run_rc_command "$1" -- cgit