debian/0000755000000000000000000000000011576027660007200 5ustar debian/default0000644000000000000000000000041311310223672010530 0ustar # Defaults for darkice initscript # sourced by /etc/init.d/darkice # installed at /etc/default/darkice by the maintainer scripts # # This is a POSIX shell fragment # RUN=no # Additional options that are passed to the Daemon. DAEMON_OPTS="" USER=nobody GROUP=nogroup debian/copyright0000644000000000000000000000265511307474031011131 0ustar This package was debianized by Maitland Bottoms on Fri, 2 Aug 2002 16:43:20 -0400. It is now being maintained by Jochen Friedrich on Wed, 20 Aug 2003 22:55:52 +0200 It was downloaded from http://darkice.sourceforge.net/ DarkIce is being written by Tyrell Hungary, Ákos Maróy, Rafael Diniz Copyright: Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/ Copyright (c) 2008, Ákos Maróy, akos@maroy.hu Copyright (c) 2009, Rafael Diniz, rafael@riseup.net Tyrell DarkIce Copyright notice: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. the GNU GPL may be viewed on Debian systems in /usr/share/common-licenses/GPL debian/README.debian0000644000000000000000000000072311307433451011272 0ustar DarkIce for Debian ---------------------- This package was built with Ogg Vorbis support but without mp3 (lame) support for patent reasons. A sample configuration in installed into /usr/share/doc/darkice/examples. In order to use DarkIce, please copy this example to your preferred configuration directory, make any required changes for your site and reference it using darkice -c . Jochen Friedrich , Wed, 20 Aug 2003 21:02:26 +0200 debian/rules0000755000000000000000000000041011576027547010257 0ustar #!/usr/bin/make -f %: dh $@ .PHONY: override_dh_auto_configure override_dh_auto_configure: ln -s /usr/share/misc/config.guess . ln -s /usr/share/misc/config.sub . dh_auto_configure -- --prefix=/usr --sysconfdir=/usr/share/doc/darkice/examples --without-faac debian/dirs0000644000000000000000000000001011307433451010042 0ustar usr/bin debian/compat0000644000000000000000000000000211307433451010365 0ustar 7 debian/init0000644000000000000000000001314111371016044010051 0ustar #!/bin/sh # # Copyright (c) 2007 Javier Fernandez-Sanguino # Copyright (c) 2009 Jochen Friedrich # # This is free software; you may redistribute it and/or modify # it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, # or (at your option) any later version. # # This is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License with # the Debian operating system, in /usr/share/common-licenses/GPL; if # not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA # ### BEGIN INIT INFO # Provides: darkice # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fs $remote_fs # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Live audio streamer # Description: DarkIce is an IceCast, IceCast2 and ShoutCast # live audio streamer. ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NAME=darkice DAEMON=/usr/bin/$NAME DESC="Live audio streamer" LOGDIR=/var/log USER=nobody GROUP=nogroup PIDFILE=/var/run/$NAME.pid test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Default options, these can be overriden by the information # at /etc/default/$NAME DAEMON_OPTS="" # Additional options given to the server DIETIME=2 # Time to wait for the server to die, in seconds # If this value is set too low you might not # let some servers to die gracefully and # 'restart' will not work # Include defaults if available if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi # Use this if you want the user to explicitly set 'RUN' in # /etc/default/ if [ "x$RUN" != "xyes" ] ; then exit 0 fi set -e running_pid() { # Check if a given process pid's cmdline matches a given name pid=$1 name=$2 [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` # Is this the expected server [ "$cmd" != "$name" ] && return 1 return 0 } running() { # Check if the process is running looking at /proc # (works for all users) # No pidfile, probably no daemon present [ ! -f "$PIDFILE" ] && return 1 pid=`cat $PIDFILE` running_pid $pid $DAEMON || return 1 return 0 } start_server() { # Start the process using the wrapper start-stop-daemon --start --quiet --pidfile $PIDFILE \ --background --chuid $USER:$GROUP --exec $DAEMON -- $DAEMON_OPTS errcode=$? return $errcode } stop_server() { # Stop the process using the wrapper start-stop-daemon --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON errcode=$? return $errcode } force_stop() { # Force the process to die killing it manually [ ! -e "$PIDFILE" ] && return if running ; then kill -15 $pid # Is it really dead? sleep "$DIETIME"s if running ; then kill -9 $pid sleep "$DIETIME"s if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 1 fi fi fi rm -f $PIDFILE } case "$1" in start) log_daemon_msg "Starting $DESC " "$NAME" # Check if it's running first if running ; then log_progress_msg "apparently already running" log_end_msg 0 exit 0 fi if start_server && running ; then # It's ok, the server started and is running log_end_msg 0 else # Either we could not start it or it is not running # after we did # NOTE: Some servers might die some time after they start, # this code does not try to detect this and might give # a false positive (use 'status' for that) log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if running ; then # Only stop the server if we see it running stop_server log_end_msg $? else # If it's not running don't do anything log_progress_msg "apparently not running" log_end_msg 0 exit 0 fi ;; force-stop) # First try to stop gracefully the program $0 stop if running; then # If it's still running try to kill it more forcefully log_daemon_msg "Stopping (force) $DESC" "$NAME" force_stop log_end_msg $? fi ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" stop_server # Wait some sensible amount, some server need this [ -n "$DIETIME" ] && sleep $DIETIME start_server running log_end_msg $? ;; status) log_daemon_msg "Checking status of $DESC" "$NAME" if running ; then log_progress_msg "running" log_end_msg 0 else log_progress_msg "apparently not running" log_end_msg 1 exit 1 fi ;; reload) log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" log_warning_msg "cannot re-read the config file (use restart)." ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/clean0000644000000000000000000000003011307433451010165 0ustar config.guess config.sub debian/patches/0000755000000000000000000000000011371017214010612 5ustar debian/patches/04_gcc44.diff0000644000000000000000000000061511310470573012661 0ustar --- a/src/SerialUlaw.cpp +++ b/src/SerialUlaw.cpp @@ -88,6 +88,10 @@ #error need termios.h #endif +#ifdef HAVE_STDIO_H +#include +#endif + #include "Util.h" #include "Exception.h" --- a/src/JackDspSource.cpp +++ b/src/JackDspSource.cpp @@ -76,6 +76,10 @@ #error need limits.h #endif +#ifdef HAVE_STDIO_H +#include +#endif + #include #include "Util.h" debian/patches/03_gcc-43.diff0000644000000000000000000000063611371017205012733 0ustar Index: darkice-0.20.1/src/JackDspSource.cpp =================================================================== --- darkice-0.20.1.orig/src/JackDspSource.cpp 2010-05-07 16:06:51.000000000 +0200 +++ darkice-0.20.1/src/JackDspSource.cpp 2010-05-07 16:06:56.000000000 +0200 @@ -76,6 +76,8 @@ #error need limits.h #endif +#include + #include "Util.h" #include "Exception.h" #include "JackDspSource.h" debian/patches/05_fix_crlf.diff0000644000000000000000000000065511371017214013552 0ustar Index: darkice-0.20.1/src/IceCast2.cpp =================================================================== --- darkice-0.20.1.orig/src/IceCast2.cpp 2010-05-07 16:06:49.000000000 +0200 +++ darkice-0.20.1/src/IceCast2.cpp 2010-05-07 16:07:05.000000000 +0200 @@ -236,7 +236,7 @@ sink->write( str, strlen( str)); } - str = "\n\n"; + str = "\r\n\r\n"; sink->write( str, strlen( str)); sink->flush(); debian/patches/series0000644000000000000000000000010211310470637012025 0ustar 02_errno_range.diff 03_gcc-43.diff 04_gcc44.diff 05_fix_crlf.diff debian/patches/02_errno_range.diff0000644000000000000000000000104111307433451014246 0ustar diff -urNad darkice-0.19~/src/Util.cpp darkice-0.19/src/Util.cpp --- darkice-0.19~/src/Util.cpp 2007-02-25 17:38:33.000000000 +0100 +++ darkice-0.19/src/Util.cpp 2008-07-14 18:36:59.000000000 +0200 @@ -81,6 +81,9 @@ #error need signal.h #endif +#ifdef HAVE_ERRNO_H +#include +#endif #include "Util.h" @@ -278,7 +281,7 @@ } val = strtod( str, &s); - if ( s == str || val == HUGE_VAL ) { + if ( s == str || errno == ERANGE ) { throw Exception( __FILE__, __LINE__, "number conversion error"); } debian/watch0000644000000000000000000000011211571206456010220 0ustar version=3 http://googlecode.debian.net/p/darkice/darkice-(\d+.*)\.tar\.gz debian/control0000644000000000000000000000213311576027630010577 0ustar Source: darkice Section: sound Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Jochen Friedrich Standards-Version: 3.9.2 Build-Depends: debhelper (>= 7.0.50~), libvorbis-dev, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libjack-dev, libtwolame-dev, autotools-dev, libmp3lame-dev Homepage: http://code.google.com/p/darkice/ Package: darkice Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6) Suggests: darksnow Description: Live audio streamer DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer. It takes audio input from a sound card, encodes it into mp3 and/or Ogg Vorbis, and sends the mp3 stream to one or more IceCast and/or ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2 servers. DarkIce uses lame as a shared object as its mp3 encoder, and the Ogg Vorbis as its Ogg Vorbis encoder. NOTE: The Debian version of DarkIce is only compiled with Ogg Vorbis support due to patent reasons and will therefore only work with IceCast2 servers! debian/changelog0000644000000000000000000002547111576027625011064 0ustar darkice (1.0-1ubuntu1) oneiric; urgency=low * Merge from debian testing, Ubuntu remaining changes: - Build with LAME support. -- Fabrice Coutadeur Wed, 15 Jun 2011 06:04:59 +0200 darkice (1.0-1) unstable; urgency=low * New upstream release o fixed a bug in BufferedSink.cpp that leads to some buffers being written twice, causing corruption of datastream, closes ticked #20 thanks to Edwin van den Oetelaar o implemented samplerate conversion for all codecs using libsamplerate, and keeping internal aflibConverter as fallback, thanks to Sergiy o bugfix: fix for alsa driver - closes ticked #8 thanks to Clemens Ladisch * Bump Standards version to 3.9.2 * Update watch file -- Jochen Friedrich Tue, 31 May 2011 17:46:15 +0200 darkice (0.20.1-3ubuntu1) maverick; urgency=low * Merge from debian testing, Ubuntu remaining changes: - Build with LAME support. -- Alessio Treglia Tue, 15 Jun 2010 20:07:43 +0200 darkice (0.20.1-3) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format * Bump Standards version to 3.8.4 * Change homepage to new location * Fix init script dependency on $remote_fs -- Jochen Friedrich Fri, 07 May 2010 15:57:06 +0200 darkice (0.20.1-2ubuntu1) lucid; urgency=low * Merge from debian testing, Ubuntu remaining changes: - Enable LAME support. -- Alessio Treglia Wed, 23 Dec 2009 13:49:22 +0100 darkice (0.20.1-2) unstable; urgency=low * Add #include in two places to allow compilation with gcc 4.4 (Closes: #560431). Thanks to Cyril Brulebois for the patch. -- Jochen Friedrich Fri, 11 Dec 2009 17:23:38 +0100 darkice (0.20.1-1) unstable; urgency=low * New upstream release o added rc.darkice init script thanks to Niels Dettenbach o bugfix: fix for gcc 4.4 * Removed upstream applied patch 04_fix_const.diff * Confirmed that autogenerated files are present in the upstream tarball. It looks like upstream sometimes silently updates the (orig) package (Closes: #559736). * Update copyright file. * Provide a start stop script for automatic operation (Closes: #283485) -- Jochen Friedrich Thu, 10 Dec 2009 17:54:30 +0100 darkice (0.20-1ubuntu1) lucid; urgency=low * Merge from debian testing, Ubuntu remaining changes: - Enable LAME support. * Drop faac support due to bug #374900. * debian/rules: - Fix building to prevent the creation of an empty package (BTS #559736). * debian/control: Add automake, autoconf to Build-Depends field. -- Alessio Treglia Thu, 10 Dec 2009 15:28:26 +0100 darkice (0.20-1) unstable; urgency=low * New upstream release o new maintainer: Rafael Diniz o added AAC HEv2 encoding support (branch darkice-aacp merged) through libaacplus, http://tipok.org.ua/ru/node/17 thanks to tipok and others for the contribution. o bugfix: the configure script recognizes Ogg Vorbis shared objects now, not just static libraries. Thanks to omroepvenray. o bugfix: enabling jack source compilation on Debian Lenny, thanks to Alessandro Beretta -- Jochen Friedrich Tue, 10 Nov 2009 13:28:08 +0100 darkice (0.19-2) unstable; urgency=low * Change watch file to google code. * Add fix for eglibc (Closes: #548515). Thanks to Stefan Potyra for the patch. * Updated policy to 3.8.3. * Replace dpatch by quilt and use debheler overrides. * Add README.source. * Update config.(guess,sub) from autotools-dev. * Suggesting darksnow (Closes: #514548). * Depend on libjack-dev (Closes: #527411). * Add patch to fix HTTP request (Closes: #441281). -- Jochen Friedrich Thu, 15 Oct 2009 18:31:09 +0200 darkice (0.19-1ubuntu3) karmic; urgency=low * Add patch fix_const to fix a build failure with gcc-4.4. -- Stefan Potyra Sat, 26 Sep 2009 19:48:27 +0200 darkice (0.19-1ubuntu2) jaunty; urgency=low * debian/control: + Add darksnow on Suggests. + Update description; the Ubuntu version of darkice is compiled with the the support for all formats. -- Alessio Treglia Sun, 08 Feb 2009 19:21:56 +0100 darkice (0.19-1ubuntu1) jaunty; urgency=low * debian/control: - Build-Depends on libmp3lame-dev (LP: #120851) and libfaac-dev; - Add ${misc:Depends} to binary package Depends field. * debian/rules: - Enable lame and faac support. -- Alessio Treglia Sat, 17 Jan 2009 15:02:31 +0100 darkice (0.19-1) unstable; urgency=low * New upstream release o added mount point option for Darwin Streaming Server thanks to Pierre Souchay o fix for some reliablity issues when using a Jack source thanks to Pierre Souchay o enable easier finding of jack libraries on MacOS X, thanks to Daniel Hazelbaker o added ability to specify name of jack device created by darkice, thanks to Alessandro Beretta * Updated policy to 3.8.0 * Add homepage to control file * Update debhelper to 7, replacing CDBS. * Add dpatch system. -- Jochen Friedrich Mon, 14 Jul 2008 18:14:00 +0200 darkice (0.18.1-1) unstable; urgency=low * New upstream release o enable real-time scheduling for non-super-users, if they have the proper operating system permissions, thanks to Jens Maurer o fix to enable compliation of the Serial ULAW code on MacOS X, thanks to Elod Horvath o added serial ulaw input device support, thanks to Clyde Stubbs o improvements on reconnecting: added TCP connection keep-alive to TCP sockets added graceful sleep when trying to reconnect o added user-defined date formatting for the fileAddDate options, thanks to dsk o added logging facility - [file-X] targets will cut the saved file and rename it as needed when darkice recieves the SIGUSR1 signal o added default configuration file handling - if no configuration file is specified, /etc/darkice.cfg is used o fix to enable compiling on 64 bit platforms thanks to Alexander Vlasov and Mariusz Mazur o fix to enable file dump feature using ogg vorbis. thanks to dsk o fix to enable compiling with jack installed at arbitrary locations * Fix dependencies for non-Linux systems (Closes: #399199) * Add patch for gcc-4.3 support (Closes: #417146) * Update watch file -- Jochen Friedrich Wed, 02 May 2007 17:54:45 +0200 darkice (0.17.1-3) unstable; urgency=low * Fix FTBFS on 64bit archs. * Use patch system. -- Jochen Friedrich Fri, 28 Jul 2006 16:46:41 +0200 darkice (0.17.1-2) unstable; urgency=low * Don't use ALSA on Freebsd (Closes: #327677) * Depend on libtwolame-dev and configure --without-faac to make build deterministic (Closes: #377655) -- Jochen Friedrich Fri, 28 Jul 2006 14:41:32 +0200 darkice (0.17.1-1) unstable; urgency=low * New upstream release o bugfix: automatic reconnect works more reliably * Updated Standards-Version to 3.7.2 (no change) -- Jochen Friedrich Fri, 26 May 2006 18:55:28 +0200 darkice (0.17-1) unstable; urgency=low * New upstream release o added check for bufferSecs set to 0 thanks to Toph o added realtime parameter to the general section o added MPEG2 support through the TwoLame library. thanks to Nicholas J Humfrey -- Jochen Friedrich Sat, 11 Mar 2006 12:57:33 +0100 darkice (0.16-1) unstable; urgency=low * New upstream release o added AAC support through the faac codec, http://www.audiocoding.com o bug fix: icecast2 sections didn't honor lowpass or highpass filters when using the mp3 format -- Jochen Friedrich Mon, 31 Oct 2005 15:52:24 +0100 darkice (0.15-2) unstable; urgency=low * Updated libjack to libjack0.100.0 (Closes: #316671) * Updated Standards-Version to 3.6.2 (no change) -- Jochen Friedrich Wed, 6 Jul 2005 20:28:27 +0200 darkice (0.15-1) unstable; urgency=low * New upstream release o ported to OpenBSD and NetBSD, though real-time scheduling not supported, since it is not implemented in OpenBSD / NetBSD o added possibility to downsample from stereo to mono when encoding to Ogg Vorbis, thanks to Deti Fliegl, o added support for Jack inputs, enabling a lot of interesting usage, including support for MacOS X. Thanks to Nicholas J. Humfrey o various improvements by Joel Ebel o added option to turn off automatic reconnect feature o added IPv6 support, thanks to * Fixed spellig mistake. Thanks to mike castleman . (Closes: #280984) * Fix for gcc4.0 issues. Thanks to Andreas Jochens . (Closes: #285614) -- Jochen Friedrich Sat, 2 Jul 2005 12:10:33 +0200 darkice (0.14-1) unstable; urgency=low * New upstream release o added ALSA support, thanks to Christian Forster o added fix to enable downsampling from stereo to mono of mp3 streams when streaming to an icecast2 server. thanks to John Deeny o removed _X and _Y symbols from aflibConverter files, which caused a naming collision on Solaris. thanks to Robert Lunnon, o bug fix: ogg vorbis recording to only a file caused a segfault. now fixed, thanks to Enrico Ardizzoni * Fixed debian/copyright file -- Jochen Friedrich Fri, 20 Feb 2004 21:03:29 +0100 darkice (0.13.1-1) unstable; urgency=low * New upstream. * Changed build system to cdbs. * Completed debianization. (Closes #112701) * Replaced conffile by example configuration * Updated policy to 3.6.1 -- Jochen Friedrich Fri, 22 Aug 2003 15:43:37 +0200 darkice (0.10.1-1) unstable; urgency=low * New upstream, vorbis 1.0 support. -- Maitland Bottoms Fri, 2 Aug 2002 16:43:20 -0400 darkice (0.7-1) unstable; urgency=low * Initial Release. -- Maitland Bottoms Mon, 3 Dec 2001 14:17:17 -0500 debian/source/0000755000000000000000000000000011371016267010472 5ustar debian/source/format0000644000000000000000000000001411371016267011700 0ustar 3.0 (quilt)