aboutsummaryrefslogtreecommitdiff
path: root/icecast
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-07-31 20:45:44 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-07-31 20:45:44 +0000
commit3ae891bbbaa3f96365f4c9fbe49e5cee26183fbc (patch)
tree59f0163f13e99eefb959385243c564c5662bc5c2 /icecast
downloadslackbuilds-3ae891bbbaa3f96365f4c9fbe49e5cee26183fbc.tar.gz
slackbuilds-3ae891bbbaa3f96365f4c9fbe49e5cee26183fbc.tar.bz2
initial import
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'icecast')
-rw-r--r--icecast/_icecast.tar.gzbin0 -> 1193 bytes
-rwxr-xr-xicecast/icecast.SlackBuild321
-rw-r--r--icecast/icecast.slack-desc19
-rwxr-xr-xicecast/ices.SlackBuild124
-rw-r--r--icecast/ices.slack-desc19
-rwxr-xr-xicecast/libshout.SlackBuild167
-rw-r--r--icecast/libshout.slack-desc19
7 files changed, 669 insertions, 0 deletions
diff --git a/icecast/_icecast.tar.gz b/icecast/_icecast.tar.gz
new file mode 100644
index 00000000..318cbe34
--- /dev/null
+++ b/icecast/_icecast.tar.gz
Binary files differ
diff --git a/icecast/icecast.SlackBuild b/icecast/icecast.SlackBuild
new file mode 100755
index 00000000..a0159355
--- /dev/null
+++ b/icecast/icecast.SlackBuild
@@ -0,0 +1,321 @@
+#!/bin/sh
+# $Id: icecast.SlackBuild,v 1.4 2006/02/28 15:12:47 root Exp root $
+# Copyright (c) 2006 Eric Hameleers <alien@slackware.com>
+# Distributed under the terms of the GNU General Public License, Version 2
+# ---------------------------------------------------------------------------
+# Slackware SlackBuild script
+# ===========================
+# By: Eric Hameleers <alien@slackware.com>
+# For: Icecast
+# URL: http://www.icecast.org/
+# Summary: Xiph Streaming media server that supports
+# multiple audio formats (and theora video streams too).
+# Needs: libvorbis, libogg, libxml2, curl and optionally libtheora
+# Changelog:
+# 2.0.0-1: 16/jan/2004 by Eric Hameleers
+# 2.0.0-2: 17/jan/2004 by Eric Hameleers
+# Bug fix in the rc.icecast script
+# 2.0.0-3: 22/apr/2004 by Eric Hameleers
+# Add "next" operatrion to rc.icecast
+# 2.0.2-1: 20/oct/2004 by Eric Hameleers
+# Rebuilt new releease.
+# 2.2.0-1: 01/jan/2005 by Eric Hameleers
+# Rebuilt new releease.
+# 2.2.0-2: 11/aug/2005 by Eric Hameleers
+# Add "current" and "status" to rc.icecast parameters.
+# Make sure that existing /etc/rc.d/rc.icecast isn't overwritten.
+# 2.2.0-3: 17/sep/2005 by Eric Hameleers
+# Forgot to add "current" to rc.icecast 'help' output
+# (i.e. run rc.icecast with no parameters).
+# 2.3.0-1: 04/oct/2005 by Eric Hameleers
+# New release.
+# 2.3.1-1: 28/feb/2006 by Eric Hameleers <alien@sox.homeip.net>
+# New release.
+# 2.3.1-1-r: 07/jun/2006 by rhatto
+# small changes
+#
+# ---------------------------------------------------------------------------
+#
+
+cat << EOCAT
+Recomended and required packages for building icecast are:
+
+ libtheora
+ libogg
+ libxml2
+ speex
+ curl
+
+EOCAT
+
+if [ "$INTERACT" != "no" ]; then
+ echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER.
+ read crap
+else
+ echo sleeping 3 seconds...
+ sleep 3
+fi
+
+# Set initial variables:
+CWD="`pwd`"
+
+PRGNAM=icecast
+PACKAGE="$PRGNAM"
+_VERSION="2.3.1"
+_ARCH="i486"
+_BUILD="1rha"
+_TMP="/tmp"
+
+if [ -f "/etc/slackbuildrc" ]; then
+ source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+ source ~/.slackbuildrc
+fi
+
+if [ -z "$VERSION" ]; then
+ VERSION="$_VERSION"
+fi
+
+if [ -z "$ARCH" ]; then
+ ARCH="$_ARCH"
+fi
+
+if [ -z "$BUILD" ]; then
+ BUILD="$_BUILD"
+fi
+
+if [ "$ARCH" == "x86_64" ]; then
+ LIBDIR=/usr/lib64
+else
+ LIBDIR=/usr/lib
+fi
+
+if [ -z "$SRC" ]; then
+ SRC_DIR="$CWD"
+else
+ SRC_DIR="$SRC"
+fi
+
+if [ -z "$TMP" ]; then
+ TMP="$_TMP"
+fi
+
+RTOOL="wget"
+PACKAGE_EXT="gz"
+PKG=$TMP/package-$PRGNAM
+SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT"
+URL="http://downloads.xiph.org/releases/$PACKAGE/$SRC"
+
+if [ "$PACKAGE_EXT" == "bz2" ]; then
+ tarflag="j"
+else
+ tarflag="z"
+fi
+
+if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
+ wget "$URL" -O "$SRC_DIR/$SRC"
+fi
+
+if [ ! -d $TMP/tmp-$PRGNAM ]; then
+ mkdir -p $TMP/tmp-$PRGNAM # location to build the source
+fi
+if [ ! -d $PKG ]; then
+ mkdir -p $PKG # place for the package to be built
+fi
+
+
+# --- HELPER FUNCTIONS ---
+
+#
+# Function 'preconfig filename [remove]'
+#
+# param1 (required) may be a wildcard;
+# in that case surround it with double quotes!
+# param2 (optional) has value 'remove'
+#
+# Description:
+# Prepare the incoming configuration files which are not allowed
+# to overwrite existing ones.
+# These files will get a '.new' extension.
+# An entry in the 'doinst.sh' script will be created for these files, copying
+# the *.new files back to their original names,
+# but only if the original names don't exist.
+# Use the second parameter 'remove', like in 'preconfig filename(s) remove'
+# to add a 'rm -f filename.new' in 'doinst.sh', so as not to clutter
+# the harddisk with useless example files.
+
+preconfig() {
+ mkdir -p $PKG/install 2>/dev/null
+ for infile in $1; do
+ mv ${infile} ${infile}.new
+ done
+ echo -n "config \"$1.new\"" >> $PKG/install/doinst.sh
+ # If there's a second parameter with value 'remove' add a 'rm filename.new'
+ if [ "$2" = "remove" ]; then
+ echo -n " ; rm -f $1.new" >> $PKG/install/doinst.sh
+ fi
+ echo "" >> $PKG/install/doinst.sh
+}
+
+
+# --- PACKAGE BUILDING ---
+
+echo "+==============+"
+echo "| $PRGNAM-$VERSION |"
+echo "+==============+"
+
+iceuser=icecast
+icegroup=icecast
+
+rm -rf $PKG/*
+
+# Explode the package framework:
+cd $PKG
+if [ -f $CWD/_$PRGNAM.tar.gz ]; then
+ explodepkg $CWD/_$PRGNAM.tar.gz
+fi
+
+cd $TMP/tmp-$PRGNAM
+
+# Extract tar ball in TEMP dir
+echo Building $PRGNAM...
+tar xvf$tarflag $SRC_DIR/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+./configure --prefix=/usr --sysconfdir=/usr/share/icecast/etc \
+ --libdir=$LIBDIR --localstatedir=/var \
+ 2>&1 | tee $TMP/configure-${PRGNAM}.log
+
+make 2>&1 | tee $TMP/make-${PRGNAM}.log
+
+# Install all the needed stuff to the package dir
+# Use installwatch if available:
+which installwatch > /dev/null 2>&1
+if [ $? == 0 ]; then
+ installwatch -o $TMP/install-${PRGNAM}.log make DESTDIR=$PKG install
+else
+ make DESTDIR=$PKG install 2>&1 |tee $TMP/install-${PRGNAM}.log
+fi
+
+mkdir -p $PKG/var/log/icecast
+(cd $PKG/usr/share/icecast/etc && patch -p0 < $CWD/icecast_conf.patch)
+
+
+# --- DOCUMENTATION ---
+
+# Compress the man page
+gzip -9 $PKG/usr/man/*/*
+
+# Copy the documentation
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/icecast/* $PKG/usr/doc/$PRGNAM-$VERSION/
+rm -r $PKG/usr/share/doc
+chmod -R -w $PKG/usr/doc/$PRGNAM-$VERSION
+
+
+# --- POST-INSTALL SCRIPT ---
+
+# --- Fabricate the 'doinst.sh' script: ------
+mkdir -p $PKG/install
+
+cat <<EOINS > $PKG/install/doinst.sh
+# Handle the incoming configuration files:
+config() {
+ for infile in \$1; do
+ NEW="\$infile"
+ OLD="\`dirname \$NEW\`/\`basename \$NEW .new\`"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r \$OLD ]; then
+ mv \$NEW \$OLD
+ elif [ "\`cat \$OLD | md5sum\`" = "\`cat \$NEW | md5sum\`" ]; then
+ # toss the redundant copy
+ rm \$NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+ done
+}
+
+chroot . /sbin/ldconfig
+
+# Take care of rc.icecast
+config etc/rc.d/rc.icecast.new
+
+#Add the '${icegroup}' group if it doesn't exist already
+chroot . /usr/sbin/groupadd ${icegroup} 2> /dev/null
+#Add the '${iceuser}' user if it doesn't exist already
+chroot . /usr/sbin/useradd -c "Icecast" -d /usr/share/icecast \\
+ -g ${icegroup} -s "/bin/false" ${iceuser} 2> /dev/null
+
+# Configure the home directory
+mkdir -p usr/share/icecast
+chroot . /usr/bin/chown -R ${iceuser}:${icegroup} usr/share/icecast
+chmod 750 usr/share/icecast
+
+# Configure the log directory
+mkdir -p var/log/icecast
+chroot . /usr/bin/chown -R ${iceuser} var/log/icecast
+chmod 750 var/log/icecast
+
+#
+# Update rc.local so that Icecast will be started on boot
+#
+if ! grep "rc.icecast" etc/rc.d/rc.local 1>/dev/null 2>&1 ; then
+ cat <<-_EOM_ >> etc/rc.d/rc.local
+
+ if [ -x /etc/rc.d/rc.icecast ]; then
+ # Start Icecast server
+ echo "Starting icecast: /etc/rc.d/rc.icecast start"
+ /etc/rc.d/rc.icecast start
+ fi
+ _EOM_
+fi
+
+EOINS
+
+# --- End of 'doinst.sh' script -----------
+
+# Finally, take care of the configuration files:
+# Rename those files which must not overwrite existing ones when the package
+# is installed. Corresponding entries will be created at the end of
+# the 'doinst.sh' script.
+(cd $PKG ; preconfig usr/share/icecast/etc/$PRGNAM.xml)
+echo "" >> $PKG/install/doinst.sh
+
+
+# --- OWNERSHIP, RIGHTS ---
+chown -R root.root $PKG
+
+find $PKG -type f -name "*~" -exec rm -f {} \;
+
+# --- PACKAGE DESCRIPTION ---
+mkdir -p $PKG/install
+cat $CWD/icecast.slack-desc > $PKG/install/slack-desc
+
+
+# --- BUILDING ---
+
+# Build the package and compute its md5 checksum:
+cd $PKG
+
+find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
+makepkg --linkadd y --chown n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz
+(cd $TMP && md5sum $PRGNAM-$VERSION-$ARCH-$BUILD.tgz > $PRGNAM-$VERSION-$ARCH-$BUILD.tgz.md5)
+cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.txt
+
+
+# --- CLEANUP ---
+
+# Clean up the extra stuff:
+if [ "$1" = "--cleanup" ]; then
+ rm -rf $TMP/tmp-$PRGNAM
+ rm -rf $PKG
+else
+ echo You can check the 'installwatch' log file: $TMP/install-${PRGNAM}.log
+fi
+
+#
+# EOF
+#
diff --git a/icecast/icecast.slack-desc b/icecast/icecast.slack-desc
new file mode 100644
index 00000000..ca8fa92c
--- /dev/null
+++ b/icecast/icecast.slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+icecast: icecast (Xiph's streaming media server for mp3 and ogg audio)
+icecast:
+icecast: Icecast needs a 'source client' like IceS, that provides the
+icecast: audio stream.
+icecast:
+icecast:
+icecast:
+icecast:
+icecast:
+icecast: Icecast homepage: http://www.icecast.org
+icecast:
diff --git a/icecast/ices.SlackBuild b/icecast/ices.SlackBuild
new file mode 100755
index 00000000..d7857dda
--- /dev/null
+++ b/icecast/ices.SlackBuild
@@ -0,0 +1,124 @@
+#!/bin/sh
+#
+# slackbuild for ices by rhatto
+# based on http://www.slackware.com/~alien/slackbuilds/icecast/build/ices.SlackBuild
+#
+
+CWD=`pwd`
+
+PACKAGE="ices"
+_VERSION="2.0.1"
+_ARCH="i486"
+_BUILD="1rha"
+_TMP="/tmp"
+
+if [ -f "/etc/slackbuildrc" ]; then
+ source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+ source ~/.slackbuildrc
+fi
+
+if [ -z "$VERSION" ]; then
+ VERSION="$_VERSION"
+fi
+
+if [ -z "$ARCH" ]; then
+ ARCH="$_ARCH"
+fi
+
+if [ -z "$BUILD" ]; then
+ BUILD="$_BUILD"
+fi
+
+if [ "$ARCH" == "x86_64" ]; then
+ LIBDIR=/usr/lib64
+else
+ LIBDIR=/usr/lib
+fi
+
+if [ -z "$SRC" ]; then
+ SRC_DIR="$CWD"
+else
+ SRC_DIR="$SRC"
+fi
+
+if [ -z "$TMP" ]; then
+ TMP="$_TMP"
+fi
+
+PRGNAM="$PACKAGE"
+RTOOL="wget"
+PACKAGE_EXT="bz2"
+SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT"
+URL="http://downloads.us.xiph.org/releases/$PACKAGE/$SRC"
+PKG=$TMP/package-$PACKAGE
+
+if [ "$PACKAGE_EXT" == "bz2" ]; then
+ tarflag="j"
+else
+ tarflag="z"
+fi
+
+if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
+ wget "$URL" -O "$SRC_DIR/$SRC"
+fi
+
+rm -rf $PKG $TMP/tmp-$PRGNAM
+mkdir -p $TMP/tmp-$PRGNAM # location to build the source
+mkdir -p $PKG # place for the package to be built
+
+cd $TMP/tmp-$PRGNAM
+tar xvpf$tarflag $SRC_DIR/$SRC
+cd $PRGNAM-$VERSION
+
+./configure --prefix=/usr --localstatedir=/var \
+ --sysconfdir=/usr/share/icecast/etc \
+ --libdir=$LIBDIR
+
+make
+
+# Install all the needed stuff to the package dir
+# Use installwatch if available:
+which installwatch > /dev/null 2>&1
+if [ $? == 0 ]; then
+ installwatch -o $TMP/install-${PRGNAM}.log make DESTDIR=$PKG install
+else
+ make DESTDIR=$PKG install 2>&1 | tee $TMP/install-${PRGNAM}.log
+fi
+
+# Copy the documentation
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -R {AUTHORS,COPYING,README,TODO,doc} $PKG/usr/doc/$PRGNAM-$VERSION
+chmod -R -w $PKG/usr/doc/$PRGNAM-$VERSION
+
+# --- PACKAGE DESCRIPTION ---
+mkdir -p $PKG/install
+cat $CWD/ices.slack-desc > $PKG/install/slack-desc
+
+# --- BUILDING ---
+
+# Build the package and compute its md5 checksum:
+cd $PKG
+
+find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
+makepkg --linkadd y --chown y $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz
+(cd $TMP && md5sum $PRGNAM-$VERSION-$ARCH-$BUILD.tgz > $PRGNAM-$VERSION-$ARCH-$BUILD.tgz.md5)
+cat $CWD/${PRGNAM}.slack-desc | grep "^${PRGNAM}" > $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.txt
+
+# --- CLEANUP ---
+
+# Clean up the extra stuff:
+if [ "$1" = "--cleanup" ]; then
+ rm -rf $TMP/tmp-$PRGNAM
+ rm -rf $PKG
+else
+ echo You can check the 'installwatch' log file: $TMP/install-${PRGNAM}.log
+fi
+
+#
+# EOF
+#
diff --git a/icecast/ices.slack-desc b/icecast/ices.slack-desc
new file mode 100644
index 00000000..13976259
--- /dev/null
+++ b/icecast/ices.slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+ices: ices (mp3 source client for the icecast streaming media server)
+ices:
+ices:
+ices:
+ices:
+ices:
+ices:
+ices:
+ices:
+ices: IceS homepage: http://www.icecast.org
+ices:
diff --git a/icecast/libshout.SlackBuild b/icecast/libshout.SlackBuild
new file mode 100755
index 00000000..db7e63ea
--- /dev/null
+++ b/icecast/libshout.SlackBuild
@@ -0,0 +1,167 @@
+#!/bin/sh
+# $Id: libshout.SlackBuild,v 1.2 2006/02/28 15:26:52 root Exp root $
+# Copyright (c) 2006 Eric Hameleers <alien@slackware.com>
+# Distributed under the terms of the GNU General Public License, Version 2
+# --------------------------------------------------------------------------
+# Slackware SlackBuild script
+# ===========================
+# By: Eric Hameleers <alien@slackware.com>
+# For: libshout
+# URL: http://www.icecast.org/
+# Summary: Library which can be used to write a source client like IceS
+# Needs: libvorbis, libogg
+# Changelog:
+# 2.0-1: 20/oct/2004 by Eric Hameleers
+# 2.0-1rha: 07/jun/2006 by rhatto: small changes
+#
+# --------------------------------------------------------------------------
+#
+
+CWD=`pwd`
+
+# default settings
+PACKAGE="libshout"
+_VERSION="2.2.1"
+_ARCH="x86_64"
+_BUILD="2rha"
+_TMP="/tmp"
+
+if [ -f "/etc/slackbuildrc" ]; then
+ source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+ source ~/.slackbuildrc
+fi
+
+if [ -z "$VERSION" ]; then
+ VERSION="$_VERSION"
+fi
+
+if [ -z "$ARCH" ]; then
+ ARCH="$_ARCH"
+fi
+
+if [ -z "$BUILD" ]; then
+ BUILD="$_BUILD"
+fi
+
+if [ "$ARCH" == "x86_64" ]; then
+ LIBDIR=/usr/lib64
+else
+ LIBDIR=/usr/lib
+fi
+
+if [ -z "$SRC" ]; then
+ SRC_DIR="$CWD"
+else
+ SRC_DIR="$SRC"
+fi
+
+if [ -z "$TMP" ]; then
+ TMP="$_TMP"
+fi
+
+PRGNAM="$PACKAGE"
+PKG=$TMP/package-$PRGNAM
+
+RTOOL="wget"
+PACKAGE_EXT="gz"
+SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT"
+URL="http://downloads.us.xiph.org/releases/$PACKAGE/$SRC"
+
+if [ "$PACKAGE_EXT" == "bz2" ]; then
+ tarflag="j"
+else
+ tarflag="z"
+fi
+
+if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
+ wget "$URL" -O "$SRC_DIR/$SRC"
+ wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"
+fi
+
+if [ ! -d $TMP/tmp-$PRGNAM ]; then
+ mkdir -p $TMP/tmp-$PRGNAM # location to build the source
+fi
+if [ ! -d $PKG ]; then
+ mkdir -p $PKG # place for the package to be built
+fi
+
+# --- PACKAGE BUILDING ---
+
+echo "+==============+"
+echo "| $PRGNAM-$VERSION |"
+echo "+==============+"
+
+rm -rf $PKG/*
+
+# Explode the package framework:
+cd $PKG
+if [ -f $CWD/_$PRGNAM.tar.gz ]; then
+ explodepkg $CWD/_$PRGNAM.tar.gz
+fi
+
+cd $TMP/tmp-$PRGNAM
+
+# Extract tar ball in TEMP dir
+echo Building $PRGNAM...
+tar xvpf$tarflag $SRC_DIR/$SRC
+cd $PRGNAM-$VERSION
+./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=$LIBDIR \
+ | tee $TMP/${PRGNAM}_configure.log
+make | tee $TMP/${PRGNAM}_make.log
+
+# Install all the needed stuff to the package dir
+
+which installwatch > /dev/null 2>&1
+if [ $? == 0 ]; then
+ installwatch -o $TMP/${PRGNAM}_install.log make DESTDIR=$PKG install
+else
+ make DESTDIR=$PKG install
+fi
+
+if [ -f "$PKG/usr/include/shout.h" ]; then
+ mkdir -p $PKG/usr/include/shout
+ mv $PKG/usr/include/shout.h $PKG/usr/include/shout/
+fi
+
+# --- DOCUMENTATION ---
+
+# Compress the man page
+gzip -9 $PKG/usr/man/*/*
+
+# Copy the documentation
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/libshout/* $PKG/usr/doc/$PRGNAM-$VERSION/
+rm -r $PKG/usr/share/doc
+chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION
+
+# --- OWNERSHIP, RIGHTS ---
+chown -R root.root $PKG
+
+# --- PACKAGE DESCRIPTION ---
+mkdir -p $PKG/install
+cat $CWD/${PRGNAM}.slack-desc > $PKG/install/slack-desc
+
+# --- BUILDING ---
+
+# Build the package and compute its md5 checksum:
+cd $PKG
+makepkg --linkadd y --chown n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz
+(cd $TMP && md5sum $PRGNAM-$VERSION-$ARCH-$BUILD.tgz > $PRGNAM-$VERSION-$ARCH-$BUILD.tgz.md5)
+cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.txt
+
+# --- CLEANUP ---
+
+# Clean up the extra stuff:
+if [ "$1" = "--cleanup" ]; then
+ rm -rf $TMP/tmp-$PRGNAM
+ rm -rf $PKG
+else
+ echo You can check the 'installwatch' log file: $TMP/${PRGNAM}_install.log
+fi
+
+#
+# EOF
+#
diff --git a/icecast/libshout.slack-desc b/icecast/libshout.slack-desc
new file mode 100644
index 00000000..ff37368c
--- /dev/null
+++ b/icecast/libshout.slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+libshout: libshout (Library for icecast source clients)
+libshout:
+libshout: Library which can be used to write a source client like IceS.
+libshout:
+libshout:
+libshout:
+libshout:
+libshout:
+libshout:
+libshout: Libshout homepage: http://www.icecast.org
+libshout: