summaryrefslogtreecommitdiffstats
path: root/system/bogofilter
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2010-05-18 11:15:24 -0500
committer Robby Workman <rworkman@slackbuilds.org>2010-05-18 11:15:24 -0500
commit60a50bf7ce004a9b0ec76a2539d4654ff20cb4f7 (patch)
treee08651b0df44ea319e8851ebf8eb46796063c235 /system/bogofilter
parentc8393130084ef9e17a0820c3b70173678dde3360 (diff)
downloadslackbuilds-60a50bf7ce004a9b0ec76a2539d4654ff20cb4f7.tar.gz
slackbuilds-60a50bf7ce004a9b0ec76a2539d4654ff20cb4f7.tar.xz
system/bogofilter: Miscellaneous script cleanups.
Diffstat (limited to 'system/bogofilter')
-rw-r--r--system/bogofilter/bogofilter.SlackBuild17
-rw-r--r--system/bogofilter/slack-desc10
2 files changed, 17 insertions, 10 deletions
diff --git a/system/bogofilter/bogofilter.SlackBuild b/system/bogofilter/bogofilter.SlackBuild
index ec1682c289..01daaa7524 100644
--- a/system/bogofilter/bogofilter.SlackBuild
+++ b/system/bogofilter/bogofilter.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=bogofilter
VERSION=1.2.1
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-bogofilter
@@ -76,10 +85,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/html
cp AUTHORS COPYING GETTING.STARTED INSTALL NEWS* README* RELEASE.NOTES \
diff --git a/system/bogofilter/slack-desc b/system/bogofilter/slack-desc
index e92ad036d9..49f36abf5d 100644
--- a/system/bogofilter/slack-desc
+++ b/system/bogofilter/slack-desc
@@ -7,13 +7,13 @@
|-----handy-ruler--------------------------------------------------|
bogofilter: bogofilter (mail filtering software)
-bogofilter:
+bogofilter:
bogofilter: Bogofilter is a mail filter that classifies mail as spam or ham
bogofilter: (non-spam) by a statistical analysis of the message's header and
bogofilter: content (body). The program is able to learn from the user's
bogofilter: classifications and corrections.
-bogofilter:
+bogofilter:
bogofilter: Homepage: http://bogofilter.sourceforge.net/
-bogofilter:
-bogofilter:
-bogofilter:
+bogofilter:
+bogofilter:
+bogofilter: