summaryrefslogtreecommitdiffstats
path: root/clamav
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2006-12-13 14:53:57 +0000
committer Eric Hameleers <alien@slackware.com>2006-12-13 14:53:57 +0000
commitef3471ade71ac4742fe53e9de991da6b37c588c5 (patch)
treeea3f4c50482004879c8568d8baf68259f90b2f2e /clamav
parent62646c7892eb7e6f3bb0e184696d81503e8b31d8 (diff)
downloadasb-ef3471ade71ac4742fe53e9de991da6b37c588c5.tar.gz
asb-ef3471ade71ac4742fe53e9de991da6b37c588c5.tar.xz
New release
Diffstat (limited to 'clamav')
-rwxr-xr-xclamav/build/clamav.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/clamav/build/clamav.SlackBuild b/clamav/build/clamav.SlackBuild
index 4ae2dbd3..2568bd01 100755
--- a/clamav/build/clamav.SlackBuild
+++ b/clamav/build/clamav.SlackBuild
@@ -58,6 +58,8 @@
# this package uses instead of '/var/lib/clamav'. Also correctly
# creates clamav user/group and assigns ownership if the target
# root is not that of the running machine (using chroot).
+# 0.88.7-1: 13/dec/2006 by Eric Hameleers
+# * Rew release.
#
# Run 'sh SlackBuild --cleanup' to build a Slackware package.
# The package (.tgz) plus descriptive .txt file are created in /tmp .
@@ -69,7 +71,7 @@
# Set initial variables:
PRGNAM=clamav
-VERSION=${VERSION:-0.88.6}
+VERSION=${VERSION:-0.88.7}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
@@ -94,7 +96,7 @@ trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR
set -u
P1=${1:-1}
-SOURCE="${PRGNAM}-${VERSION}.tar.gz"
+SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz"
SRCURL="http://dl.sourceforge.net/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz"
##
@@ -153,13 +155,15 @@ fi
# --- SOURCE FILE AVAILABILITY ---
-if ! [ -f ${SRCDIR}/${SOURCE} ]; then
+if ! [ -f ${SOURCE} ]; then
if ! [ "x${SRCURL}" == "x" ]; then
+ # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT
+ [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/`basename $SOURCE`"
echo "Source '${SOURCE}' not available yet... will download now:"
- wget -nv -O "${SRCDIR}/${SOURCE}" "${SRCURL}" || true
+ wget -nv -O "${SOURCE}" "${SRCURL}" || true
if [ $? -ne 0 ]; then
echo "Downloading '${SOURCE}' failed... aborting the build."
- mv -f "${SRCDIR}/${SOURCE}" "${SRCDIR}/${SOURCE}".FAIL
+ mv -f "${SOURCE}" "${SOURCE}".FAIL
exit 1
fi
else
@@ -193,7 +197,7 @@ cd $TMP/tmp-$PRGNAM
# --- TARBALL EXTRACTION,PATCH,MODIFY ---
echo "Extracting the source archive(s) for $PRGNAM..."
-tar -xzvf $SRCDIR/${PRGNAM}-${VERSION}.tar.gz
+tar -xzvf $SOURCE
cd ${PRGNAM}-${VERSION}
chown -R root.root *
@@ -332,7 +336,7 @@ cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/*
# Compress the man page(s)
-[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
+find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
# Strip binaries
( cd $PKG