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/gnu-dico/Makefile | 2 +- net/gnu-dico/files/dicod.in | 22 ++++++++++++++++++++++ net/gnu-dico/files/dicod.sh.in | 20 -------------------- 3 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 net/gnu-dico/files/dicod.in delete mode 100644 net/gnu-dico/files/dicod.sh.in (limited to 'net/gnu-dico') diff --git a/net/gnu-dico/Makefile b/net/gnu-dico/Makefile index e695f05189c0..73ecdb40362b 100644 --- a/net/gnu-dico/Makefile +++ b/net/gnu-dico/Makefile @@ -93,7 +93,7 @@ INFO= dico PLIST_SUB+= PORTVERSION=${PORTVERSION} SUB_FILES+= pkg-message -USE_RC_SUBR= dicod.sh +USE_RC_SUBR= dicod post-patch: @${REINPLACE_CMD} 's/@bindir@/@sbindir@/' ${WRKSRC}/dicod/Makefile.in diff --git a/net/gnu-dico/files/dicod.in b/net/gnu-dico/files/dicod.in new file mode 100644 index 000000000000..52bc90cdd93e --- /dev/null +++ b/net/gnu-dico/files/dicod.in @@ -0,0 +1,22 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: dicod +# REQUIRE: DAEMON +# +# Add the following line to /etc/rc.conf to enable dicod: +# +# dicod_enable="YES" + + +dicod_enable=${dicod_enable-"NO"} + +. /etc/rc.subr + +name=dicod +rcvar=dicod_enable +command=%%PREFIX%%/sbin/dicod + +load_rc_config $name +run_rc_command "$1" diff --git a/net/gnu-dico/files/dicod.sh.in b/net/gnu-dico/files/dicod.sh.in deleted file mode 100644 index f18a48cba93c..000000000000 --- a/net/gnu-dico/files/dicod.sh.in +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# -# PROVIDE: dicod -# REQUIRE: DAEMON -# -# Add the following line to /etc/rc.conf to enable dicod: -# -# dicod_enable="YES" -# - -dicod_enable=${dicod_enable-"NO"} - -. /etc/rc.subr - -name=dicod -rcvar=dicod_enable -command=%%PREFIX%%/sbin/dicod - -load_rc_config $name -run_rc_command "$1" -- cgit v1.2.3