From 73b056be3daa5334d349f225d98f0b7b963be87a Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Sun, 15 Aug 2004 13:04:37 +0000 Subject: Add ccxstream 1.0.15, stream media files to XBox Media Center via XBMSP. PR: ports/70470 Submitted by: Michael Handler --- net/ccxstream/files/ccxstream.sh.sample | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 net/ccxstream/files/ccxstream.sh.sample (limited to 'net/ccxstream/files/ccxstream.sh.sample') diff --git a/net/ccxstream/files/ccxstream.sh.sample b/net/ccxstream/files/ccxstream.sh.sample new file mode 100644 index 000000000000..7ebff4f09e37 --- /dev/null +++ b/net/ccxstream/files/ccxstream.sh.sample @@ -0,0 +1,53 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ccxstream +# REQUIRE: DAEMON +# KEYWORD: FreeBSD + +# Define these ccxstream_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/ccxstream +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE! +# +# The port will refuse to start unless ccxstream_flags is initalized, +# in addition to ccxstream_enable. For information on the arguments +# to ccxstream, look at %%PREFIX%%/share/doc/ccxstream/README (if you +# installed the port documentation by not specifying NOPORTDOCS) or the +# output of "ccxstream -h". At bare minimum, you'll want to add the +# "-u " argument to specify the userid the server will run under +# (unless you WANT to run this code as root), and the "-r " +# argument to configure the directory root that the server will share +# from. +# +# Don't worry about the "-f" (background) and "-F " arguments; +# this script takes care of them for you. + +. %%RC_SUBR%% + +name="ccxstream" +rcvar=`set_rcvar` + +command="%%PREFIX%%/bin/ccxstream" + +load_rc_config "$name" +: ${ccxstream_enable="NO"} +: ${ccxstream_flags="DEFAULT"} + +pidfile=${ccxstream_pidfile="/var/run/${name}.pid"} + +command_args="-f -F ${pidfile}" + +ccxstream_precmd () { + if [ x"${ccxstream_flags}" = xDEFAULT ]; then + warn must set ccxstream_flags first, no acceptable defaults + return 1 + fi + return 0 +} + +run_rc_command "$1" -- cgit v1.2.3