summaryrefslogtreecommitdiff
path: root/net-misc/icecast
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/icecast')
-rw-r--r--net-misc/icecast/Manifest11
-rw-r--r--net-misc/icecast/files/icecast-2.3.3-fix-xiph_openssl.patch13
-rw-r--r--net-misc/icecast/files/icecast-2.3.3-libkate.patch28
-rw-r--r--net-misc/icecast/files/icecast.initd20
-rw-r--r--net-misc/icecast/files/icecast.logrotate8
-rw-r--r--net-misc/icecast/files/icecast.service9
-rw-r--r--net-misc/icecast/files/icecast.xml180
-rw-r--r--net-misc/icecast/icecast-2.4.3.ebuild91
-rw-r--r--net-misc/icecast/metadata.xml13
9 files changed, 373 insertions, 0 deletions
diff --git a/net-misc/icecast/Manifest b/net-misc/icecast/Manifest
new file mode 100644
index 000000000000..eb9d4623a7e8
--- /dev/null
+++ b/net-misc/icecast/Manifest
@@ -0,0 +1,11 @@
+AUX icecast-2.3.3-fix-xiph_openssl.patch 648 SHA256 5804664e9add19dd679056b7ea07f19aa63205c7e5b84b2bc858c420e9688c57 SHA512 fa4014a3aad9886b14f6551cf72c8ae8d97b6879302fc11e8a7b120464540c077786a3209e5f87316393362a9e00d759686c9a3448dd00ec0503e025d28301f2 WHIRLPOOL 2b1e52069b970ecd2091236287c09034741959d61b9a18dcb66fc7059817367e5cabea7334d3887f432b4a26a578225cfb240ff68cdaa5c03ea35bfb2dd9077e
+AUX icecast-2.3.3-libkate.patch 1175 SHA256 880cef8feed886933eae495f547d10b3f9462a87f0812718bca6f454f25ecc40 SHA512 4ecacacb422ceb71bb6f8857228b2c00e2564d6926124aa8e9430b0f1466df934146fcbbc67194a6e644f6c4c16421474016909c385ec2271967730f80f5b8b3 WHIRLPOOL 0a2bea3dc404a61663b606bb14e862a3e2a985519133d80919406a7e4c86dddb3d2bb25e2af044cc02fd5d0528dcf7889e66b30dc5c05a3068cd3ab0af7b98d0
+AUX icecast.initd 431 SHA256 2b86cbceb69d2f9dffc9f238ff3d91c6be87e653127f1a55a22cd0f82c7a7490 SHA512 5f15d51057207976bc5b8219f44c73d7e01b1032630270c25c02f398668650d3f5ddf776c72235c8db6a8d227fc2f918c6bd473154bb412e2804f068f7667a0d WHIRLPOOL 1769abb73bafd91269bb648ae08c68f8e5a21baca9fed0c608a872cf2b4680d07fc7b1495fd316cce5f9707ace36c9162d596b4eac2cb6325d7a67fe0a58cac6
+AUX icecast.logrotate 140 SHA256 da38b3c3233bf7a4a059100361ecb1083fd74f22dbb5b8200a0eaad699ae1d0d SHA512 8aead6208b97b1d1cbd5d17a61dd3dd2493bdf68bfefc3ab6f9ae3e1acc856435942de7a129ef701c5379450428b9718e50701636e16d9e1ddccc8c752c2ccac WHIRLPOOL 88ae3b16f3e2c0a2e3defc86eabe24a83a94e23267a362652dc6282d04c31b8d33f6d377426c6a45b58fffb5569a7ba1e3303af9cc9d37318ea1d72a2b44c082
+AUX icecast.service 185 SHA256 fbb6dfff2d5075d5921138352c7242742fc1e8f228fa977ea704f0270e8e8817 SHA512 a1e662f9b39ecbd35f28e849c5ae9db314d12e8fcefb152660180e9b51fe538197522c5ddda4908a4012ebe73ac4f9a6c12543a01548e9c41f17b5a17b942f51 WHIRLPOOL 62657838fe2f43cb0a1881b7de58a763cd19541ca14a9ff5d487cd69380eeab0e8f1d061a8b6b7b2230c5f6ef94f98f100d3d014d6be42960ac6ff2df1223340
+AUX icecast.xml 6775 SHA256 4c9c2ffa6d2e50ac940df978b05acbdd94ffe128a8d54224ab43084b3602cb51 SHA512 72620980b9213aa3570b9e4e803cb901f0a3770b081721f0f4e01ad9a0af0cc8a7f6242940b1ac9941f51320ab8c3e97245cf8e0249c5bf504b8f3a01c250a96 WHIRLPOOL 60822963e707ee0a9f7f2e9ac9fe9d28245bda7d84e0d00d43e22286dae2838c513093f989a3bc87aac89363b4d8f9fd22555e31552315cf84b9fdf5bfc29074
+DIST icecast-2.4.3.tar.gz 2393358 SHA256 c85ca48c765d61007573ee1406a797ae6cb31fb5961a42e7f1c87adb45ddc592 SHA512 70e755ee935e738f2b7310333823992517747897692d101b67d73d5cd40d6385a20c25d089a0430806c116021e6e2055761efee9fec27cd9bccb2b58a2bfd446 WHIRLPOOL ab75b4f09bff4725fa2bf27f6a49c7f8dd7c9f66e9333e6cfe3ec92e4e84a0562648407ebb891ec7fea8d7bc9680204572972875c76d20f131f43f3748ca5347
+EBUILD icecast-2.4.3.ebuild 2193 SHA256 880f9a04bcb5eecf395863ff2a5bc8c7840d273b62cbd691ea55568018b54d86 SHA512 a687f8a9b909a0beb8fb6dd533b8393668ec7d02faed1aaeb2245966ebfa6cd5bbe1d6ef147602ee71b27e4ca8e9df7252f00559d0e65c035a6eea4cdb7fe8fe WHIRLPOOL 8444f0d367a280ea73832200556612c3498484667faf87585ac73f625204fc338cd2b34906451828c19fc2b8c65d82b223f1c6b3c5c72681e635979769c279e4
+MISC ChangeLog 3056 SHA256 5916ed75b4ff76efde68ce52ae12505e8d64b31abd5da0459aef1b24bafbfdda SHA512 300263b1c88d54e84c2a971d3f6f17c7ac2a0dd1200187e0a568b3153df5298b1c9321d1cb3cd69333ad3dfddf7b5911c45f71dee0015a35cd8da6791d288780 WHIRLPOOL c5d982f683a7b6510a29811f4e7259088725f3587790c7f88352eb5049983ecc9becc779f14eb3fb01043d903c111e5e5fa8c8d035eccc777a32441cd68e5366
+MISC ChangeLog-2015 16489 SHA256 c8c9ebfc44854009cd8f9c40162e32028e9c41cea3eb1c81b62fb4b0e67b608a SHA512 c3284f446eb428c18d8fa7e42ed5e5329815fccbe90b8fa1e7d079592ebb38015376fa617b4bae2f742667ee2479a4ebddca1f94b3827e57b1000bb6b41af402 WHIRLPOOL cda21ecabed95e13b233359e487cb56bd01a3152ab6ef043542218709757cdbfbe658f860978ebb9a8721338eb7cb1fca592ef62ede013452a08063d1ba6b0ef
+MISC metadata.xml 520 SHA256 8c7e90c7039a6ff56f6beebb29fc93e716d03c1c38a891543189100c1401dbf8 SHA512 6d9ecf525b9ce4b5b6a49ce0621fe73bd2d692d1b1fbd3bd79081eecb234f7f32704b2d191a462d9bc650592010743d7de664696a5df5e901401832e8101c227 WHIRLPOOL 4c86955cc3984c5c613cf5578f854919f916e20a2d7da52b7cf0bde584751e1e51cf6001e7fab5955718539ab0596340364b1410a304f640bb0cd5f6c5e89d1c
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 @@
+<icecast>
+ <limits>
+ <clients>100</clients>
+ <sources>2</sources>
+ <queue-size>524288</queue-size>
+ <client-timeout>30</client-timeout>
+ <header-timeout>15</header-timeout>
+ <source-timeout>10</source-timeout>
+ <!-- If enabled, this will provide a burst of data when a client
+ first connects, thereby significantly reducing the startup
+ time for listeners that do substantial buffering. However,
+ it also significantly increases latency between the source
+ client and listening client. For low-latency setups, you
+ might want to disable this. -->
+ <burst-on-connect>1</burst-on-connect>
+ <!-- same as burst-on-connect, but this allows for being more
+ specific on how much to burst. Most people won't need to
+ change from the default 64k. Applies to all mountpoints -->
+ <burst-size>65535</burst-size>
+ </limits>
+
+ <authentication>
+ <!-- Sources log in with username 'source' -->
+ <source-password>hackme</source-password>
+ <!-- Relays log in username 'relay' -->
+ <relay-password>hackme</relay-password>
+
+ <!-- Admin logs in with the username given below -->
+ <admin-user>admin</admin-user>
+ <admin-password>hackme</admin-password>
+ </authentication>
+
+ <!-- Uncomment this if you want directory listings -->
+ <!--
+ <directory>
+ <yp-url-timeout>15</yp-url-timeout>
+ <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
+ </directory>
+ <directory>
+ <yp-url-timeout>15</yp-url-timeout>
+ <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
+ </directory>
+ -->
+
+ <!-- This is the hostname other people will use to connect to your server.
+ It affects mainly the urls generated by Icecast for playlists and yp
+ listings. -->
+ <hostname>localhost</hostname>
+
+ <!-- You can use these two if you only want a single listener -->
+ <!--<port>8000</port> -->
+ <!--<bind-address>127.0.0.1</bind-address>-->
+
+ <!-- You may have multiple <listener> elements -->
+ <listen-socket>
+ <port>8000</port>
+ <!-- <bind-address>127.0.0.1</bind-address> -->
+ </listen-socket>
+ <!--
+ <listen-socket>
+ <port>8001</port>
+ </listen-socket>
+ -->
+
+ <!--<master-server>127.0.0.1</master-server>-->
+ <!--<master-server-port>8001</master-server-port>-->
+ <!--<master-update-interval>120</master-update-interval>-->
+ <!--<master-password>hackme</master-password>-->
+
+ <!-- setting this makes all relays on-demand unless overridden, this is
+ useful for master relays which do not have <relay> definitions here.
+ The default is 0 -->
+ <!--<relays-on-demand>1</relays-on-demand>-->
+
+ <!--
+ <relay>
+ <server>127.0.0.1</server>
+ <port>8001</port>
+ <mount>/example.ogg</mount>
+ <local-mount>/different.ogg</local-mount>
+ <on-demand>0</on-demand>
+
+ <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
+ </relay>
+ -->
+
+ <!-- Only define a <mount> section if you want to use advanced options,
+ like alternative usernames or passwords -->
+ <!--
+ <mount>
+ <mount-name>/example-complex.ogg</mount-name>
+
+ <username>othersource</username>
+ <password>hackmemore</password>
+
+ <max-listeners>1</max-listeners>
+ <dump-file>/tmp/dump-example1.ogg</dump-file>
+ <burst-size>65536</burst-size>
+ <fallback-mount>/example2.ogg</fallback-mount>
+ <fallback-override>1</fallback-override>
+ <fallback-when-full>1</fallback-when-full>
+ <intro>/example_intro.ogg</intro>
+ <hidden>1</hidden>
+ <no-yp>1</no-yp>
+ <authentication type="htpasswd">
+ <option name="filename" value="myauth"/>
+ <option name="allow_duplicate_users" value="0"/>
+ </authentication>
+ <on-connect>/home/icecast/bin/stream-start</on-connect>
+ <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
+ </mount>
+
+ <mount>
+ <mount-name>/auth_example.ogg</mount-name>
+ <authentication type="url">
+ <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
+ <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
+ <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
+ <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
+ </authentication>
+ </mount>
+
+ -->
+
+ <fileserve>1</fileserve>
+
+ <!-- set the mountpoint for a shoutcast source to use, the default if not
+ specified is /stream but you can change it here if an alternative is
+ wanted or an extension is required -->
+ <!--
+ <shoutcast-mount>/live.nsv</shoutcast-mount>
+ -->
+
+ <paths>
+ <!-- basedir is only used if chroot is enabled -->
+ <basedir>/usr/share/icecast</basedir>
+
+ <!-- Note that if <chroot> is turned on below, these paths must both
+ be relative to the new root, not the original root -->
+ <logdir>/var/log/icecast</logdir>
+ <webroot>/usr/share/icecast/web</webroot>
+ <adminroot>/usr/share/icecast/admin</adminroot>
+ <!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->
+
+ <!-- Aliases: treat requests for 'source' path as being for 'dest' path
+ May be made specific to a port or bound address using the "port"
+ and "bind-address" attributes.
+ -->
+ <!--
+ <alias source="/foo" dest="/bar"/>
+ -->
+ <!-- Aliases: can also be used for simple redirections as well,
+ this example will redirect all requests for http://server:port/ to
+ the status page
+ -->
+ <alias source="/" dest="/status.xsl"/>
+ </paths>
+
+ <logging>
+ <accesslog>access.log</accesslog>
+ <errorlog>error.log</errorlog>
+ <!-- <playlistlog>playlist.log</playlistlog> -->
+ <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
+ <logsize>10000</logsize> <!-- Max size of a logfile -->
+ <!-- If logarchive is enabled (1), then when logsize is reached
+ the logfile will be moved to [error|access|playlist].log.DATESTAMP,
+ otherwise it will be moved to [error|access|playlist].log.old.
+ Default is non-archive mode (i.e. overwrite)
+ -->
+ <!-- <logarchive>1</logarchive> -->
+ </logging>
+
+ <security>
+ <chroot>0</chroot>
+ <changeowner>
+ <user>icecast</user>
+ <group>nogroup</group>
+ </changeowner>
+ </security>
+</icecast>
diff --git a/net-misc/icecast/icecast-2.4.3.ebuild b/net-misc/icecast/icecast-2.4.3.ebuild
new file mode 100644
index 000000000000..0bb95c586543
--- /dev/null
+++ b/net-misc/icecast/icecast-2.4.3.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools systemd user
+
+DESCRIPTION="Opensource alternative to shoutcast that supports mp3, ogg and aac streaming"
+HOMEPAGE="http://www.icecast.org/"
+SRC_URI="http://downloads.xiph.org/releases/icecast/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
+IUSE="kate libressl logrotate +speex +ssl +theora +yp"
+
+#Although there is a --with-ogg and --with-orbis configure option, they're
+#only useful for specifying paths, not for disabling.
+DEPEND="dev-libs/libxslt
+ dev-libs/libxml2
+ media-libs/libogg
+ media-libs/libvorbis
+ kate? ( media-libs/libkate )
+ logrotate? ( app-admin/logrotate )
+ speex? ( media-libs/speex )
+ theora? ( media-libs/libtheora )
+ yp? ( net-misc/curl )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewuser icecast -1 -1 -1 nogroup
+}
+
+PATCHES=(
+ # bug #368539
+ "${FILESDIR}"/${PN}-2.3.3-libkate.patch
+ # bug #430434
+ "${FILESDIR}"/${PN}-2.3.3-fix-xiph_openssl.patch
+)
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --docdir=/usr/share/doc/${PF} \
+ --sysconfdir=/etc/icecast2 \
+ $(use_enable kate) \
+ $(use_with theora) \
+ $(use_with speex) \
+ $(use_with yp curl) \
+ $(use_with ssl openssl) \
+ $(use_enable yp)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist
+ docinto html
+ dodoc doc/*.html
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ insinto /etc/icecast2
+ doins "${FILESDIR}"/icecast.xml
+ fperms 600 /etc/icecast2/icecast.xml
+
+ if use logrotate; then
+ dodir /etc/logrotate.d
+ insopts -m0644
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotate ${PN}
+ fi
+ diropts -m0764 -o icecast -g nogroup
+ dodir /var/log/icecast
+ keepdir /var/log/icecast
+ rm -r "${D}"/usr/share/doc/icecast || die
+}
+
+pkg_postinst() {
+ touch "${ROOT}"var/log/icecast/{access,error}.log
+ chown icecast:nogroup "${ROOT}"var/log/icecast/{access,error}.log
+}
diff --git a/net-misc/icecast/metadata.xml b/net-misc/icecast/metadata.xml
new file mode 100644
index 000000000000..706360d136cc
--- /dev/null
+++ b/net-misc/icecast/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <use>
+ <flag name="kate">Add karaoke and text encapsulation support for Ogg files</flag>
+ <flag name="logrotate">Install support files for <pkg>app-admin/logrotate</pkg>?</flag>
+ <flag name="yp">Build support for yp public directory listings</flag>
+ </use>
+</pkgmetadata>