diff --git a/multimedia/stream/icecast/actions.py b/multimedia/stream/icecast/actions.py new file mode 100644 index 0000000000..e40be14885 --- /dev/null +++ b/multimedia/stream/icecast/actions.py @@ -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") diff --git a/multimedia/stream/icecast/comar/package.py b/multimedia/stream/icecast/comar/package.py new file mode 100644 index 0000000000..acce4db902 --- /dev/null +++ b/multimedia/stream/icecast/comar/package.py @@ -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") diff --git a/multimedia/stream/icecast/comar/service.py b/multimedia/stream/icecast/comar/service.py new file mode 100644 index 0000000000..f066ff6c55 --- /dev/null +++ b/multimedia/stream/icecast/comar/service.py @@ -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") diff --git a/multimedia/stream/icecast/files/icecast.conf.patch b/multimedia/stream/icecast/files/icecast.conf.patch new file mode 100644 index 0000000000..582cb58219 --- /dev/null +++ b/multimedia/stream/icecast/files/icecast.conf.patch @@ -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 @@ + 30 + 15 + 10 +- +- @localstatedir@/log/@PACKAGE@ ++ /var/log/icecast + @pkgdatadir@/web + @pkgdatadir@/admin +- ++ /run/icecast/icecast.pid + + + +- nobody +- nogroup ++ icecast ++ icecast + +- --> + + diff --git a/multimedia/stream/icecast/files/pthread_flag.patch b/multimedia/stream/icecast/files/pthread_flag.patch new file mode 100644 index 0000000000..d7d2b0c4e8 --- /dev/null +++ b/multimedia/stream/icecast/files/pthread_flag.patch @@ -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 diff --git a/multimedia/stream/icecast/files/tmpfiles.conf b/multimedia/stream/icecast/files/tmpfiles.conf new file mode 100644 index 0000000000..b98c7097f5 --- /dev/null +++ b/multimedia/stream/icecast/files/tmpfiles.conf @@ -0,0 +1 @@ +d /run/icecast 0755 icecast icecast \ No newline at end of file diff --git a/multimedia/stream/icecast/pspec.xml b/multimedia/stream/icecast/pspec.xml new file mode 100644 index 0000000000..53cd98c3e7 --- /dev/null +++ b/multimedia/stream/icecast/pspec.xml @@ -0,0 +1,90 @@ + + + + + icecast + http://www.icecast.org + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + icecast + service + ShoutCast compatible streaming media server + 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. + http://downloads.xiph.org/releases/icecast/icecast-2.4.3.tar.gz + + libxslt-devel + libogg-devel + libvorbis-devel + libkate-devel + speex-devel + libtheora-devel + curl-devel + libxml2-devel + openssl-devel + + + pthread_flag.patch + icecast.conf.patch + + + + + icecast + + libxslt + libogg + libvorbis + libkate + speex + libtheora + curl + libxml2 + openssl + + + /etc/icecast + /usr/bin + /usr/share/doc + /usr/share/icecast + /usr/share/man + /usr/share/pixmaps + /var + /run + /usr/lib/tmpfiles.d/icecast.conf + + + tmpfiles.conf + + + System.Package + System.Service + + + + + + 2016-02-08 + 2.4.3 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-01-10 + 2.3.3 + Add tmpfiles.conf + Osman Erkan + osman.erkan@pisilinux.org + + + 2012-08-27 + 2.3.3 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/multimedia/stream/icecast/translations.xml b/multimedia/stream/icecast/translations.xml new file mode 100644 index 0000000000..2dac07376b --- /dev/null +++ b/multimedia/stream/icecast/translations.xml @@ -0,0 +1,8 @@ + + + + icecast + Shoutcast uyumlu muzik yayın sunucusu + 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. + + diff --git a/pisi-index.xml b/pisi-index.xml index 975a7f0595..4a5cfea557 100644 --- a/pisi-index.xml +++ b/pisi-index.xml @@ -103633,6 +103633,96 @@ + + + icecast + http://www.icecast.org + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + service + multimedia.stream + ShoutCast compatible streaming media server + Shoutcast uyumlu muzik yayın sunucusu + 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. + 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. + icecast + http://downloads.xiph.org/releases/icecast/icecast-2.4.3.tar.gz + + libxslt-devel + libogg-devel + libvorbis-devel + libkate-devel + speex-devel + libtheora-devel + curl-devel + libxml2-devel + openssl-devel + + + pthread_flag.patch + icecast.conf.patch + + multimedia/stream/icecast/pspec.xml + + + icecast + + libxslt + libogg + libvorbis + libkate + speex + libtheora + curl + libxml2 + openssl + + + /etc/icecast + /usr/bin + /usr/share/doc + /usr/share/icecast + /usr/share/man + /usr/share/pixmaps + /var + /run + /usr/lib/tmpfiles.d/icecast.conf + + + System.Package + System.Service + + + tmpfiles.conf + + + + + 2016-02-08 + 2.4.3 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-01-10 + 2.3.3 + Add tmpfiles.conf + Osman Erkan + osman.erkan@pisilinux.org + + + 2012-08-27 + 2.3.3 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + unoconv diff --git a/pisi-index.xml.sha1sum b/pisi-index.xml.sha1sum index 47881ee090..1ebb226f01 100644 --- a/pisi-index.xml.sha1sum +++ b/pisi-index.xml.sha1sum @@ -1 +1 @@ -1c9c20b99bc736dab50681ae87f66d2367c3765b \ No newline at end of file +9b4165f7077c44e45548a681a28455e90f7a6215 \ No newline at end of file diff --git a/pisi-index.xml.xz b/pisi-index.xml.xz index 4625abaf51..f09ad9db0b 100644 Binary files a/pisi-index.xml.xz and b/pisi-index.xml.xz differ diff --git a/pisi-index.xml.xz.sha1sum b/pisi-index.xml.xz.sha1sum index 6a61542d91..4c460be16b 100644 --- a/pisi-index.xml.xz.sha1sum +++ b/pisi-index.xml.xz.sha1sum @@ -1 +1 @@ -0f772e4bf1b9763665fc2fde51fe4dea170f2043 \ No newline at end of file +22b345b8ab3e82fef773044f5ab3151977df5f95 \ No newline at end of file