add icecast

This commit is contained in:
groni
2016-02-08 14:01:05 +01:00
parent 92d800845d
commit 69c86dc671
12 changed files with 333 additions and 2 deletions
+44
View File
@@ -0,0 +1,44 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
#Fix htmldir
pisitools.dosed("doc/Makefile.am", "doc/icecast", "doc/icecast/html")
#pisitools.dosed("debian/icecast2.1", "icecast2", "icecast")
autotools.autoreconf("-vif")
autotools.configure("--sysconfdir=/etc/icecast \
--disable-static \
--with-curl \
--with-ogg \
--with-theora \
--with-speex \
--enable-yp \
--with-openssl=/usr")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#Create Log Dir
pisitools.dodir("/var/log/icecast")
pisitools.dodir("/run/icecast")
#Correct permissions
shelltools.chmod("%s/var/log/icecast" % get.installDIR(), 0755 )
shelltools.chmod("%s/etc/icecast/icecast.xml" % get.installDIR(), 0640)
shelltools.chmod("%s/run/icecast" % get.installDIR(), 0755)
pisitools.insinto("/usr/share/pixmaps", "web/icecast.png")
#pisitools.doman("debian/icecast2.1")
@@ -0,0 +1,8 @@
#!/usr/bin/python
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/bin/chown -R icecast:icecast /var/log/icecast")
os.system("/bin/chown -R icecast:icecast /etc/icecast")
os.system("/bin/chown -R icecast:icecast /run/icecast")
@@ -0,0 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "Icecast Daemon",
"tr": "Icecast Servisi"})
@synchronized
def start():
startService(command="/usr/bin/icecast",
args="-c /etc/icecast/icecast.xml",
pidfile="/run/icecast/icecast.pid",
donotify=True,
detach=True)
@synchronized
def stop():
stopService(pidfile="/run/icecast/icecast.pid",
donotify=True)
def status():
return isServiceRunning("/run/icecast/icecast.pid")
def reload():
stopService(command="/usr/bin/icecast",
args="reload")
@@ -0,0 +1,51 @@
diff -Naur icecast-2.3.2.orig/conf/icecast.xml.in icecast-2.3.2/conf/icecast.xml.in
--- icecast-2.3.2.orig/conf/icecast.xml.in 2008-04-04 18:14:10.000000000 +0300
+++ icecast-2.3.2/conf/icecast.xml.in 2008-09-28 01:01:51.000000000 +0300
@@ -7,8 +7,8 @@
<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
+ <!-- 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
@@ -102,7 +102,7 @@
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
- <option name="filename" value="myauth"/>
+ <option name="filename" value="/usr/share/icecast/myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
@@ -129,10 +129,10 @@
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
- <logdir>@localstatedir@/log/@PACKAGE@</logdir>
+ <logdir>/var/log/icecast</logdir>
<webroot>@pkgdatadir@/web</webroot>
<adminroot>@pkgdatadir@/admin</adminroot>
- <!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->
+ <pidfile>/run/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"
@@ -164,11 +164,10 @@
<security>
<chroot>0</chroot>
- <!--
+ <!--test for logrotate soon-->
<changeowner>
- <user>nobody</user>
- <group>nogroup</group>
+ <user>icecast</user>
+ <group>icecast</group>
</changeowner>
- -->
</security>
</icecast>
@@ -0,0 +1,12 @@
diff -Naur icecast-2.3.2.orig/m4/acx_pthread.m4 icecast-2.3.2/m4/acx_pthread.m4
--- icecast-2.3.2.orig/m4/acx_pthread.m4 2009-02-22 00:33:42.000000000 +0200
+++ icecast-2.3.2/m4/acx_pthread.m4 2009-05-01 05:27:18.000000000 +0300
@@ -63,7 +63,7 @@
# pthread-config: use pthread-config program (for GNU Pth library)
case "${host_cpu}-${host_os}" in
- *solaris*)
+ *solaris*|*linux*)
# On Solaris (at least, for some versions), libc contains stubbed
# (non-functional) versions of the pthreads routines, so link-based
@@ -0,0 +1 @@
d /run/icecast 0755 icecast icecast
+90
View File
@@ -0,0 +1,90 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>icecast</Name>
<Homepage>http://www.icecast.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<Icon>icecast</Icon>
<IsA>service</IsA>
<Summary>ShoutCast compatible streaming media server</Summary>
<Description>Icecast is a streaming media server which currently supports Ogg Vorbis and MP3 audio streams. It can be used to create an Internet radio station or a privately running jukebox and many things in between.</Description>
<Archive sha1sum="230e2aa5abf80010c42d41cc7c0b078fb542b080" type="targz">http://downloads.xiph.org/releases/icecast/icecast-2.4.3.tar.gz</Archive>
<BuildDependencies>
<Dependency>libxslt-devel</Dependency>
<Dependency>libogg-devel</Dependency>
<Dependency>libvorbis-devel</Dependency>
<Dependency>libkate-devel</Dependency>
<Dependency>speex-devel</Dependency>
<Dependency>libtheora-devel</Dependency>
<Dependency>curl-devel</Dependency>
<Dependency>libxml2-devel</Dependency>
<Dependency>openssl-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">pthread_flag.patch</Patch>
<Patch level="1">icecast.conf.patch</Patch>
</Patches>
</Source>
<Package>
<Name>icecast</Name>
<RuntimeDependencies>
<Dependency>libxslt</Dependency>
<Dependency>libogg</Dependency>
<Dependency>libvorbis</Dependency>
<Dependency>libkate</Dependency>
<Dependency>speex</Dependency>
<Dependency>libtheora</Dependency>
<Dependency>curl</Dependency>
<Dependency>libxml2</Dependency>
<Dependency>openssl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/icecast</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/icecast</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/pixmaps</Path>
<Path fileType="data">/var</Path>
<Path fileType="data">/run</Path>
<Path fileType="config">/usr/lib/tmpfiles.d/icecast.conf</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/icecast.conf">tmpfiles.conf</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
<COMAR script="service.py">System.Service</COMAR>
</Provides>
</Package>
<History>
<Update release="3">
<Date>2016-02-08</Date>
<Version>2.4.3</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-10</Date>
<Version>2.3.3</Version>
<Comment>Add tmpfiles.conf</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-08-27</Date>
<Version>2.3.3</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>icecast</Name>
<Summary xml:lang="tr">Shoutcast uyumlu muzik yayın sunucusu</Summary>
<Description xml:lang="tr">Icecast, Ogg Vorbis ve Mp3 formatlarını destekleyerek ağ üzerinden muzik yayını yapmanızı sağlar. Icecast ile bir internet radyo istasyonu kurabilir ya da kendinize özel bir şarkı liste oluşturup paylaşabilirsiniz.</Description>
</Source>
</PISI>
+90
View File
@@ -103633,6 +103633,96 @@
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>icecast</Name>
<Homepage>http://www.icecast.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>service</IsA>
<PartOf>multimedia.stream</PartOf>
<Summary xml:lang="en">ShoutCast compatible streaming media server</Summary>
<Summary xml:lang="tr">Shoutcast uyumlu muzik yayın sunucusu</Summary>
<Description xml:lang="en">Icecast is a streaming media server which currently supports Ogg Vorbis and MP3 audio streams. It can be used to create an Internet radio station or a privately running jukebox and many things in between.</Description>
<Description xml:lang="tr">Icecast, Ogg Vorbis ve Mp3 formatlarını destekleyerek ağ üzerinden muzik yayını yapmanızı sağlar. Icecast ile bir internet radyo istasyonu kurabilir ya da kendinize özel bir şarkı liste oluşturup paylaşabilirsiniz.</Description>
<Icon>icecast</Icon>
<Archive type="targz" sha1sum="230e2aa5abf80010c42d41cc7c0b078fb542b080">http://downloads.xiph.org/releases/icecast/icecast-2.4.3.tar.gz</Archive>
<BuildDependencies>
<Dependency>libxslt-devel</Dependency>
<Dependency>libogg-devel</Dependency>
<Dependency>libvorbis-devel</Dependency>
<Dependency>libkate-devel</Dependency>
<Dependency>speex-devel</Dependency>
<Dependency>libtheora-devel</Dependency>
<Dependency>curl-devel</Dependency>
<Dependency>libxml2-devel</Dependency>
<Dependency>openssl-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">pthread_flag.patch</Patch>
<Patch level="1">icecast.conf.patch</Patch>
</Patches>
<SourceURI>multimedia/stream/icecast/pspec.xml</SourceURI>
</Source>
<Package>
<Name>icecast</Name>
<RuntimeDependencies>
<Dependency>libxslt</Dependency>
<Dependency>libogg</Dependency>
<Dependency>libvorbis</Dependency>
<Dependency>libkate</Dependency>
<Dependency>speex</Dependency>
<Dependency>libtheora</Dependency>
<Dependency>curl</Dependency>
<Dependency>libxml2</Dependency>
<Dependency>openssl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/icecast</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/icecast</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/pixmaps</Path>
<Path fileType="data">/var</Path>
<Path fileType="data">/run</Path>
<Path fileType="config">/usr/lib/tmpfiles.d/icecast.conf</Path>
</Files>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
<COMAR script="service.py">System.Service</COMAR>
</Provides>
<AdditionalFiles>
<AdditionalFile target="/usr/lib/tmpfiles.d/icecast.conf" permission="0644" owner="root">tmpfiles.conf</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="3">
<Date>2016-02-08</Date>
<Version>2.4.3</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-10</Date>
<Version>2.3.3</Version>
<Comment>Add tmpfiles.conf</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-08-27</Date>
<Version>2.3.3</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>unoconv</Name>
+1 -1
View File
@@ -1 +1 @@
1c9c20b99bc736dab50681ae87f66d2367c3765b
9b4165f7077c44e45548a681a28455e90f7a6215
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
0f772e4bf1b9763665fc2fde51fe4dea170f2043
22b345b8ab3e82fef773044f5ab3151977df5f95