network/spambayes: Miscellaneous cleanups and moved from system.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Audrius Kažukauskas 2010-08-28 14:44:51 -04:00 committed by Erik Hanson
parent 728d8f1a34
commit 681a94659d
4 changed files with 5 additions and 10 deletions

View File

@ -8,12 +8,10 @@ VERSION=${VERSION:-1.0.4}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -32,19 +30,16 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+rw,go+r-w,a-s .
chmod -R u+rw,go+r-w,a-sx+X .
# Eliminate deprecation warning for sets module with Python 2.6
# Suppress sets module deprecation warning in Python 2.6+.
sed -i 's/from sets import Set/Set = set/' \
spambayes/{classifier.py,TestDriver.py,tokenizer.py,ProxyUI.py}
spambayes/{classifier,TestDriver,tokenizer,ProxyUI}.py
python setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CHANGELOG.txt LICENSE.txt NEWTRICKS.txt POP3PROXY.txt \
README-DEVEL.txt README.txt TESTING.txt WHAT_IS_NEW.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a contrib $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -5,6 +5,6 @@ DOWNLOAD="http://downloads.sourceforge.net/spambayes/spambayes-1.0.4.tar.gz"
MD5SUM="78c33e79888d410711ff3c7dd7e98d79"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Audrius Kazukauskas"
MAINTAINER="Audrius Kažukauskas"
EMAIL="audrius@neutrino.lt"
APPROVED="dsomero"