From 524d5fa08f2cdcedbbf52a9142497b990a0d5b5b Mon Sep 17 00:00:00 2001 From: David Martinez Date: Thu, 16 Feb 2017 23:46:45 +0100 Subject: [PATCH] icecast: add package --- packages/icecast/build.sh | 10 ++++++++++ packages/icecast/thread.c.patch | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 packages/icecast/build.sh create mode 100644 packages/icecast/thread.c.patch diff --git a/packages/icecast/build.sh b/packages/icecast/build.sh new file mode 100644 index 000000000..4c8b9b371 --- /dev/null +++ b/packages/icecast/build.sh @@ -0,0 +1,10 @@ +TERMUX_PKG_HOMEPAGE=http://icecast.org +TERMUX_PKG_DESCRIPTION="Icecast is a streaming media (audio/video) server" +TERMUX_PKG_VERSION=2.4.3 +TERMUX_PKG_SRCURL=http://downloads.xiph.org/releases/icecast/icecast-$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_DEPENDS="libcurl, libgnutls, libogg, libvorbis, libxml2, libxslt, openssl" +TERMUX_PKG_BUILD_IN_SRC=yes + +termux_step_pre_configure() { + perl -p -i -e "s#/etc/mime.types#$TERMUX_PREFIX/etc/mime.types#" $TERMUX_PKG_SRCDIR/src/cfgfile.c +} \ No newline at end of file diff --git a/packages/icecast/thread.c.patch b/packages/icecast/thread.c.patch new file mode 100644 index 000000000..8f6a34567 --- /dev/null +++ b/packages/icecast/thread.c.patch @@ -0,0 +1,24 @@ +--- ../../build/icecast/cache/icecast-2.4.3/src/thread/thread.c 2015-12-27 17:46:32.000000000 +0100 ++++ ./src/thread/thread.c 2017-01-01 22:52:28.256272825 +0100 +@@ -294,10 +294,10 @@ + start->thread = thread; + + pthread_attr_setstacksize (&attr, 512*1024); +- pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED); ++ //pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED); + if (detached) + { +- pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED); ++ //pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED); + thread->detached = 1; + } + +@@ -651,7 +651,7 @@ + LOG_INFO4("Added thread %d [%s] started at [%s:%d]", thread->thread_id, thread->name, thread->file, thread->line); + #endif + +- pthread_setcancelstate (PTHREAD_CANCEL_ENABLE, NULL); ++ //pthread_setcancelstate (PTHREAD_CANCEL_ENABLE, NULL); + free (start); + + (start_routine)(real_arg);