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/mediatomb/Makefile | 2 +- net/mediatomb/files/mediatomb.in | 43 +++++++++++++++++++++++++++++++++++++ net/mediatomb/files/mediatomb.sh.in | 43 ------------------------------------- 3 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 net/mediatomb/files/mediatomb.in delete mode 100644 net/mediatomb/files/mediatomb.sh.in (limited to 'net/mediatomb') diff --git a/net/mediatomb/Makefile b/net/mediatomb/Makefile index aba0b0e524a8..14a039b724d4 100644 --- a/net/mediatomb/Makefile +++ b/net/mediatomb/Makefile @@ -24,7 +24,7 @@ CONFIGURE_ARGS= --with-search="${LOCALBASE}" \ --disable-inotify CONFIGURE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" -USE_RC_SUBR= mediatomb.sh +USE_RC_SUBR= mediatomb # --- configurable variables --- MEDIATOMB_USER?= mediatomb diff --git a/net/mediatomb/files/mediatomb.in b/net/mediatomb/files/mediatomb.in new file mode 100644 index 000000000000..31476a2f41cb --- /dev/null +++ b/net/mediatomb/files/mediatomb.in @@ -0,0 +1,43 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: mediatomb +# REQUIRE: DEAMON +# KEYWORD: shutdown + +# Define these mediatomb_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/mediatomb +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# + +. /etc/rc.subr + +mediatomb_enable=${mediatomb_enable-"NO"} +# mediatomb_flags="" +# mediatomb_interface="" +mediatomb_mtuser=${mediatomb_mtuser-"%%MEDIATOMB_USER%%"} +mediatomb_mtgroup=${mediatomb_mtgroup-"%%MEDIATOMB_GROUP%%"} +mediatomb_config=${mediatomb_config-"%%PREFIX%%/etc/mediatomb/config.xml"} +mediatomb_logfile=${mediatomb_logfile-"%%MEDIATOMB_DIR%%/mediatomb.log"} +mediatomb_pidfile=${mediatomb_pidfile-"%%MEDIATOMB_DIR%%/mediatomb.pid"} + +name="mediatomb" +rcvar=mediatomb_enable + +load_rc_config $name + +if [ "xx" != "x${mediatomb_interface}x" ]; then + mediatomb_interface_command="-e ${mediatomb_interface}" +else + mediatomb_interface_command="" +fi + +command="%%PREFIX%%/bin/mediatomb" +command_args="-d -c ${mediatomb_config} -l ${mediatomb_logfile} -u ${mediatomb_mtuser} -g ${mediatomb_mtgroup} -P ${mediatomb_pidfile} ${mediatomb_interface_command}" + +pidfile="${mediatomb_pidfile}" + +run_rc_command "$1" diff --git a/net/mediatomb/files/mediatomb.sh.in b/net/mediatomb/files/mediatomb.sh.in deleted file mode 100644 index 31476a2f41cb..000000000000 --- a/net/mediatomb/files/mediatomb.sh.in +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -# PROVIDE: mediatomb -# REQUIRE: DEAMON -# KEYWORD: shutdown - -# Define these mediatomb_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/mediatomb -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# - -. /etc/rc.subr - -mediatomb_enable=${mediatomb_enable-"NO"} -# mediatomb_flags="" -# mediatomb_interface="" -mediatomb_mtuser=${mediatomb_mtuser-"%%MEDIATOMB_USER%%"} -mediatomb_mtgroup=${mediatomb_mtgroup-"%%MEDIATOMB_GROUP%%"} -mediatomb_config=${mediatomb_config-"%%PREFIX%%/etc/mediatomb/config.xml"} -mediatomb_logfile=${mediatomb_logfile-"%%MEDIATOMB_DIR%%/mediatomb.log"} -mediatomb_pidfile=${mediatomb_pidfile-"%%MEDIATOMB_DIR%%/mediatomb.pid"} - -name="mediatomb" -rcvar=mediatomb_enable - -load_rc_config $name - -if [ "xx" != "x${mediatomb_interface}x" ]; then - mediatomb_interface_command="-e ${mediatomb_interface}" -else - mediatomb_interface_command="" -fi - -command="%%PREFIX%%/bin/mediatomb" -command_args="-d -c ${mediatomb_config} -l ${mediatomb_logfile} -u ${mediatomb_mtuser} -g ${mediatomb_mtgroup} -P ${mediatomb_pidfile} ${mediatomb_interface_command}" - -pidfile="${mediatomb_pidfile}" - -run_rc_command "$1" -- cgit v1.2.3