From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../files/icecast-2.3.3-fix-xiph_openssl.patch | 13 ++ net-misc/icecast/files/icecast-2.3.3-libkate.patch | 28 ++++ net-misc/icecast/files/icecast.initd | 20 +++ net-misc/icecast/files/icecast.logrotate | 8 + net-misc/icecast/files/icecast.service | 9 ++ net-misc/icecast/files/icecast.xml | 180 +++++++++++++++++++++ 6 files changed, 258 insertions(+) create mode 100644 net-misc/icecast/files/icecast-2.3.3-fix-xiph_openssl.patch create mode 100644 net-misc/icecast/files/icecast-2.3.3-libkate.patch create mode 100644 net-misc/icecast/files/icecast.initd create mode 100644 net-misc/icecast/files/icecast.logrotate create mode 100644 net-misc/icecast/files/icecast.service create mode 100644 net-misc/icecast/files/icecast.xml (limited to 'net-misc/icecast/files') diff --git a/net-misc/icecast/files/icecast-2.3.3-fix-xiph_openssl.patch b/net-misc/icecast/files/icecast-2.3.3-fix-xiph_openssl.patch new file mode 100644 index 000000000000..7db5be1500de --- /dev/null +++ b/net-misc/icecast/files/icecast-2.3.3-fix-xiph_openssl.patch @@ -0,0 +1,13 @@ +Index: icecast-2.3.3/m4/xiph_openssl.m4 +=================================================================== +--- icecast-2.3.3.orig/m4/xiph_openssl.m4 ++++ icecast-2.3.3/m4/xiph_openssl.m4 +@@ -10,7 +10,7 @@ AC_ARG_WITH(openssl, + AC_HELP_STRING([--with-openssl=PFX],[Prefix where openssl is installed (optional)]), + openssl_prefix="$withval", openssl_prefix="") + +-if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then ++if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes" -a "x$openssl_prefix" != "xno"; then + OPENSSL_LIBS="-L$openssl_prefix/lib -lssl" + OPENSSL_CFLAGS="-I$openssl_prefix/include" + else diff --git a/net-misc/icecast/files/icecast-2.3.3-libkate.patch b/net-misc/icecast/files/icecast-2.3.3-libkate.patch new file mode 100644 index 000000000000..32cbd78ed964 --- /dev/null +++ b/net-misc/icecast/files/icecast-2.3.3-libkate.patch @@ -0,0 +1,28 @@ +Index: icecast-2.3.3/configure.in +=================================================================== +--- icecast-2.3.3.orig/configure.in ++++ icecast-2.3.3/configure.in +@@ -81,14 +81,18 @@ XIPH_PATH_SPEEX( + [ AC_MSG_WARN([Speex support disabled!]) + ]) + +-AC_CHECK_LIB(kate, kate_decode_init,[have_kate=yes],[have_kate=no], -logg) +-if test "x$have_kate" == "xyes" ++AC_ARG_ENABLE([kate], AS_HELP_STRING([--disable-kate], [Disable karaoke and text encapsulation support for ogg])) ++if test "x$enable_kate" != "xno" + then +- AC_CHECK_LIB(oggkate, kate_ogg_decode_headerin,[have_kate=yes],[have_kate=no],-lkate -logg) ++ AC_CHECK_LIB(kate, kate_decode_init,[have_kate=yes],[have_kate=no], -logg) + if test "x$have_kate" == "xyes" + then +- KATE_LIBS="-loggkate -lkate -logg" +- AC_DEFINE([HAVE_KATE],[1],[Define if you have libkate]) ++ AC_CHECK_LIB(oggkate, kate_ogg_decode_headerin,[have_kate=yes],[have_kate=no],-lkate -logg) ++ if test "x$have_kate" == "xyes" ++ then ++ KATE_LIBS="-loggkate -lkate -logg" ++ AC_DEFINE([HAVE_KATE],[1],[Define if you have libkate]) ++ fi + fi + fi + dnl we still use format_kate as it doesn't need libkate to work diff --git a/net-misc/icecast/files/icecast.initd b/net-misc/icecast/files/icecast.initd new file mode 100644 index 000000000000..cb658a3907d4 --- /dev/null +++ b/net-misc/icecast/files/icecast.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +pidfile="/var/run/icecast.pid" +command="/usr/bin/icecast" +command_args="-c /etc/icecast2/icecast.xml" +command_background="true" + +depend() { + need net +} + +reload() { + ebegin "Reloading Icecast2 configuration" + start-stop-daemon --signal HUP --pidfile ${pidfile} + eend $? +} diff --git a/net-misc/icecast/files/icecast.logrotate b/net-misc/icecast/files/icecast.logrotate new file mode 100644 index 000000000000..4e7aafb8edcb --- /dev/null +++ b/net-misc/icecast/files/icecast.logrotate @@ -0,0 +1,8 @@ +/var/log/icecast/*log { + missingok + notifempty + sharedscripts + postrotate + /etc/init.d/icecast reload > /dev/null 2>&1 || true + endscript +} diff --git a/net-misc/icecast/files/icecast.service b/net-misc/icecast/files/icecast.service new file mode 100644 index 000000000000..badb65e5d93c --- /dev/null +++ b/net-misc/icecast/files/icecast.service @@ -0,0 +1,9 @@ +[Unit] +Description=An opensource alternative to shoutcast +After=network.target + +[Service] +ExecStart=/usr/bin/icecast -c /etc/icecast2/icecast.xml + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/icecast/files/icecast.xml b/net-misc/icecast/files/icecast.xml new file mode 100644 index 000000000000..3415885deba4 --- /dev/null +++ b/net-misc/icecast/files/icecast.xml @@ -0,0 +1,180 @@ + + + 100 + 2 + 524288 + 30 + 15 + 10 + + 1 + + 65535 + + + + + hackme + + hackme + + + admin + hackme + + + + + + + localhost + + + + + + + + 8000 + + + + + + + + + + + + + + + + + + 1 + + + + + + + /usr/share/icecast + + + /var/log/icecast + /usr/share/icecast/web + /usr/share/icecast/admin + + + + + + + + + + access.log + error.log + + 4 + 10000 + + + + + + 0 + + icecast + nogroup + + + -- cgit v1.2.3