aboutsummaryrefslogtreecommitdiff
path: root/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2010-05-13 00:35:57 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:35:57 +0200
commitbb8d2fed403355c71769ef2e4c1c5a7b0a7d5526 (patch)
tree84b952447d3ae6b343e1ff381c13a2d0e21b4315 /network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
parentfef1426727f109d6a7383982f947d554af87d272 (diff)
network/clamav-unofficial-sigs: Updated for version 3.7
Diffstat (limited to 'network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild')
-rw-r--r--network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild67
1 files changed, 34 insertions, 33 deletions
diff --git a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
index 1a79eebba2fcf..d6ee564e5b23c 100644
--- a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
+++ b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild
@@ -1,19 +1,18 @@
#!/bin/sh
# Slackware Package Build Script for clamav-unofficial-sigs
-
# package provides easy download and integration of unofficial third-party
# clamav signatures.
-# http://www.inetmsg.com/pub/
+# Home Page: http://www.inetmsg.com/pub/
-# Copyright (c) 2009, Nishant Limbachia (nishant@mnspace.net)
+# Copyright (c) 2009-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant@mnspace.net)
# All rights reserved.
#
-# Redistribution and use of this script, with or without modification, is
+# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
-# 1. Redistributions of script must retain the above copyright notice,
+# 1. Redistributions of script must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -29,8 +28,8 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=clamav-unofficial-sigs
-VERSION=3.1
-ARCH=${ARCH:-noarch}
+VERSION=3.7
+ARCH=noarch # hardcode ARCH
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,48 +40,50 @@ OUTPUT=${OUTPUT:-/tmp}
set -e # Exit on most errors
-# user and group for config file
-# If you set up clamav to use a different group, you can change it here,
-# but you will also need to edit the config file that this package installs
-CONFIG_USER=root
-CONFIG_GROUP=clamav
+### user and group for config file
+CONFIG_USER="root"
+CONFIG_GROUP="clamav"
rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-chown -R root.root .
-# Install bash script
-mkdir -p $PKG/usr/bin
+chown -R root:root .
+mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION,man/man8}
+
+### install bash script
install -m 0755 $PRGNAM.sh $PKG/usr/bin
-# Install logrotate script
-install -D -m 0644 $PRGNAM.logrotate $PKG/etc/logrotate.d/$PRGNAM.new
+### 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
-# 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 it's files) via the "-r" flag
-patch -p0 < $CWD/package_manager.patch
-install -m 0640 $PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
-chown $CONFIG_USER:$CONFIG_GROUP $PKG/etc/$PRGNAM.conf.new
+### install logrotate script
+install -D -m 0644 $PRGNAM-logrotate $PKG/etc/logrotate.d/$PRGNAM.new
-# Install and compress manpage
-mkdir -p $PKG/usr/man/man8
+### install manpage and compress manpage
install -m 0644 $PRGNAM.8 $PKG/usr/man/man8
gzip -9 $PKG/usr/man/man8/$PRGNAM.8
-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
+### 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 -p0 < $CWD/package_manager.patch
+install -m 0640 $PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
+### install doinst.sh and slack-desc
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-sed "s%@VERSION@%$VERSION%g" $CWD/slack-desc > $PKG/install/slack-desc
+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
+### make package
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}