From handler@lair.grendel.net  Sun Aug 15 08:59:06 2004
Return-Path: <handler@lair.grendel.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6C6D516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 15 Aug 2004 08:59:06 +0000 (GMT)
Received: from monster.grendel.net (monster.grendel.net [69.17.104.140])
	by mx1.FreeBSD.org (Postfix) with SMTP id ED93C43D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 15 Aug 2004 08:59:05 +0000 (GMT)
	(envelope-from handler@lair.grendel.net)
Received: (qmail 45921 invoked from network); 15 Aug 2004 08:59:25 -0000
Received: from lair.grendel.net (69.17.104.120)
  by 0 with SMTP; 15 Aug 2004 08:59:25 -0000
Received: (from handler@localhost)
	by lair.grendel.net (8.13.1/8.13.1/Submit) id i7F8x4YH074822;
	Sun, 15 Aug 2004 04:59:04 -0400 (EDT)
	(envelope-from handler)
Message-Id: <200408150859.i7F8x4YH074822@lair.grendel.net>
Date: Sun, 15 Aug 2004 04:59:04 -0400 (EDT)
From: Michael Handler <handler@grendel.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: handler@grendel.net
Subject: New port: net/ccxstream: XBMSP streamer for XBox Media Center
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 15 09:00:39 GMT 2004
>Closed-Date:    Sun Aug 15 13:07:15 GMT 2004
>Last-Modified:  Sun Aug 15 13:07:15 GMT 2004
>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@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@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@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:
State-Changed-From-To: open->closed 
State-Changed-By: vanilla 
State-Changed-When: Sun Aug 15 13:07:07 GMT 2004 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70470 
>Unformatted:
