Skip site navigation (1)Skip section navigation (2)
Date:      7 Oct 2003 07:42:45 -0000
From:      "Jose R.Rey" <king@v2project.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/57693: Port Update net/xbms
Message-ID:  <20031007074245.69675.qmail@v2project.com>
Resent-Message-ID: <200310070750.h977oHAM072062@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         57693
>Category:       ports
>Synopsis:       Port Update net/xbms
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 07 00:50:16 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jose R.Rey
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
Materia Gris
>Environment:


	
>Description:
	Port Update net/xbms
	add useful rc.d startup script
>How-To-Repeat:
>Fix:


--- xbms-30.6.shar begins here ---
# 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:
#
#	xbms
#	xbms/files
#	xbms/files/xbms.sh.sample
#	xbms/files/patch-Makefile
#	xbms/files/patch-server
#	xbms/Makefile
#	xbms/distinfo
#	xbms/pkg-descr
#	xbms/pkg-plist
#
echo c - xbms
mkdir -p xbms > /dev/null 2>&1
echo c - xbms/files
mkdir -p xbms/files > /dev/null 2>&1
echo x - xbms/files/xbms.sh.sample
sed 's/^X//' >xbms/files/xbms.sh.sample << 'END-of-xbms/files/xbms.sh.sample'
X#!/bin/sh
X#
X# Start or stop the xbms server
X#
X
Xpidfile="/var/run/xbms.pid"
Xname="xbms"
X
Xcase "$1" in
X	start)
X		echo -n " xbms"
X		if [ -f /usr/local/etc/xbms.conf.sample ]; then
X			/usr/local/bin/xbms
X		fi
X		;;
X
X	stop)
X		if [ ! -f /var/run/xbms.pid ]; then
X			echo "XBMS not running"
X			exit 64
X		fi
X		kill `cat /var/run/xbms.pid`
X		;;
Xstatus)
X        ps -auxww | egrep ${name} | egrep -v "($0|egrep)"
X        ;;
X
X	*)
X		echo ""
X		echo "Usage: `basename $0` { start | stop | status}"
X		echo ""
X		exit 64
X		;;
Xesac
END-of-xbms/files/xbms.sh.sample
echo x - xbms/files/patch-Makefile
sed 's/^X//' >xbms/files/patch-Makefile << 'END-of-xbms/files/patch-Makefile'
X--- Makefile.orig	Thu Jan 16 16:27:25 2003
X+++ Makefile	Thu Jan 16 16:27:36 2003
X@@ -1,5 +1,5 @@
X CC =            gcc -Wall
X-BINDIR =        /usr/local/bin
X+BINDIR =        ${PREFIX}/bin
X all:    server
X server:         
X 	$(CC) -O3 -pthread -o xbms server.c
END-of-xbms/files/patch-Makefile
echo x - xbms/files/patch-server
sed 's/^X//' >xbms/files/patch-server << 'END-of-xbms/files/patch-server'
X--- server.c.orig	Fri Dec 20 00:00:41 2002
X+++ server.c	Fri Dec 20 00:00:55 2002
X@@ -55,7 +55,7 @@
X 
X #define VERSION "0.30.5"
X 
X-#define CONFIG "/etc/xbms.conf"
X+#define CONFIG "@@PREFIX@@/etc/xbms.conf"
X #define PIDFILE "/var/run/xbms.pid"
X #define C_SERVER_PORT 1400
X #define MAX_MSG_LENGTH 4096
END-of-xbms/files/patch-server
echo x - xbms/Makefile
sed 's/^X//' >xbms/Makefile << 'END-of-xbms/Makefile'
X# New ports collection makefile for:	xbms
X# Date created:				Thu Dec 19 23:38:50 CET 2002
X# Whom:					king@v2project.com
X#
X# $FreeBSD: ports/net/xbms/Makefile,v 1.3 2003/07/01 12:57:47 daichi Exp $
X#
X
XPORTNAME=	xbms
XPORTVERSION=	0.30.6
XCATEGORIES=	net
XMASTER_SITES=	http://wipux2.wifo.uni-mannheim.de/~ck/
XDISTNAME=       ${PORTNAME}_${PORTVERSION}
X
XMAINTAINER=	king@v2project.com
XCOMMENT=	Xbms, the unix streaming server for xbox mediaplayer
X
XONLY_FOR_ARCHS=	i386 alpha
XUSE_REINPLACE=	yes
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/server.c
X
Xpost-install:
X	${CP} ${WRKSRC}/xbms.conf ${PREFIX}/etc/xbms.conf.sample
X	${CP} ${FILESDIR}/xbms.sh.sample ${PREFIX}/etc/rc.d/xbms.sh.sample
X
X.include <bsd.port.mk>
END-of-xbms/Makefile
echo x - xbms/distinfo
sed 's/^X//' >xbms/distinfo << 'END-of-xbms/distinfo'
XMD5 (xbms_0.30.6.tar.gz) = 891a95eced78a06c6ff9a3661b77af2b
END-of-xbms/distinfo
echo x - xbms/pkg-descr
sed 's/^X//' >xbms/pkg-descr << 'END-of-xbms/pkg-descr'
Xxbms, the unix streaming server for xbox mediaplayer. 
XWith xbms, it is possible to 'share' movies, pictures 
Xand audio on your unix box, so they are accessible from your xbox.
X
XWWW: http://www.xboxmediaplayer.de
END-of-xbms/pkg-descr
echo x - xbms/pkg-plist
sed 's/^X//' >xbms/pkg-plist << 'END-of-xbms/pkg-plist'
Xbin/xbms
Xetc/xbms.conf.sample
END-of-xbms/pkg-plist
exit
--- xbms-30.6.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031007074245.69675.qmail>