network/havp: Updated for version 0.93.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2022-02-27 16:21:05 +00:00 committed by Robby Workman
parent 169f393c88
commit 604d4035c6
3 changed files with 7 additions and 34 deletions

View file

@ -7,14 +7,14 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=havp
VERSION=${VERSION:-0.92a}
VERSION=${VERSION:-0.93}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -32,8 +32,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -80,7 +80,6 @@ find -L . \
patch -p1 < $CWD/patches/fixup_and_install_init_script.diff
patch -p1 < $CWD/patches/use_clamav_group_by_default.diff
patch -p1 < $CWD/patches/put_templates_in_usrshare.diff
patch -p1 < $CWD/patches/use_vartmphavp_for_tempdir.diff
CFLAGS="$SLKCFLAGS"
./configure \

View file

@ -1,8 +1,8 @@
PRGNAM="havp"
VERSION="0.92a"
VERSION="0.93"
HOMEPAGE="https://sourceforge.net/projects/havp/"
DOWNLOAD="https://downloads.sourceforge.net/havp/havp-0.92a.tar.gz"
MD5SUM="f9a37411116eceea579b9034c5fa8a69"
DOWNLOAD="https://downloads.sourceforge.net/havp/havp-0.93.tar.gz"
MD5SUM="0bfac9d9b12a3bdc33759691e67ccb7f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="clamav"

View file

@ -1,26 +0,0 @@
Set the working dir (TEMPDIR) to /var/tmp/havp instead of /var/tmp
diff -Nur havp-0.92a.orig/etc/havp/havp.config.in havp-0.92a/etc/havp/havp.config.in
--- havp-0.92a.orig/etc/havp/havp.config.in 2011-12-20 22:08:18.907739050 -0600
+++ havp-0.92a/etc/havp/havp.config.in 2011-12-20 22:08:55.267259030 -0600
@@ -120,7 +120,7 @@
# Needs to be writable by HAVP user. Use ramdisk for best performance.
#
# Default:
-# TEMPDIR /var/tmp
+# TEMPDIR /var/tmp/havp
#
# HAVP reloads scanners virus database by receiving a signal
diff -Nur havp-0.92a.orig/havp/params.cpp havp-0.92a/havp/params.cpp
--- havp-0.92a.orig/havp/params.cpp 2010-04-02 08:32:42.000000000 -0500
+++ havp-0.92a/havp/params.cpp 2011-12-20 22:08:44.061406971 -0600
@@ -70,7 +70,7 @@
SetConfig("WHITELIST", WHITELISTFILE);
SetConfig("BLACKLIST", BLACKLISTFILE);
SetConfig("TEMPLATEPATH", TEMPLATEPATH);
- SetConfig("TEMPDIR", "/var/tmp");
+ SetConfig("TEMPDIR", "/var/tmp/havp");
SetConfig("SCANTEMPFILE", "/var/tmp/havp/havp-XXXXXX");
SetConfig("PIDFILE", PIDFILE);
SetConfig("TRANSPARENT", "false");