From 60a50bf7ce004a9b0ec76a2539d4654ff20cb4f7 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Tue, 18 May 2010 11:15:24 -0500 Subject: system/bogofilter: Miscellaneous script cleanups. --- system/bogofilter/bogofilter.SlackBuild | 17 ++++++++++++----- system/bogofilter/slack-desc | 10 +++++----- 2 files changed, 17 insertions(+), 10 deletions(-) (limited to 'system') 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: -- cgit v1.2.3