# 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: # # audio/icecast-kh # audio/icecast-kh/pkg-descr # audio/icecast-kh/distinfo # audio/icecast-kh/Makefile # audio/icecast-kh/pkg-plist # audio/icecast-kh/files # audio/icecast-kh/files/mv-patch-src-stats.c # audio/icecast-kh/files/patch-configure # audio/icecast-kh/files/pkg-message.in # audio/icecast-kh/files/icecast.in # audio/icecast-kh/files/patch-Makefile.in # echo c - audio/icecast-kh mkdir -p audio/icecast-kh > /dev/null 2>&1 echo x - audio/icecast-kh/pkg-descr sed 's/^X//' >audio/icecast-kh/pkg-descr << 'c80a187156f15db92a9390376922b100' 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/ c80a187156f15db92a9390376922b100 echo x - audio/icecast-kh/distinfo sed 's/^X//' >audio/icecast-kh/distinfo << '5c12ac23bfe18ba968111652404a6cc9' XSHA256 (icecast-2.3.3-kh9.tar.gz) = f07bf04bb8fecad4cd213d679d86aa223c68b69e61d1393671af018ce62f4428 XSIZE (icecast-2.3.3-kh9.tar.gz) = 918945 5c12ac23bfe18ba968111652404a6cc9 echo x - audio/icecast-kh/Makefile sed 's/^X//' >audio/icecast-kh/Makefile << '3ca68ef9fde06c8e2240e23aaf1ec99c' X# Created by: Anes Mukhametov X# $FreeBSD$ X# X XPORTNAME= icecast XPORTVERSION= ${ICVERSION}.k${KH} XCATEGORIES= audio net ipv6 XPKGNAMESUFFIX= -kh XDISTNAME= ${PORTNAME}-${ICVERSION}-kh${KH} X XMAINTAINER= anes@anes.su XCOMMENT= A 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_GITHUB= yes XGH_ACCOUNT= karlheyes XGH_PROJECT= icecast-kh XGH_TAGNAME= icecast-${ICVERSION}-kh${KH} XGH_COMMIT= fc206e8 X XUSES= gmake pkgconfig XGNU_CONFIGURE= yes XUSE_RC_SUBR= ${PORTNAME} XSUB_FILES+= pkg-message XCONFIGURE_ENV= OGG_PREFIX=${LOCALBASE} XCFLAGS+= -I${LOCALBASE}/include XLDFLAGS+= -L${LOCALBASE}/lib X XICVERSION= 2.3.3 XKH= 9 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 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 X X.if ! ${PORT_OPTIONS:MDOCS} Xpost-patch: X ${REINPLACE_CMD} \ X -e 's|SUBDIRS = src conf debian doc web admin win32 examples|SUBDIRS = src conf debian web admin win32 examples # doc|' \ X -e 's| install-exec-am install-data-am| install-exec-am|' ${WRKSRC}/Makefile.in X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 3ca68ef9fde06c8e2240e23aaf1ec99c echo x - audio/icecast-kh/pkg-plist sed 's/^X//' >audio/icecast-kh/pkg-plist << '198738f9532a174d0e47b50820eaac8d' Xbin/icecast Xetc/icecast.xml.sample X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS X%%PORTDOCS%%%%DOCSDIR%%/COPYING 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@dirrmtry %%DATADIR%%/web/images X@dirrmtry %%DATADIR%%/web X@dirrmtry %%DATADIR%%/doc X@dirrmtry %%DATADIR%%/admin X@dirrmtry %%DATADIR%% X%%PORTDOCS%%@dirrm %%DOCSDIR%% 198738f9532a174d0e47b50820eaac8d echo c - audio/icecast-kh/files mkdir -p audio/icecast-kh/files > /dev/null 2>&1 echo x - audio/icecast-kh/files/mv-patch-src-stats.c sed 's/^X//' >audio/icecast-kh/files/mv-patch-src-stats.c << '1645791d4e9d62d85ca3b2eeae0c5aff' X--- src/stats.c.orig 2008-05-01 10:22:40.000000000 +0800 X+++ src/stats.c 2012-04-24 02:22:44.574821557 +0800 X@@ -973,7 +973,11 @@ X if (event->source) X { X if (show_mount && strcmp (event->source, show_mount) != 0) X+ { X+ xmlFree (name); X+ xmlFree (value); X break; X+ } X srcnode = _find_xml_node(event->source, &src_nodes, node); X } X else 1645791d4e9d62d85ca3b2eeae0c5aff echo x - audio/icecast-kh/files/patch-configure sed 's/^X//' >audio/icecast-kh/files/patch-configure << 'da669d1681c744072ddc95cd1079fbb7' 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 da669d1681c744072ddc95cd1079fbb7 echo x - audio/icecast-kh/files/pkg-message.in sed 's/^X//' >audio/icecast-kh/files/pkg-message.in << 'cc9a4f5f5b88b2e21d3ba33562dd407f' XTo start icecast at system boot, copy X%%PREFIX%%/etc/icecast.xml.sample to %%PREFIX%%/etc/icecast.xml, customize 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 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********************************************************************** cc9a4f5f5b88b2e21d3ba33562dd407f echo x - audio/icecast-kh/files/icecast.in sed 's/^X//' >audio/icecast-kh/files/icecast.in << '552c3ffe88afb0d2ff10b340a544d2af' X#!/bin/sh X# X# $FreeBSD$ X# X X# PROVIDE: icecast X# REQUIRE: DAEMON X# BEFORE: 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 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" 552c3ffe88afb0d2ff10b340a544d2af echo x - audio/icecast-kh/files/patch-Makefile.in sed 's/^X//' >audio/icecast-kh/files/patch-Makefile.in << '65b5a2edc91ef8fe3d6f3bf977d0f2f7' 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 65b5a2edc91ef8fe3d6f3bf977d0f2f7 exit