icecast2 _unstable_ port information

Package: icecast2
Version: 2.3.1
Revision: 1
Depends: <<
daemonic, passwd (>= 20051118-1), libcurl3-unified-shlibs,
libtheora0-shlibs (>= 1.0-0.alpha4), speex3-shlibs, libvorbis0-shlibs,
libogg-shlibs, libxml2-shlibs, libxslt-shlibs
<<
BuildDepends: <<
libcurl3-unified, libtheora0, speex3, libvorbis0, libogg, libxml2,
libxslt, pkgconfig, libiconv-dev
<<
Source: http://downloads.xiph.org/releases/icecast/icecast-%v.tar.gz
Source-MD5: 2d80a249fa8529f82d018c6216108ea8
ConfigureParams: --sysconfdir=%p/etc/icecast2 --program-suffix=2
PatchScript: <<
#!/bin/sh -ev

sed -e 's/PACKAGE=icecast/PACKAGE=icecast2/' -i.orig configure
sed -e 's|/doc/icecast|/doc/icecast2|' -i.orig doc/Makefile.in

sed -e '//,/<\/security>/{//d
s/no\(body\|group\)/icecast/
}' -i.orig conf/icecast.xml.in
<<
InstallScript: <<
./mkinstalldirs %i/var/log/icecast2
make install DESTDIR=%d
<<
PostInstScript: <<
echo "Changing ownership of %p/var/log/icecast2 and %p/etc/icecast2/icecast.xml"
chown icecast:icecast %p/var/log/icecast2 %p/etc/icecast2/icecast.xml
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
<<
ConfFiles: %p/etc/icecast2/icecast.xml
DaemonicName: icecast2
DaemonicFile: <<

Icecast Streaming Media Server
Icecast Streaming Media Server


%p/bin/icecast2
-c %p/etc/icecast2/icecast.xml

%p/etc/icecast2/icecast.xml
%p/var/run/icecast2.pid



<<
###
Description: Media streaming server
DescDetail: <<
Icecast2 is a multi-format streaming media server, currently capabale of
broadcasting Vorbis, MP3 and AAC audio and theora video. It is an advanced
shoutcast replacement with support for multiple streams on the same server,
authentication, and relaying, just to name a few features.
<<
DescPort: <<
Use "sudo daemonic enable icecast2" to start icecast2 automatically on boot.
<<
DescUsage: <<
Note to users upgrading from icecast 1.3: icecast 2 was rewritten from scratch
and features a completely different administration interface and configuration
file format. See %p/share/doc/icecast2/index.html for more information.
<<
###
License: GPL
Maintainer: Brendan Cully
Homepage: http://www.icecast.org/
# Based on Keith Conger's original icecast package