diff options
author | nork <nork@FreeBSD.org> | 2003-04-27 06:12:20 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-04-27 06:12:20 +0800 |
commit | 7a311d26da938d7583aae08a2b153f05834842ca (patch) | |
tree | e0f8c49a223cf1dcbf868c1dc5f7526f2dac03ad | |
parent | 78131b4cef0983e978ea3ac543fc5e75865ae4f7 (diff) | |
download | freebsd-ports-gnome-7a311d26da938d7583aae08a2b153f05834842ca.tar.gz freebsd-ports-gnome-7a311d26da938d7583aae08a2b153f05834842ca.tar.zst freebsd-ports-gnome-7a311d26da938d7583aae08a2b153f05834842ca.zip |
Add gini 0.5.1, a lightweight media streaming server, mostly
Icecast/Shoutcast compatible streaming server for broadcasting
Ogg Vorbis, MP3, RIFF AVI, ASF/WMV, QuickTime and RealMedia
format files.
PR: ports/51335
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
-rw-r--r-- | multimedia/Makefile | 1 | ||||
-rw-r--r-- | multimedia/gini/Makefile | 38 | ||||
-rw-r--r-- | multimedia/gini/distinfo | 1 | ||||
-rw-r--r-- | multimedia/gini/files/gini.sh.sample | 23 | ||||
-rw-r--r-- | multimedia/gini/pkg-descr | 5 | ||||
-rw-r--r-- | multimedia/gini/pkg-install | 37 | ||||
-rw-r--r-- | multimedia/gini/pkg-plist | 6 |
7 files changed, 111 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile index 4e2618656571..855974ae8084 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -15,6 +15,7 @@ SUBDIR += ffmpeg SUBDIR += ffmpeg045 SUBDIR += fxtv + SUBDIR += gini SUBDIR += goggles SUBDIR += gopchop SUBDIR += gstreamer diff --git a/multimedia/gini/Makefile b/multimedia/gini/Makefile new file mode 100644 index 000000000000..b81b29103466 --- /dev/null +++ b/multimedia/gini/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: GINI +# Date created: 23 April 2003 +# Whom: Kimura Fuyuki <fuyuki@hadaly.org> +# +# $FreeBSD$ +# + +PORTNAME= gini +PORTVERSION= 0.5.1 +CATEGORIES= multimedia net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= fuyuki@hadaly.org +COMMENT= A lightweight media streaming server + +LIB_DEPENDS= vorbis.2:${PORTSDIR}/audio/libvorbis + +USE_BZIP2= yes +USE_GNOME= glib12 +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +USE_GMAKE= yes + +MAN1= ginicon.1 ginifeed.1 +MAN8= gini.8 + +pre-install: + @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + +post-install: + ${INSTALL_SCRIPT} ${FILESDIR}/gini.sh.sample ${PREFIX}/etc/rc.d +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/multimedia/gini/distinfo b/multimedia/gini/distinfo new file mode 100644 index 000000000000..cbde6a5611d3 --- /dev/null +++ b/multimedia/gini/distinfo @@ -0,0 +1 @@ +MD5 (gini-0.5.1.tar.bz2) = 4b925392f0b44bcd561aea03f312057e diff --git a/multimedia/gini/files/gini.sh.sample b/multimedia/gini/files/gini.sh.sample new file mode 100644 index 000000000000..4a2658c40a1e --- /dev/null +++ b/multimedia/gini/files/gini.sh.sample @@ -0,0 +1,23 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + if [ -x ${PREFIX}/sbin/gini ]; then + su -m gini -c "cd /var/log/gini && ${PREFIX}/sbin/gini -z >/dev/null" \ + && echo -n ' gini' + fi + ;; +stop) + killall gini && echo -n ' gini' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/multimedia/gini/pkg-descr b/multimedia/gini/pkg-descr new file mode 100644 index 000000000000..4168bee0bd4c --- /dev/null +++ b/multimedia/gini/pkg-descr @@ -0,0 +1,5 @@ +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/ diff --git a/multimedia/gini/pkg-install b/multimedia/gini/pkg-install new file mode 100644 index 000000000000..1024c4cc7230 --- /dev/null +++ b/multimedia/gini/pkg-install @@ -0,0 +1,37 @@ +#!/bin/sh + +LOGDIR=/var/log/gini + +case $2 in +PRE-INSTALL) + USER=gini + GROUP=${USER} + + if pw group show "${GROUP}" 2>/dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if pw groupadd ${GROUP}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + + if pw user show "${USER}" 2>/dev/null; then + echo "You already have a user \"${USER}\", so I will use it." + else + if pw useradd ${USER} -g ${GROUP} -h - \ + -s /sbin/nologin -d /nonexistent -c 'GINI streaming server' + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi + fi + + mkdir -p ${LOGDIR} + chown -R gini:gini ${LOGDIR} + ;; +esac diff --git a/multimedia/gini/pkg-plist b/multimedia/gini/pkg-plist new file mode 100644 index 000000000000..bcb7b0052be9 --- /dev/null +++ b/multimedia/gini/pkg-plist @@ -0,0 +1,6 @@ +bin/ginicon +bin/ginifeed +etc/rc.d/gini.sh.sample +sbin/gini +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% |