diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2013-10-27 01:19:49 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-27 23:39:01 -0500 |
commit | c57c3228d909a7d1b7cd9484ee575de6bc43b375 (patch) | |
tree | 13df75cffdf77cce9a610c79f32fef7ca66dfb40 /network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild | |
parent | e462e0a44aca13ebd0c38beade67bb6955ab6f32 (diff) | |
download | slackbuilds-c57c3228d909a7d1b7cd9484ee575de6bc43b375.tar.gz |
network/clamav-unofficial-sigs: Updated for version 3.7.2.
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.SlackBuild | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild index d38e1fa88e..4e151c156c 100644 --- a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild +++ b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild @@ -1,9 +1,13 @@ #!/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 _AT_ mnspace _DOT_ net) +# Copyright (c) 2009-2013, 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 @@ -24,9 +28,9 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=clamav-unofficial-sigs -VERSION=3.7.1 -ARCH=noarch # hardcode ARCH +PRGNAM="clamav-unofficial-sigs" +VERSION=${VERSION:-3.7.2} +ARCH="noarch" # hardcode ARCH BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,8 +39,9 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -set -e +set -e # Exit on most errors +### user and group for config file CONFIG_USER="root" CONFIG_GROUP="clamav" @@ -45,15 +50,23 @@ 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} -mkdir -p $PKG/usr/bin +### install bash script install -m 0755 $PRGNAM.sh $PKG/usr/bin -mkdir -p $PKG/etc/logrotate.d -install -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 + +### install logrotate script +install -D -m 0644 $PRGNAM-logrotate $PKG/etc/logrotate.d/$PRGNAM.new -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 |