the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: icecast
Version: 1.3.12
Revision: 1024
Depends: daemonic, python24-shlibs (>= 1:2.4.2-1004)
Builddepends: python24 (>= 1:2.4.2-1004)
Suggests: expect
Source: mirror:sourceforge:fink/%n-%v.tar.gz
Source-MD5: 536d8ef2c4c36c641c31b21e64247b00
Patch: %n.patch
PatchScript: <<
perl -pi -e 's,/etc,%p/etc,' templates/manual.html
perl -pi -e 's,/usr/local/icecast/log,%p/var/log/icecast,' templates.html
<<
ConfigureParams: --with-libwrap --with-crypt --with-python --with-python-includes=%p/include/python2.4 --with-python-libraries=%p/lib/python2.4/config --mandir=%i/share/man --infodir=%p/share/info --libexecdir=%p/lib
CompileScript: <<
PYTHON_V=2.4 ./configure %c
make
<<
InstallScript: <<
make install DESTDIR=%d
mv %i/etc/icecast/groups.aut.dist %i/etc/icecast/groups.aut
cat %i/etc/icecast/icecast.conf.dist | sed s/your.server.name/localhost/ > %i/etc/icecast/icecast.conf
rm %i/etc/icecast/icecast.conf.dist
mv %i/etc/icecast/mounts.aut.dist %i/etc/icecast/mounts.aut
mv %i/etc/icecast/users.aut.dist %i/etc/icecast/users.aut
<<
PostInstScript: <<
daemonic update %n
<<
PreRmScript: <<
# clean up
[ -f %p/var/run/%n.pid ] && kill `cat %p/var/run/%n.pid`
if [ $1 != "upgrade" ]; then
daemonic remove %n
fi
<<
###
DocFiles: AUTHORS BUGS CHANGES COPYING ChangeLog FAQ INSTALL README TESTED TODO icecast.spec
ConfFiles: <<
%p/etc/icecast/groups.aut
%p/etc/icecast/icecast.conf
%p/etc/icecast/mounts.aut
%p/etc/icecast/users.aut
<<
###
DaemonicName: icecast
DaemonicFile: <<
<<
###
Description: MP3 Audio Broadcasting System
DescDetail: <<
Icecast is a streaming media server based on the MP3 audio codec. It will
stream MP3s to virtually anything that will play MP3s, including XMMS,
mpg123, Sonique, WinAMP, RealPlayer, Windows Media Player, Ultraplayer,
C3, and others.
<<
DescPackaging: <<
Uses crypt() from libSystem so no deps and not need to be in section:crypto
<<
DescPort: <<
dmacks fixed libwrap usage, finkified manual.html, converted to python2.4
<<
DescUsage: <<
Use "sudo daemonic enable icecast" for it to load on bootup
IceCast also suggests that you install expect via fink for the mkpasswd
binary, so you can passwd your streams.
<<
###
License: GPL
Maintainer: Keith Conger
Homepage: http://www.icecast.org/
--- icecast-1.3.12/configure 2002-04-11 00:50:20.000000000 +0200
+++ icecast-1.3.12_corr/configure 2005-11-28 10:47:00.000000000 +0100
@@ -874,18 +874,18 @@
ICECAST_DOCDIR=/usr/doc/icecast-${ICECAST_VERSION_SMALL}
USE_FSSTD=yes
else
- ICECAST_BINDIR=${prefix}/bin
- ICECAST_SBINDIR=${prefix}/bin
- ICECAST_ETCDIR=conf
- ICECAST_ETCDIR_INST=${prefix}/conf
- ICECAST_SHAREDIR=${prefix}
- ICECAST_LOGDIR=logs
- ICECAST_LOGDIR_INST=${prefix}/logs
- ICECAST_TEMPLATEDIR=templates
- ICECAST_TEMPLATEDIR_INST=${prefix}/templates
- ICECAST_STATICDIR=static
- ICECAST_STATICDIR_INST=${prefix}/static
- ICECAST_DOCDIR=${prefix}/doc
+ ICECAST_BINDIR=${prefix}/bin
+ ICECAST_SBINDIR=${prefix}/bin
+ ICECAST_ETCDIR=${prefix}/etc/icecast
+ ICECAST_ETCDIR_INST=${prefix}/etc/icecast
+ ICECAST_SHAREDIR=${prefix}/share/icecast
+ ICECAST_LOGDIR=${prefix}/var/log/icecast
+ ICECAST_LOGDIR_INST=${prefix}/var/log/icecast
+ ICECAST_TEMPLATEDIR=${prefix}/share/icecast/templates
+ ICECAST_TEMPLATEDIR_INST=${prefix}/share/icecast/templates
+ ICECAST_STATICDIR=${prefix}/share/icecast/static
+ ICECAST_STATICDIR_INST=${prefix}/share/icecast/static
+ ICECAST_DOCDIR=${prefix}/share/doc/icecast
USE_FSSTD=no
fi
@@ -2489,7 +2489,7 @@
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lcrypt $LIBS"
+LIBS="$LIBS"
cat > conftest.$ac_ext <
#include "confdefs.h"
@@ -2517,7 +2517,7 @@
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- CRYPTLIB="-lcrypt"
+ CRYPTLIB=""
else
echo "$ac_t""no" 1>&6
fi
@@ -2775,7 +2775,7 @@
echo "$ac_t""no" 1>&6
fi
- for lib in python python2.0 python1.6 python1.5; do
+ for lib in python${PYTHON_V}; do
echo $ac_n "checking for Py_Initialize in -l$lib""... $ac_c" 1>&6
echo "configure:2781: checking for Py_Initialize in -l$lib" >&5
ac_lib_var=`echo $lib'_'Py_Initialize | sed 'y%./+-%__p_%'`
@@ -3459,9 +3459,9 @@
#include "confdefs.h"
#include
#include
+typedef socklen_t interim;
+ interim apan (void) {return 1;}
int main() {
-typedef socklen_t int;
- int apan (void) {return 1;}
; return 0; }
EOF
if { (eval echo configure:3468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
--- icecast-1.3.12/src/sock.c 2001-03-28 01:41:18.000000000 +0200
+++ icecast-1.3.12_corr/src/sock.c 2005-11-28 10:14:04.000000000 +0100
@@ -28,12 +28,14 @@
#endif
#include "definitions.h"
+#undef _POSIX_C_SOURCE
#include
#include
#include
#include "definitions.h"
+#undef _POSIX_C_SOURCE
#include
#include
Package: icecast
Version: 1.3.12
Revision: 1024
Depends: daemonic, python24-shlibs (>= 1:2.4.2-1004)
Builddepends: python24 (>= 1:2.4.2-1004)
Suggests: expect
Source: mirror:sourceforge:fink/%n-%v.tar.gz
Source-MD5: 536d8ef2c4c36c641c31b21e64247b00
Patch: %n.patch
PatchScript: <<
perl -pi -e 's,/etc,%p/etc,' templates/manual.html
perl -pi -e 's,/usr/local/icecast/log,%p/var/log/icecast,' templates.html
<<
ConfigureParams: --with-libwrap --with-crypt --with-python --with-python-includes=%p/include/python2.4 --with-python-libraries=%p/lib/python2.4/config --mandir=%i/share/man --infodir=%p/share/info --libexecdir=%p/lib
CompileScript: <<
PYTHON_V=2.4 ./configure %c
make
<<
InstallScript: <<
make install DESTDIR=%d
mv %i/etc/icecast/groups.aut.dist %i/etc/icecast/groups.aut
cat %i/etc/icecast/icecast.conf.dist | sed s/your.server.name/localhost/ > %i/etc/icecast/icecast.conf
rm %i/etc/icecast/icecast.conf.dist
mv %i/etc/icecast/mounts.aut.dist %i/etc/icecast/mounts.aut
mv %i/etc/icecast/users.aut.dist %i/etc/icecast/users.aut
<<
PostInstScript: <<
daemonic update %n
<<
PreRmScript: <<
# clean up
[ -f %p/var/run/%n.pid ] && kill `cat %p/var/run/%n.pid`
if [ $1 != "upgrade" ]; then
daemonic remove %n
fi
<<
###
DocFiles: AUTHORS BUGS CHANGES COPYING ChangeLog FAQ INSTALL README TESTED TODO icecast.spec
ConfFiles: <<
%p/etc/icecast/groups.aut
%p/etc/icecast/icecast.conf
%p/etc/icecast/mounts.aut
%p/etc/icecast/users.aut
<<
###
DaemonicName: icecast
DaemonicFile: <<
<<
###
Description: MP3 Audio Broadcasting System
DescDetail: <<
Icecast is a streaming media server based on the MP3 audio codec. It will
stream MP3s to virtually anything that will play MP3s, including XMMS,
mpg123, Sonique, WinAMP, RealPlayer, Windows Media Player, Ultraplayer,
C3, and others.
<<
DescPackaging: <<
Uses crypt() from libSystem so no deps and not need to be in section:crypto
<<
DescPort: <<
dmacks fixed libwrap usage, finkified manual.html, converted to python2.4
<<
DescUsage: <<
Use "sudo daemonic enable icecast" for it to load on bootup
IceCast also suggests that you install expect via fink for the mkpasswd
binary, so you can passwd your streams.
<<
###
License: GPL
Maintainer: Keith Conger
Homepage: http://www.icecast.org/
--- icecast-1.3.12/configure 2002-04-11 00:50:20.000000000 +0200
+++ icecast-1.3.12_corr/configure 2005-11-28 10:47:00.000000000 +0100
@@ -874,18 +874,18 @@
ICECAST_DOCDIR=/usr/doc/icecast-${ICECAST_VERSION_SMALL}
USE_FSSTD=yes
else
- ICECAST_BINDIR=${prefix}/bin
- ICECAST_SBINDIR=${prefix}/bin
- ICECAST_ETCDIR=conf
- ICECAST_ETCDIR_INST=${prefix}/conf
- ICECAST_SHAREDIR=${prefix}
- ICECAST_LOGDIR=logs
- ICECAST_LOGDIR_INST=${prefix}/logs
- ICECAST_TEMPLATEDIR=templates
- ICECAST_TEMPLATEDIR_INST=${prefix}/templates
- ICECAST_STATICDIR=static
- ICECAST_STATICDIR_INST=${prefix}/static
- ICECAST_DOCDIR=${prefix}/doc
+ ICECAST_BINDIR=${prefix}/bin
+ ICECAST_SBINDIR=${prefix}/bin
+ ICECAST_ETCDIR=${prefix}/etc/icecast
+ ICECAST_ETCDIR_INST=${prefix}/etc/icecast
+ ICECAST_SHAREDIR=${prefix}/share/icecast
+ ICECAST_LOGDIR=${prefix}/var/log/icecast
+ ICECAST_LOGDIR_INST=${prefix}/var/log/icecast
+ ICECAST_TEMPLATEDIR=${prefix}/share/icecast/templates
+ ICECAST_TEMPLATEDIR_INST=${prefix}/share/icecast/templates
+ ICECAST_STATICDIR=${prefix}/share/icecast/static
+ ICECAST_STATICDIR_INST=${prefix}/share/icecast/static
+ ICECAST_DOCDIR=${prefix}/share/doc/icecast
USE_FSSTD=no
fi
@@ -2489,7 +2489,7 @@
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lcrypt $LIBS"
+LIBS="$LIBS"
cat > conftest.$ac_ext <
#include "confdefs.h"
@@ -2517,7 +2517,7 @@
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- CRYPTLIB="-lcrypt"
+ CRYPTLIB=""
else
echo "$ac_t""no" 1>&6
fi
@@ -2775,7 +2775,7 @@
echo "$ac_t""no" 1>&6
fi
- for lib in python python2.0 python1.6 python1.5; do
+ for lib in python${PYTHON_V}; do
echo $ac_n "checking for Py_Initialize in -l$lib""... $ac_c" 1>&6
echo "configure:2781: checking for Py_Initialize in -l$lib" >&5
ac_lib_var=`echo $lib'_'Py_Initialize | sed 'y%./+-%__p_%'`
@@ -3459,9 +3459,9 @@
#include "confdefs.h"
#include
#include
+typedef socklen_t interim;
+ interim apan (void) {return 1;}
int main() {
-typedef socklen_t int;
- int apan (void) {return 1;}
; return 0; }
EOF
if { (eval echo configure:3468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
--- icecast-1.3.12/src/sock.c 2001-03-28 01:41:18.000000000 +0200
+++ icecast-1.3.12_corr/src/sock.c 2005-11-28 10:14:04.000000000 +0100
@@ -28,12 +28,14 @@
#endif
#include "definitions.h"
+#undef _POSIX_C_SOURCE
#include
#include
#include
#include "definitions.h"
+#undef _POSIX_C_SOURCE
#include
#include