mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
system/spambayes: Updated for version 1.0.4
This commit is contained in:
parent
27846f207a
commit
38ecf19e26
3 changed files with 18 additions and 15 deletions
|
@ -5,7 +5,7 @@
|
|||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
spambayes: spambayes (Python-based spam filter using statistical analysis)
|
||||
spambayes:
|
||||
spambayes: SpamBayes uses a different set of algorithm to most statistical spam
|
||||
|
|
|
@ -1,36 +1,39 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for spambayes
|
||||
|
||||
# Copyright (c) 2007 Audrius Kažukauskas <neobug@tornado.ktu.lt>
|
||||
|
||||
set -e
|
||||
# Written by Audrius Kažukauskas <audrius@neutrino.lt>
|
||||
|
||||
PRGNAM=spambayes
|
||||
VERSION=1.0.4
|
||||
VERSION=${VERSION:-1.0.4}
|
||||
ARCH=noarch
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
CWD=`pwd`
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
chown -R root:root .
|
||||
chmod -R u+rw,go+r-w,a-s .
|
||||
|
||||
# Eliminate deprecation warning for sets module with Python 2.6
|
||||
sed -i 's/from sets import Set/Set = set/' \
|
||||
spambayes/{classifier.py,TestDriver.py,tokenizer.py,ProxyUI.py}
|
||||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
CHANGELOG.txt LICENSE.txt NEWTRICKS.txt PKG-INFO POP3PROXY.txt \
|
||||
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 contrib $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="spambayes"
|
||||
VERSION="1.0.4"
|
||||
HOMEPAGE="http://spambayes.sourceforge.net/"
|
||||
DOWNLOAD="http://dl.sourceforge.net/spambayes/spambayes-1.0.4.tar.gz"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/spambayes/spambayes-1.0.4.tar.gz"
|
||||
MD5SUM="78c33e79888d410711ff3c7dd7e98d79"
|
||||
MAINTAINER="Audrius Kažukauskas"
|
||||
EMAIL="neobug@tornado.ktu.lt"
|
||||
APPROVED="Alan_Hicks"
|
||||
MAINTAINER="Audrius Kazukauskas"
|
||||
EMAIL="audrius@neutrino.lt"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in a new issue