ports/176445: New port: audio/icecast-kh Streaming mp3/ogg-vorbis audio server, kh branch

Eugene Grosbein eugen at grosbein.net
Tue Feb 26 18:40:01 UTC 2013


>Number:         176445
>Category:       ports
>Synopsis:       New port: audio/icecast-kh Streaming mp3/ogg-vorbis audio server, kh branch
>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:   Tue Feb 26 18:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 8.3-STABLE amd64
>Organization:
RDTC JSC
>Environment:
System: FreeBSD grosbein.pp.ru 8.3-STABLE FreeBSD 8.3-STABLE #24: Sat Jan 26 00:13:54 NOVT 2013 root at grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV amd64

>Description:
	This new port presents icecast 2.3.3-kh5, a fork of well-known
	icecast2 streaming audio server. The port is based
	on audio/icecast2 port, that was heavily modified.

	icecast 2.3.3-kh5 was has many new useful features
	not present in original icecast2 and deals with severe load just fine.

>How-To-Repeat:
	N/A
>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:
#
#	icecast-kh
#	icecast-kh/files
#	icecast-kh/files/pkg-message.in
#	icecast-kh/files/patch-configure
#	icecast-kh/files/icecast.in
#	icecast-kh/files/patch-Makefile.in
#	icecast-kh/pkg-descr
#	icecast-kh/pkg-plist
#	icecast-kh/distinfo
#	icecast-kh/Makefile
#
echo c - icecast-kh
mkdir -p icecast-kh > /dev/null 2>&1
echo c - icecast-kh/files
mkdir -p icecast-kh/files > /dev/null 2>&1
echo x - icecast-kh/files/pkg-message.in
sed 's/^X//' >icecast-kh/files/pkg-message.in << '7f93f8e7793e11f133dce9e309dbb77c'
XTo start icecast at system boot, customize %%PREFIX%%/etc/icecast.xml
Xto your environment as desired and add:
X
Xicecast_enable="YES"
X
Xto /etc/rc.conf. See the icecast -h command for optional additional
Xflags. To specify an alternative config file for example add:
X
Xicecast_flags="-c /path/to/your/configuration.xml"
X
X**********************************************************************
X**  Make sure the <changeowner> section in your configuration file  **
X**     is NOT commented out. Icecast will refuse to run as root.    **
X**                                                                  ** 
X** Also make sure that the user you choose is able to write to your **
X**  configured log directory, otherwise icecast will refuse to run. **
X**********************************************************************
7f93f8e7793e11f133dce9e309dbb77c
echo x - icecast-kh/files/patch-configure
sed 's/^X//' >icecast-kh/files/patch-configure << '81bd15c9b03ef6d24a22b9ab1d768560'
X--- configure.orig	2012-09-12 09:17:21.000000000 +0700
X+++ configure	2013-02-24 02:48:14.000000000 +0700
X@@ -793,6 +793,7 @@
X with_speex
X with_curl
X with_curl_config
X+with_kate
X enable_yp
X with_openssl
X '
X@@ -17610,6 +17611,16 @@
X 
X fi
X 
X+# Check whether --with-kate was given.
X+if test "${with_kate+set}" = set; then :
X+  withval=$with_kate; kate_prefix="$withval"
X+fi
X+
X+if test "x$kate_prefix" = "xno"
X+then
X+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libkate support disabled by request" >&5
X+$as_echo "libkate support disabled by request" >&6; }
X+else
X 
X { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_decode_init in -lkate" >&5
X $as_echo_n "checking for kate_decode_init in -lkate... " >&6; }
X@@ -17707,6 +17718,7 @@
X fi
X #ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_kate.o"
X 
X+fi
X 
X 
X 
81bd15c9b03ef6d24a22b9ab1d768560
echo x - icecast-kh/files/icecast.in
sed 's/^X//' >icecast-kh/files/icecast.in << '43509185eebb167158d89cf43baca7c9'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: icecast
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X
X# Add the following line to /etc/rc.conf to enable `icecast'.
X#
X#icecast_enable="YES"
X#
X# To specify a non-default configuration file, set icecast_config
X# in /etc/rc.conf:
X#
X#icecast_config="%%PREFIX%%/etc/icecast.xml"
X#
X# Make sure the <changeowner> section in your configuration file is
X# not commented out - icecast refuses to run as root.
X#
X
X. /etc/rc.subr
X
Xname="icecast"
Xrcvar=icecast_enable
X
Xcommand="%%PREFIX%%/bin/icecast"
Xcommand_args="-b 1>/dev/null"
Xextra_commands="reload"
X
X# read configuration and set defaults
Xload_rc_config "$name"
X: ${icecast_enable="NO"}
X: ${icecast_config="%%PREFIX%%/etc/${name}.xml"}
X: ${icecast_flags="-c ${icecast_config}"}
X
Xrequired_files="${icecast_config}"
X
Xrun_rc_command "$1"
43509185eebb167158d89cf43baca7c9
echo x - icecast-kh/files/patch-Makefile.in
sed 's/^X//' >icecast-kh/files/patch-Makefile.in << '23b844be8c5528d4d7883b35169babe5'
X--- conf/Makefile.in.orig	2008-05-30 08:58:57.000000000 +0900
X+++ conf/Makefile.in	2010-05-14 17:36:16.000000000 +0900
X@@ -407,8 +407,7 @@
X
X install-data-hook:
X 	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
X-	test -f $(DESTDIR)$(sysconfdir)/icecast.xml || \
X-	$(INSTALL_DATA) icecast.xml.dist $(DESTDIR)$(sysconfdir)/icecast.xml
X+	$(INSTALL_DATA) icecast.xml.dist $(DESTDIR)$(sysconfdir)/icecast.xml.sample
X 
X icecast.xml.dist: $(srcdir)/icecast.xml.in
X 	$(edit) $(srcdir)/icecast.xml.in > icecast.xml.dist
23b844be8c5528d4d7883b35169babe5
echo x - icecast-kh/pkg-descr
sed 's/^X//' >icecast-kh/pkg-descr << '0054822bbe4f357930604d44bf526fdf'
XIcecast-kh is a fork of icecast, a streaming mp3/ogg-vorbis audio server.
X
XIcecast provides nearly all the functionality of the Shoutcast server.
XIt will accept encoding streams from encoders like winamp, shout and ices.
XIt can also add itself to a directory server such as our own
Xicecast.linuxpower.org or Nullsoft's yp.shoutcast.com.
X
XWWW: https://github.com/karlheyes/icecast-kh/
0054822bbe4f357930604d44bf526fdf
echo x - icecast-kh/pkg-plist
sed 's/^X//' >icecast-kh/pkg-plist << '6deadc78fe937b292592d30fc6dc10a9'
Xbin/icecast
X at unexec if cmp -s %D/etc/icecast.xml.sample %D/etc/icecast.xml; then rm -f %D/etc/icecast.xml; fi
Xetc/icecast.xml.sample
X at exec if [ ! -f %D/etc/icecast.xml ]; then cp -p %D/%F %B/icecast.xml; fi
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/TODO
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_admin.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_basicsetup.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_config_file.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_faq.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_glossary.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_introduction.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_listenerauth.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_relay.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_stats.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_win32.html
X%%PORTDOCS%%%%DOCSDIR%%/icecast2_yp.html
X%%PORTDOCS%%%%DOCSDIR%%/index.html
X%%DATADIR%%/admin/listclients.xsl
X%%DATADIR%%/admin/listmounts.xsl
X%%DATADIR%%/admin/logs.xsl
X%%DATADIR%%/admin/manageauth.xsl
X%%DATADIR%%/admin/managerelays.xsl
X%%DATADIR%%/admin/moveclients.xsl
X%%DATADIR%%/admin/response.xsl
X%%DATADIR%%/admin/showlog.xsl
X%%DATADIR%%/admin/stats.xsl
X%%DATADIR%%/admin/updatemetadata.xsl
X%%DATADIR%%/admin/viewxml.xsl
X%%DATADIR%%/admin/xspf.xsl
X%%DATADIR%%/doc/icecast.xml.dist
X%%DATADIR%%/doc/icecast_minimal.xml.dist
X%%DATADIR%%/doc/icecast_shoutcast_compat.xml.dist
X%%DATADIR%%/web/7.xsl
X%%DATADIR%%/web/admin.html
X%%DATADIR%%/web/adminbar.html
X%%DATADIR%%/web/auth.xsl
X%%DATADIR%%/web/favicon.ico
X%%DATADIR%%/web/images/corner_bottomleft.jpg
X%%DATADIR%%/web/images/corner_bottomright.jpg
X%%DATADIR%%/web/images/corner_topleft.jpg
X%%DATADIR%%/web/images/corner_topright.jpg
X%%DATADIR%%/web/images/icecast.png
X%%DATADIR%%/web/images/key.png
X%%DATADIR%%/web/images/tunein.png
X%%DATADIR%%/web/index.html
X%%DATADIR%%/web/server_version.xsl
X%%DATADIR%%/web/status.xsl
X%%DATADIR%%/web/status2.xsl
X%%DATADIR%%/web/statusbar.html
X%%DATADIR%%/web/style.css
X at dirrm %%DATADIR%%/web/images
X at dirrm %%DATADIR%%/web
X at dirrm %%DATADIR%%/doc
X at dirrm %%DATADIR%%/admin
X at dirrm %%DATADIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
6deadc78fe937b292592d30fc6dc10a9
echo x - icecast-kh/distinfo
sed 's/^X//' >icecast-kh/distinfo << '3c1e6e40532ecc4735eef9af113d4d84'
XSHA256 (icecast-2.3.3-kh5.tar.gz) = 80cb27b417c9649cadddfe0a04cf2382c801a518245be5679052dea4dbf76c9f
XSIZE (icecast-2.3.3-kh5.tar.gz) = 938511
3c1e6e40532ecc4735eef9af113d4d84
echo x - icecast-kh/Makefile
sed 's/^X//' >icecast-kh/Makefile << 'eb4a41aa0c672ef198641d9d46b146bb'
X# $FreeBSD$
X
XPORTNAME=	icecast
XPORTVERSION=	${ICECAST_VERSION}.k${KH}
XCATEGORIES=	audio net ipv6
XMASTER_SITES=	http://github.com/downloads/karlheyes/${PORTNAME}-${PKGNAMESUFFIX}/ \
X		http://www.grosbein.net/freebsd/${PORTNAME}-${PKGNAMESUFFIX}/
XPKGNAMESUFFIX=	kh
XDISTNAME=	icecast-${ICECAST_VERSION}-kh${KH}
X
XMAINTAINER=	ports at grosbein.net
XCOMMENT=	Streaming mp3/ogg-vorbis audio server, kh branch
X
XLICENSE=	GPLv2
X
XBUILD_DEPENDS=	libogg>=1.2.2:${PORTSDIR}/audio/libogg \
X		libtheora>=1.1.1:${PORTSDIR}/multimedia/libtheora \
X		libvorbis>=1.3.3:${PORTSDIR}/audio/libvorbis \
X		libxml2>=2.7.8:${PORTSDIR}/textproc/libxml2 \
X		libxslt>=1.1.26:${PORTSDIR}/textproc/libxslt
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XUSE_OPENSSL=	yes
XUSE_PKGCONFIG=	yes
XUSE_RC_SUBR=	${PORTNAME}
XSUB_FILES+=	pkg-message
XCONFIGURE_ENV=	OGG_PREFIX=${LOCALBASE}
XCFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
X
XICECAST_VERSION=2.3.3
XKH=		5
XFETCH_ARGS=	-Fpr
X
XOPTIONS_DEFINE=		CURL DOCS KATE SPEEX SSL_PORT
XOPTIONS_DEFAULT=	CURL KATE SPEEX
XCURL_DESC=		Support Directory server interaction (YP) via curl
XKATE_DESC=		Support Kate/Skeleton codec within Ogg streams
XSPEEX_DESC=		Support Speex codec within Ogg streams
XSSL_PORT_DESC=		Use OpenSSL from ports instead of one in the base
X
XCONFLICTS_INSTALL=	icecast-[0-9]* icecast2-[0-9]*
X
XMAKE_JOBS_SAFE=yes
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MCURL}
XBUILD_DEPENDS+=	curl>=7.10:${PORTSDIR}/ftp/curl
XCONFIGURE_ARGS+=	--with-curl=${LOCALBASE}
X.else
XCONFIGURE_ARGS+=	--without-curl
X.endif
X
X.if ${PORT_OPTIONS:MKATE}
XBUILD_DEPENDS+=	libkate>=0.4.1:${PORTSDIR}/multimedia/libkate
X.else
XCONFIGURE_ARGS+=	--without-kate
X.endif
X
X.if ${PORT_OPTIONS:MSPEEX}
XBUILD_DEPENDS+=	speex>=1:${PORTSDIR}/audio/speex
XCONFIGURE_ARGS+=	--with-speex=${LOCALBASE}
X.else
XCONFIGURE_ARGS+=	--without-speex
X.endif
X
X.if ${PORT_OPTIONS:MSSL_PORT}
XWITH_OPENSSL_PORT=	yes
X.else
XWITH_OPENSSL_BASE=	yes
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if ! ${PORT_OPTIONS:MDOCS}
Xpost-patch:
X	${REINPLACE_CMD} -e 's|^\(SUBDIRS =.*\) doc \(.*\)|\1 \2 # doc|' \
X	-e 's| install-exec-am install-data-am| install-exec-am|' \
X		${WRKSRC}/Makefile.in
X.endif
X
XRUN_DEPENDS:=	${BUILD_DEPENDS}
X
XCONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
X
Xpost-install:
X	@if [ ! -f ${PREFIX}/etc/${PORTNAME}.xml ]; then\
X	    ${CP} -p ${PREFIX}/etc/${PORTNAME}.xml.sample ${PREFIX}/etc/${PORTNAME}.xml; \
X	fi
X.if ${PORT_OPTIONS:MDOCS}
X	@${RM} -f ${DOCSDIR}/COPYING
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
eb4a41aa0c672ef198641d9d46b146bb
exit



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


More information about the freebsd-ports-bugs mailing list