From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- .../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.logrotate | 8 + net-misc/icecast/files/icecast.service | 9 ++ net-misc/icecast/files/icecast.xml | 180 +++++++++++++++++++++ net-misc/icecast/files/init.d.icecast-2 | 20 +++ 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.logrotate create mode 100644 net-misc/icecast/files/icecast.service create mode 100644 net-misc/icecast/files/icecast.xml create mode 100644 net-misc/icecast/files/init.d.icecast-2 (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.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 + + + diff --git a/net-misc/icecast/files/init.d.icecast-2 b/net-misc/icecast/files/init.d.icecast-2 new file mode 100644 index 000000000000..bde5877c62b6 --- /dev/null +++ b/net-misc/icecast/files/init.d.icecast-2 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2014 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 $? +} -- cgit v1.2.3-65-gdbad