network/darkstat: Updated for version 3.0.715; various cleanups

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
ponce 2012-05-08 07:25:31 +02:00 committed by Robby Workman
parent 63ac2ff324
commit 80c48be9d8
2 changed files with 8 additions and 15 deletions

View file

@ -5,7 +5,7 @@
# Written by Jorey Bump
PRGNAM=darkstat
VERSION=${VERSION:-3.0.707}
VERSION=${VERSION:-3.0.715}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -24,20 +24,16 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING.GPL NEWS README THANKS"
DOCS="AUTHORS ChangeLog COPYING.GPL NEWS README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
@ -59,7 +55,6 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man
@ -70,10 +65,8 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="darkstat"
VERSION="3.0.707"
HOMEPAGE="http://dmr.ath.cx/net/darkstat/"
DOWNLOAD="http://dmr.ath.cx/net/darkstat/darkstat-3.0.707.tar.bz2"
MD5SUM="91c70f96498dd679b21330214361e4dc"
VERSION="3.0.715"
HOMEPAGE="http://unix4lyfe.org/darkstat/"
DOWNLOAD="http://unix4lyfe.org/darkstat/darkstat-3.0.715.tar.bz2"
MD5SUM="5b7abc7538dcd8e30667dac150e81d77"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""