summaryrefslogtreecommitdiffstats
path: root/network/spambayes
diff options
context:
space:
mode:
Diffstat (limited to 'network/spambayes')
-rw-r--r--network/spambayes/README11
-rw-r--r--network/spambayes/spambayes.SlackBuild18
2 files changed, 20 insertions, 9 deletions
diff --git a/network/spambayes/README b/network/spambayes/README
index 179ca058b7..bbf88951ba 100644
--- a/network/spambayes/README
+++ b/network/spambayes/README
@@ -1,6 +1,7 @@
-SpamBayes uses a different set of algorithm to most statistical spam filters,
-which enables to dramatically lower the number of legitimate mail classified as
-spam, through the introduction of an 'unsure' category.
+SpamBayes uses a different set of algorithm to most statistical spam
+filters, which enables to dramatically lower the number of legitimate
+mail classified as spam, through the introduction of an 'unsure'
+category.
-SpamBayes can be used as a POP3 or an IMAP proxy, as well as a simple mail
-filter for use with procmail.
+SpamBayes can be used as a POP3 or an IMAP proxy, as well as a simple
+mail filter for use with procmail.
diff --git a/network/spambayes/spambayes.SlackBuild b/network/spambayes/spambayes.SlackBuild
index ab404fd66f..4f30f6da97 100644
--- a/network/spambayes/spambayes.SlackBuild
+++ b/network/spambayes/spambayes.SlackBuild
@@ -1,22 +1,32 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for spambayes
# Written by Audrius Kažukauskas <audrius@neutrino.lt>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=spambayes
VERSION=${VERSION:-1.0.4}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -51,4 +61,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE