ports/70470: New port: net/ccxstream: XBMSP streamer for XBox Media Center
Michael Handler
handler at grendel.net
Sun Aug 15 09:00:39 UTC 2004
>Number: 70470
>Category: ports
>Synopsis: New port: net/ccxstream: XBMSP streamer for XBox Media Center
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Aug 15 09:00:39 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Michael Handler
>Release: FreeBSD 4.10-STABLE i386
>Organization:
my own bad self
>Environment:
System: FreeBSD lair.grendel.net 4.10-STABLE FreeBSD 4.10-STABLE #1: Fri Aug 13 18:21:55 EDT 2004 root at lair.grendel.net:/usr/obj/usr/src/sys/LAIR i386
>Description:
Server to stream music and video files from your UNIX server to an
XBox running XBox Media Player using the XBMSP protocol.
>How-To-Repeat:
N/A
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ccxstream
# ccxstream/distinfo
# ccxstream/pkg-descr
# ccxstream/files
# ccxstream/files/ccxstream.sh.sample
# ccxstream/pkg-message
# ccxstream/Makefile
#
echo c - ccxstream
mkdir -p ccxstream > /dev/null 2>&1
echo x - ccxstream/distinfo
sed 's/^X//' >ccxstream/distinfo << 'END-of-ccxstream/distinfo'
XMD5 (ccxstream-1.0.15.tar.gz) = c589fff48ce541f26b394c9d82ccbead
XSIZE (ccxstream-1.0.15.tar.gz) = 40384
END-of-ccxstream/distinfo
echo x - ccxstream/pkg-descr
sed 's/^X//' >ccxstream/pkg-descr << 'END-of-ccxstream/pkg-descr'
XServer to stream music and video files from your UNIX server to an
XXBox running XBox Media Player using the XBMSP protocol.
X
XWWW: http://www.xboxmediacenter.de/
END-of-ccxstream/pkg-descr
echo c - ccxstream/files
mkdir -p ccxstream/files > /dev/null 2>&1
echo x - ccxstream/files/ccxstream.sh.sample
sed 's/^X//' >ccxstream/files/ccxstream.sh.sample << 'END-of-ccxstream/files/ccxstream.sh.sample'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: ccxstream
X# REQUIRE: DAEMON
X# KEYWORD: FreeBSD
X
X# Define these ccxstream_* variables in one of these files:
X# /etc/rc.conf
X# /etc/rc.conf.local
X# /etc/rc.conf.d/ccxstream
X#
X# DO NOT CHANGE THESE DEFAULT VALUES HERE!
X#
X# The port will refuse to start unless ccxstream_flags is initalized,
X# in addition to ccxstream_enable. For information on the arguments
X# to ccxstream, look at %%PREFIX%%/share/doc/ccxstream/README (if you
X# installed the port documentation by not specifying NOPORTDOCS) or the
X# output of "ccxstream -h". At bare minimum, you'll want to add the
X# "-u <user>" argument to specify the userid the server will run under
X# (unless you WANT to run this code as root), and the "-r <directory>"
X# argument to configure the directory root that the server will share
X# from.
X#
X# Don't worry about the "-f" (background) and "-F <pidfile>" arguments;
X# this script takes care of them for you.
X
X. %%RC_SUBR%%
X
Xname="ccxstream"
Xrcvar=`set_rcvar`
X
Xcommand="%%PREFIX%%/bin/ccxstream"
X
Xload_rc_config "$name"
X: ${ccxstream_enable="NO"}
X: ${ccxstream_flags="DEFAULT"}
X
Xpidfile=${ccxstream_pidfile="/var/run/${name}.pid"}
X
Xcommand_args="-f -F ${pidfile}"
X
Xccxstream_precmd () {
X if [ x"${ccxstream_flags}" = xDEFAULT ]; then
X warn must set ccxstream_flags first, no acceptable defaults
X return 1
X fi
X return 0
X}
X
Xrun_rc_command "$1"
END-of-ccxstream/files/ccxstream.sh.sample
echo x - ccxstream/pkg-message
sed 's/^X//' >ccxstream/pkg-message << 'END-of-ccxstream/pkg-message'
XThe ccxstream port will not start when enabled unless the configuration
Xvariable ccxstream_flags is also initialized. See ccxstream.sh in
Xyour ports startup directory for details.
END-of-ccxstream/pkg-message
echo x - ccxstream/Makefile
sed 's/^X//' >ccxstream/Makefile << 'END-of-ccxstream/Makefile'
X# Ports collection makefile for: ccxstream
X# Date created: 2004-08-14
X# Whom: Michael Handler <handler at grendel.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME= ccxstream
XPORTVERSION= 1.0.15
XCATEGORIES= net
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= xbplayer
X
XMAINTAINER= handler at grendel.net
XCOMMENT= Stream media files to XBox Media Center via XBMSP
X
XUSE_GMAKE= yes
X
XUSE_RC_SUBR= yes
XRC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
XSAMPLERC= ${PORTNAME}.sh.sample
XREALRC= ${SAMPLERC:S/.sample//}
X
XPLIST_FILES= bin/ccxstream bin/ccxtest etc/rc.d/${REALRC}
X
X.if !defined(NOPORTDOCS)
XPORTDOCS= README ChangeLog TODO xbmsp-xml.txt xbmsp.txt
X.endif
X
Xpost-build:
X @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
X ${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
X
Xdo-install:
X @${MKDIR} ${PREFIX}/bin
X @${INSTALL_PROGRAM} ${WRKSRC}/ccxstream ${PREFIX}/bin
X @${INSTALL_PROGRAM} ${WRKSRC}/ccxtest ${PREFIX}/bin
X @${INSTALL_SCRIPT} ${WRKDIR}/${SAMPLERC} ${PREFIX}/etc/rc.d/${REALRC}
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for i in ${PORTDOCS}
X @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
X.endfor
X.endif
X
Xpost-install:
X @${CAT} pkg-message
X
X.include <bsd.port.mk>
END-of-ccxstream/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list