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 --- mail/sid-milter/Makefile | 2 +- mail/sid-milter/files/milter-sid.in | 43 ++++++++++++++++++++++++++++++++++ mail/sid-milter/files/milter-sid.sh.in | 43 ---------------------------------- 3 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 mail/sid-milter/files/milter-sid.in delete mode 100644 mail/sid-milter/files/milter-sid.sh.in (limited to 'mail/sid-milter') diff --git a/mail/sid-milter/Makefile b/mail/sid-milter/Makefile index c4d68f5d7499..b2ca60d94905 100644 --- a/mail/sid-milter/Makefile +++ b/mail/sid-milter/Makefile @@ -35,7 +35,7 @@ SITE+= ${FILESDIR}/site.config.m4 MAN3= ar.3 PLIST_FILES+= include/libar.h lib/libar.a .endif -USE_RC_SUBR= milter-sid.sh +USE_RC_SUBR= milter-sid .include diff --git a/mail/sid-milter/files/milter-sid.in b/mail/sid-milter/files/milter-sid.in new file mode 100644 index 000000000000..a923e2b8f0b7 --- /dev/null +++ b/mail/sid-milter/files/milter-sid.in @@ -0,0 +1,43 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: miltersid +# REQUIRE: DAEMON +# BEFORE: mail localpkg + +# Define these miltersid_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/miltersid +# + +. /etc/rc.subr + +name="miltersid" +rcvar="miltersid_enable" +load_rc_config $name + +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +: ${miltersid_enable="NO"} +: ${miltersid_socket="local:/var/run/sid-filter"} +: ${miltersid_pid="/var/run/sid-filter.pid"} +: ${miltersid_flags="-r 0 -t"} + +pidfile=${miltersid_pid} +command="%%PREFIX%%/libexec/sid-filter" +command_args="-l -p ${miltersid_socket} -P ${miltersid_pid}" +start_precmd="sid_precmd" + +sid_precmd () +{ + if [ -S ${miltersid_socket##local:} ] ; then + rm -f ${miltersid_socket##local:} + elif [ -S ${miltersid_socket##unix:} ] ; then + rm -f ${miltersid_socket##unix:} + fi +} + +run_rc_command "$1" diff --git a/mail/sid-milter/files/milter-sid.sh.in b/mail/sid-milter/files/milter-sid.sh.in deleted file mode 100644 index a923e2b8f0b7..000000000000 --- a/mail/sid-milter/files/milter-sid.sh.in +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: miltersid -# REQUIRE: DAEMON -# BEFORE: mail localpkg - -# Define these miltersid_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/miltersid -# - -. /etc/rc.subr - -name="miltersid" -rcvar="miltersid_enable" -load_rc_config $name - -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -: ${miltersid_enable="NO"} -: ${miltersid_socket="local:/var/run/sid-filter"} -: ${miltersid_pid="/var/run/sid-filter.pid"} -: ${miltersid_flags="-r 0 -t"} - -pidfile=${miltersid_pid} -command="%%PREFIX%%/libexec/sid-filter" -command_args="-l -p ${miltersid_socket} -P ${miltersid_pid}" -start_precmd="sid_precmd" - -sid_precmd () -{ - if [ -S ${miltersid_socket##local:} ] ; then - rm -f ${miltersid_socket##local:} - elif [ -S ${miltersid_socket##unix:} ] ; then - rm -f ${miltersid_socket##unix:} - fi -} - -run_rc_command "$1" -- cgit v1.2.3