aboutsummaryrefslogtreecommitdiff
path: root/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2010-07-04 02:09:33 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-07-04 02:09:33 -0500
commitbd4adc80c0c73e267bacf8508127ab9d3cf5c1ce (patch)
tree710c7c9d99bee2d20a7b94b67863140e27b26927 /network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
parentc8ad057840b3285e0970bd14d1426d2595bce2c2 (diff)
network/clamav-unofficial-sigs: Updated for version 3.7.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild')
-rw-r--r--network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild49
1 files changed, 20 insertions, 29 deletions
diff --git a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
index d6ee564e5b23c..d38e1fa88e5b9 100644
--- a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
+++ b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
@@ -1,12 +1,9 @@
#!/bin/sh
# Slackware Package Build Script for clamav-unofficial-sigs
-# package provides easy download and integration of unofficial third-party
-# clamav signatures.
-
# Home Page: http://www.inetmsg.com/pub/
-# Copyright (c) 2009-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant@mnspace.net)
+# Copyright (c) 2009-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +25,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=clamav-unofficial-sigs
-VERSION=3.7
+VERSION=3.7.1
ARCH=noarch # hardcode ARCH
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,9 +35,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-set -e # Exit on most errors
+set -e
-### user and group for config file
CONFIG_USER="root"
CONFIG_GROUP="clamav"
@@ -49,41 +45,36 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-
chown -R root:root .
-mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION,man/man8}
-### install bash script
+mkdir -p $PKG/usr/bin
install -m 0755 $PRGNAM.sh $PKG/usr/bin
-### install docs
-install -m 0644 CHANGELOG INSTALL README \
-LICENSE clamd-status.sh \
-$PRGNAM-cron $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/etc/logrotate.d
+install -m 0644 $PRGNAM-logrotate $PKG/etc/logrotate.d/$PRGNAM.new
-### install logrotate script
-install -D -m 0644 $PRGNAM-logrotate $PKG/etc/logrotate.d/$PRGNAM.new
-
-### install manpage and compress manpage
+mkdir -p $PKG/usr/man/man8
install -m 0644 $PRGNAM.8 $PKG/usr/man/man8
gzip -9 $PKG/usr/man/man8/$PRGNAM.8
-### patch and provide config file in /etc
-### patch actually introduces two variables pkg_mgr & pkg_rm.
-### these variables are original developer's recommended way to stop
-### the script from removing itself (and its files) via the "-r" flag
+# Patch and provide config file in /etc
+# The patch actually introduces two variables: pkg_mgr & pkg_rm.
+# These variables are original developer's recommended way to stop
+# the script from removing itself (and its files) via the "-r" flag
patch -p0 < $CWD/package_manager.patch
+mkdir -p $PKG/etc
install -m 0640 $PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
+chown $CONFIG_USER:$CONFIG_GROUP $PKG/etc/$PRGNAM.conf.new
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGELOG INSTALL README LICENSE clamd-status.sh $PRGNAM-cron \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-### install doinst.sh and slack-desc
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-sed s:@VERSION@:$PRGNAM-$VERSION: $CWD/slack-desc > $PKG/install/slack-desc
-
-### change config file perms
-chown $CONFIG_USER:$CONFIG_GROUP $PKG/etc/$PRGNAM.conf.new
+cat $CWD/slack-desc > $PKG/install/slack-desc
-### make package
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}