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>
This commit is contained in:
parent
628277bfd7
commit
0645a9b3e0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79743
7 changed files with 111 additions and 0 deletions
|
@ -165,6 +165,7 @@
|
|||
SUBDIR += ggsd
|
||||
SUBDIR += ghtool
|
||||
SUBDIR += gicq
|
||||
SUBDIR += gini
|
||||
SUBDIR += gkrellm_snmp
|
||||
SUBDIR += gkrellmqst
|
||||
SUBDIR += gkrellmwireless
|
||||
|
|
38
net/gini/Makefile
Normal file
38
net/gini/Makefile
Normal file
|
@ -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= net multimedia
|
||||
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>
|
1
net/gini/distinfo
Normal file
1
net/gini/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (gini-0.5.1.tar.bz2) = 4b925392f0b44bcd561aea03f312057e
|
23
net/gini/files/gini.sh.sample
Normal file
23
net/gini/files/gini.sh.sample
Normal file
|
@ -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
|
5
net/gini/pkg-descr
Normal file
5
net/gini/pkg-descr
Normal file
|
@ -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/
|
37
net/gini/pkg-install
Normal file
37
net/gini/pkg-install
Normal file
|
@ -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
|
6
net/gini/pkg-plist
Normal file
6
net/gini/pkg-plist
Normal file
|
@ -0,0 +1,6 @@
|
|||
bin/ginicon
|
||||
bin/ginifeed
|
||||
etc/rc.d/gini.sh.sample
|
||||
sbin/gini
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in a new issue