ports/51335: New port: multimedia/gini - a lightweight streaming server

Kimura Fuyuki fuyuki at hadaly.org
Thu Apr 24 00:10:11 UTC 2003


>Number:         51335
>Category:       ports
>Synopsis:       New port: multimedia/gini - a lightweight streaming server
>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:   Wed Apr 23 17:10:05 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki <fuyuki at hadaly.org>
>Release:        FreeBSD 5.0-RELEASE-p5 i386
>Organization:
>Environment:

  FreeBSD hadaly.dyndns.org 5.0-RELEASE-p5 FreeBSD 5.0-RELEASE-p5 #1: Fri Mar 21 10:29:48 JST 2003     root at hadaly.dyndns.org:/.2/obj/usr/src/sys/NS  i386

>Description:
[Maybe this port should belong to net/ rather than multimedia/, since
other multimedia streamers (DarwinStreamingServer, xbms) are
there. (but icecast is in audio/ !)]

GINI is a lightweight, mostly Icecast/Shoutcast compatible streaming
server for broadcasting Ogg Vorbis, MP3, RIFF AVI, ASF/WMV, QuickTime
and RealMedia format files.

WWW: http://gini.sourceforge.net/

>How-To-Repeat:

>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:
#
#	gini
#	gini/Makefile
#	gini/distinfo
#	gini/pkg-descr
#	gini/pkg-plist
#	gini/files
#	gini/files/gini.sh.sample
#	gini/pkg-install
#
echo c - gini
mkdir -p gini > /dev/null 2>&1
echo x - gini/Makefile
sed 's/^X//' >gini/Makefile << 'END-of-gini/Makefile'
X# New ports collection makefile for:   GINI
X# Date created:                23 April 2003
X# Whom:                        Kimura Fuyuki <fuyuki at hadaly.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gini
XPORTVERSION=	0.5.1
XCATEGORIES=	multimedia net
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	fuyuki at hadaly.org
XCOMMENT=	A lightweight media streaming server
X
XLIB_DEPENDS=	vorbis.2:${PORTSDIR}/audio/libvorbis
X
XUSE_BZIP2=	yes
XUSE_GNOME=	glib12
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
XUSE_GMAKE=	yes
X
XMAN1=		ginicon.1 ginifeed.1
XMAN8=		gini.8
X
Xpre-install:
X	@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xpost-install:
X	${INSTALL_SCRIPT} ${FILESDIR}/gini.sh.sample ${PREFIX}/etc/rc.d
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-gini/Makefile
echo x - gini/distinfo
sed 's/^X//' >gini/distinfo << 'END-of-gini/distinfo'
XMD5 (gini-0.5.1.tar.bz2) = 4b925392f0b44bcd561aea03f312057e
END-of-gini/distinfo
echo x - gini/pkg-descr
sed 's/^X//' >gini/pkg-descr << 'END-of-gini/pkg-descr'
XGINI is a lightweight, mostly Icecast/Shoutcast compatible streaming
Xserver for broadcasting Ogg Vorbis, MP3, RIFF AVI, ASF/WMV, QuickTime
Xand RealMedia format files.
X
XWWW: http://gini.sourceforge.net/
END-of-gini/pkg-descr
echo x - gini/pkg-plist
sed 's/^X//' >gini/pkg-plist << 'END-of-gini/pkg-plist'
Xbin/ginicon
Xbin/ginifeed
Xetc/rc.d/gini.sh.sample
Xsbin/gini
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-gini/pkg-plist
echo c - gini/files
mkdir -p gini/files > /dev/null 2>&1
echo x - gini/files/gini.sh.sample
sed 's/^X//' >gini/files/gini.sh.sample << 'END-of-gini/files/gini.sh.sample'
X#!/bin/sh
X
Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
X	echo "$0: Cannot determine the PREFIX" >&2
X	exit 1
Xfi
X
Xcase "$1" in
Xstart)
X	if [ -x ${PREFIX}/sbin/gini ]; then
X		su -m gini -c "cd /var/log/gini && ${PREFIX}/sbin/gini -z >/dev/null" \
X		    && echo -n ' gini'
X	fi
X	;;
Xstop)
X	killall gini && echo -n ' gini'
X	;;
X*)
X	echo "Usage: `basename $0` {start|stop}" >&2
X	;;
Xesac
X
Xexit 0
END-of-gini/files/gini.sh.sample
echo x - gini/pkg-install
sed 's/^X//' >gini/pkg-install << 'END-of-gini/pkg-install'
X#!/bin/sh
X
XLOGDIR=/var/log/gini
X
Xcase $2 in
XPRE-INSTALL)
X	USER=gini
X	GROUP=${USER}
X
X	if pw group show "${GROUP}" 2>/dev/null; then
X		echo "You already have a group \"${GROUP}\", so I will use it."
X	else
X		if pw groupadd ${GROUP}; then
X			echo "Added group \"${GROUP}\"."
X		else
X			echo "Adding group \"${GROUP}\" failed..."
X			exit 1
X		fi
X	fi
X
X	if pw user show "${USER}" 2>/dev/null; then
X		echo "You already have a user \"${USER}\", so I will use it."
X	else
X		if pw useradd ${USER} -g ${GROUP} -h - \
X		    -s /sbin/nologin -d /nonexistent -c 'GINI streaming server'
X		then
X			echo "Added user \"${USER}\"."
X		else
X			echo "Adding user \"${USER}\" failed..."
X			exit 1
X		fi
X	fi
X
X	mkdir -p ${LOGDIR}
X	chown -R gini:gini ${LOGDIR}
X	;;
Xesac
END-of-gini/pkg-install
exit

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



More information about the freebsd-ports-bugs mailing list