mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add ccxstream 1.0.15, stream media files to XBox Media Center via XBMSP.
PR: ports/70470 Submitted by: Michael Handler <handler@grendel.net>
This commit is contained in:
parent
2efcd87f3b
commit
73b056be3d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116248
6 changed files with 112 additions and 0 deletions
|
@ -51,6 +51,7 @@
|
|||
SUBDIR += callgen
|
||||
SUBDIR += cap
|
||||
SUBDIR += ccmsn
|
||||
SUBDIR += ccxstream
|
||||
SUBDIR += cdonkey
|
||||
SUBDIR += centericq
|
||||
SUBDIR += cicquin
|
||||
|
|
49
net/ccxstream/Makefile
Normal file
49
net/ccxstream/Makefile
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Ports collection makefile for: ccxstream
|
||||
# Date created: 2004-08-14
|
||||
# Whom: Michael Handler <handler@grendel.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ccxstream
|
||||
PORTVERSION= 1.0.15
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= xbplayer
|
||||
|
||||
MAINTAINER= handler@grendel.net
|
||||
COMMENT= Stream media files to XBox Media Center via XBMSP
|
||||
|
||||
USE_GMAKE= yes
|
||||
|
||||
USE_RC_SUBR= yes
|
||||
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||
SAMPLERC= ${PORTNAME}.sh.sample
|
||||
REALRC= ${SAMPLERC:S/.sample//}
|
||||
|
||||
PLIST_FILES= bin/ccxstream bin/ccxtest etc/rc.d/${REALRC}
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= README ChangeLog TODO xbmsp-xml.txt xbmsp.txt
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/bin
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/ccxstream ${PREFIX}/bin
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/ccxtest ${PREFIX}/bin
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/${SAMPLERC} ${PREFIX}/etc/rc.d/${REALRC}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for i in ${PORTDOCS}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${CAT} pkg-message
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/ccxstream/distinfo
Normal file
2
net/ccxstream/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
MD5 (ccxstream-1.0.15.tar.gz) = c589fff48ce541f26b394c9d82ccbead
|
||||
SIZE (ccxstream-1.0.15.tar.gz) = 40384
|
53
net/ccxstream/files/ccxstream.sh.sample
Normal file
53
net/ccxstream/files/ccxstream.sh.sample
Normal file
|
@ -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 <user>" argument to specify the userid the server will run under
|
||||
# (unless you WANT to run this code as root), and the "-r <directory>"
|
||||
# argument to configure the directory root that the server will share
|
||||
# from.
|
||||
#
|
||||
# Don't worry about the "-f" (background) and "-F <pidfile>" 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"
|
4
net/ccxstream/pkg-descr
Normal file
4
net/ccxstream/pkg-descr
Normal file
|
@ -0,0 +1,4 @@
|
|||
Server to stream music and video files from your UNIX server to an
|
||||
XBox running XBox Media Player using the XBMSP protocol.
|
||||
|
||||
WWW: http://www.xboxmediacenter.de/
|
3
net/ccxstream/pkg-message
Normal file
3
net/ccxstream/pkg-message
Normal file
|
@ -0,0 +1,3 @@
|
|||
The ccxstream port will not start when enabled unless the configuration
|
||||
variable ccxstream_flags is also initialized. See ccxstream.sh in
|
||||
your ports startup directory for details.
|
Loading…
Add table
Reference in a new issue