diff options
Diffstat (limited to 'network/clamav-unofficial-sigs')
3 files changed, 32 insertions, 19 deletions
diff --git a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.SlackBuild index d38e1fa88e5b9..4e151c156c071 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 diff --git a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.info b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.info index 7050691058431..80257da7fe044 100644 --- a/network/clamav-unofficial-sigs/clamav-unofficial-sigs.info +++ b/network/clamav-unofficial-sigs/clamav-unofficial-sigs.info @@ -1,8 +1,8 @@ PRGNAM="clamav-unofficial-sigs" -VERSION="3.7.1" -HOMEPAGE="http://www.inetmsg.com/pub/" -DOWNLOAD="http://downloads.sourceforge.net/unofficial-sigs/clamav-unofficial-sigs-3.7.1.tar.gz" -MD5SUM="c00f38cd0ff51672e3cbb638aec8d124" +VERSION="3.7.2" +HOMEPAGE="http://sourceforge.net/projects/unofficial-sigs/" +DOWNLOAD="http://sourceforge.net/projects/unofficial-sigs/files/clamav-unofficial-sigs-3.7.2.tar.gz" +MD5SUM="3fc7934f5b3ae139e852fd6d0e1996a0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="clamav" diff --git a/network/clamav-unofficial-sigs/package_manager.patch b/network/clamav-unofficial-sigs/package_manager.patch index c2030d8fe9c78..0b34520922dd8 100644 --- a/network/clamav-unofficial-sigs/package_manager.patch +++ b/network/clamav-unofficial-sigs/package_manager.patch @@ -1,13 +1,13 @@ ---- clamav-unofficial-sigs.conf.orig 2009-05-11 08:07:00.739452000 -0500 -+++ clamav-unofficial-sigs.conf 2009-05-11 08:08:44.213661407 -0500 -@@ -34,6 +34,10 @@ +--- clamav-unofficial-sigs.conf.orig 2013-09-16 18:58:03.738768005 -0500 ++++ clamav-unofficial-sigs.conf 2013-09-16 18:59:41.609098853 -0500 +@@ -31,6 +31,10 @@ PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" export PATH -+# Slackware package management info ++# Slackware Package Management Variables +pkg_mgr="pkgtool" +pkg_rm="removepkg clamav-unofficial-sigs" + # Set the appropriate ClamD user and group accounts for your system. - clam_user="clamav" - clam_group="clamav" + # If you do not want the script to set user and group permissions on + # files and directories, comment the next two variables. |