diff options
author | Rodney Cobb <rdc@ktabic.co.uk> | 2010-05-12 23:27:54 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:27:54 +0200 |
commit | a49491457fb57acf19991f09c8751a8ac6848401 (patch) | |
tree | fa13e8450ccc4954ff3f9c211630831cbd0212a6 /audio/icecast/icecast.SlackBuild | |
parent | d1afb5c3c1615e5bfc3f8305ac513481c0398df8 (diff) | |
download | slackbuilds-a49491457fb57acf19991f09c8751a8ac6848401.tar.gz |
audio/icecast: Added to 12.2 repository
Diffstat (limited to 'audio/icecast/icecast.SlackBuild')
-rw-r--r-- | audio/icecast/icecast.SlackBuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/audio/icecast/icecast.SlackBuild b/audio/icecast/icecast.SlackBuild new file mode 100644 index 0000000000..d8800933ca --- /dev/null +++ b/audio/icecast/icecast.SlackBuild @@ -0,0 +1,69 @@ +#!/bin/sh + +# Slackware build script for icecast + +# Written by Rodney Cobb (rdc@ktabic.co.uk) +# Modified by Robby Workman <rworkman@slackbuilds.org> + +PRGNAM=icecast +VERSION=${VERSION:-2.3.2} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --disable-static \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make docdir=/usr/doc/$PRGNAM-$VERSION +make install-strip docdir=/usr/doc/$PRGNAM-$VERSION DESTDIR=$PKG + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Let's not clobber existing configs +( cd $PKG/etc/ ; mv icecast.xml icecast.xml.new ) + +# Create log dir ; files will be created in doinst.sh if needed +mkdir -p $PKG/var/log/icecast + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |