diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2016-08-19 16:23:18 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-20 07:49:48 +0700 |
commit | 1c27ddc87ffee3f3294b3e6c03666248f77b1244 (patch) | |
tree | e8dffcacf3ec22aca6ff0bccd92e04d883ac28ce /network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild | |
parent | 30a0b2fe2e5af60a5fde3bd28dd2192f81f5f502 (diff) |
network/clamav-unofficial-sigs: Updated for version 5.4.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild')
-rw-r--r-- | network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild | 50 |
1 files changed, 20 insertions, 30 deletions
diff --git a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild index 2c1f1a706d40..906fe1b17549 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: https://github.com/extremeshok/clamav-unofficial-sigs -# Home Page: http://www.inetmsg.com/pub/ - -# Copyright (c) 2009-2013, Nishant Limbachia, Hoffman Estates, IL, USA +# Copyright (c) 2009-2016, Nishant Limbachia, Hoffman Estates, IL, USA # (nishant _AT_ mnspace _DOT_ net) # All rights reserved. # @@ -29,7 +26,7 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM="clamav-unofficial-sigs" -VERSION=${VERSION:-3.7.2} +VERSION=${VERSION:-5.4.1} ARCH="noarch" # hardcode ARCH BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -39,7 +36,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -set -e +set -e ### user and group for config file CONFIG_USER="root" @@ -48,43 +45,36 @@ CONFIG_GROUP="clamav" rm -fr $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION,man/man8} + +# Apply patches, copy configs +mkdir -p $PKG/etc/{$PRGNAM,logrotate.d} + +patch -p0 < $CWD/patches/os.slackware.conf.patch +patch -p0 < $CWD/patches/master.conf.patch +install -m 0644 -D config/user.conf $PKG/etc/$PRGNAM/user.conf.new +install -m 0644 -D config/os.slackware.conf $PKG/etc/$PRGNAM/os.conf.new +install -m 0644 -D config/master.conf $PKG/etc/$PRGNAM/master.conf.new ### install bash script -install -m 0755 $PRGNAM.sh $PKG/usr/bin +install -m 0755 -D $PRGNAM.sh $PKG/usr/bin/$PRGNAM.sh ### install docs -install -m 0644 CHANGELOG INSTALL README \ -LICENSE clamd-status.sh \ -$PRGNAM-cron $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +install -m 0644 INSTALL README.md LICENSE $CWD/UPGRADE_NOTICE \ + $CWD/$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 +install -m 0644 $CWD/$PRGNAM.logrotate $PKG/etc/logrotate.d/$PRGNAM.new ### install manpage and compress manpage -install -m 0644 $PRGNAM.8 $PKG/usr/man/man8 +install -m 0644 -D $CWD/$PRGNAM.8 $PKG/usr/man/man8/$PRGNAM.8 gzip -9 $PKG/usr/man/man8/$PRGNAM.8 -# 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 - mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc |