Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37904033
en ru br
ALT Linux repos
5.0: 0.90-alt0.M50.2
4.1: 0.90-alt0.M41.2
3.0:
+backports:0.84-alt0.M30.1

Group :: System/Servers
RPM: havp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: havp-0.90-alt.patch
Download


 INSTALL                          |    4 ++--
 etc/havp/havp.config.in          |    8 ++++----
 havp/connectiontobrowser.cpp     |    1 +
 havp/connectiontohttp.cpp        |    1 +
 havp/httphandler.cpp             |    1 +
 havp/logfile.cpp                 |    1 +
 havp/params.cpp                  |    6 +++---
 havp/scanners/clamlibscanner.cpp |    2 +-
 havp/scanners/drwebscanner.cpp   |    1 +
 havp/scanners/f-protscanner.cpp  |    2 +-
 10 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/INSTALL b/INSTALL
index 1e2d278..1c45adf 100644
--- a/INSTALL
+++ b/INSTALL
@@ -68,8 +68,8 @@ without these extra steps:
 
 Make sure the directories you are using have correct permissions:
 
-  # chown havp /var/tmp/havp /var/log/havp /var/run/havp
-  # chmod 700 /var/tmp/havp /var/log/havp /var/run/havp
+  # chown havp /var/spool/havp /var/log/havp /var/run/havp
+  # chmod 700 /var/spool/havp /var/log/havp /var/run/havp
 
 Start havp:
 
diff --git a/etc/havp/havp.config.in b/etc/havp/havp.config.in
index 80c0a6b..b6cdcc0 100644
--- a/etc/havp/havp.config.in
+++ b/etc/havp/havp.config.in
@@ -16,7 +16,7 @@
 # You must remove this line for HAVP to start.
 # This makes sure you have (hopefully) reviewed the configuration. :)
 # Hint: You must enable some scanner! Find them in the end..
-REMOVETHISLINE deleteme
+
 
 #
 # For reasons of security it is recommended to run a proxy program
@@ -105,14 +105,14 @@ REMOVETHISLINE deleteme
 # These characters are used by system to create unique named files.
 #
 # Default:
-# SCANTEMPFILE /var/tmp/havp/havp-XXXXXX
+# SCANTEMPFILE /var/spool/havp/havp-XXXXXX
 
 #
 # Directory for ClamAV and other scanner created tempfiles.
 # Needs to be writable by HAVP user. Use ramdisk for best performance.
 #
 # Default:
-# TEMPDIR /var/tmp
+# TEMPDIR /var/spool/havp
 
 #
 # HAVP reloads scanners virus database by receiving a signal
@@ -386,7 +386,7 @@ REMOVETHISLINE deleteme
 ##### ClamAV Library Scanner (libclamav)
 #####
 
-ENABLECLAMLIB false
+ENABLECLAMLIB true
 
 # HAVP uses libclamav hardcoded pattern directory, which usually is
 # /usr/local/share/clamav. You only need to set CLAMDBDIR, if you are
diff --git a/havp/connectiontobrowser.cpp b/havp/connectiontobrowser.cpp
index dc3403d..83d8a78 100644
--- a/havp/connectiontobrowser.cpp
+++ b/havp/connectiontobrowser.cpp
@@ -19,6 +19,7 @@
 #include "connectiontobrowser.h"
 #include "params.h"
 #include "utils.h"
+#include <stdio.h>
 
 #include <arpa/inet.h>
 
diff --git a/havp/connectiontohttp.cpp b/havp/connectiontohttp.cpp
index a99a147..b5e7abc 100644
--- a/havp/connectiontohttp.cpp
+++ b/havp/connectiontohttp.cpp
@@ -18,6 +18,7 @@
 #include "connectiontohttp.h"
 #include "logfile.h"
 #include "utils.h"
+#include <stdio.h>
 
 extern int LL; //LogLevel
 
diff --git a/havp/httphandler.cpp b/havp/httphandler.cpp
index 6b09169..0c49157 100644
--- a/havp/httphandler.cpp
+++ b/havp/httphandler.cpp
@@ -19,6 +19,7 @@
 #include "logfile.h"
 #include "utils.h"
 #include "default.h"
+#include <stdio.h>
 
 //Read header
 bool HTTPHandler::ReadHeader( string &headerT )
diff --git a/havp/logfile.cpp b/havp/logfile.cpp
index 7c0623c..21c6a5a 100644
--- a/havp/logfile.cpp
+++ b/havp/logfile.cpp
@@ -24,6 +24,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <stdarg.h>
+#include <stdio.h>
 #include <fcntl.h>
 #include <syslog.h>
 #include <map>
diff --git a/havp/params.cpp b/havp/params.cpp
index 6646ffe..f2dd635 100644
--- a/havp/params.cpp
+++ b/havp/params.cpp
@@ -41,7 +41,7 @@ void Params::SetDefaults()
     SetConfig("SERVERNUMBER",	"8");
     SetConfig("MAXSERVERS",	"150");
     SetConfig("PORT",		"8080");
-    SetConfig("BIND_ADDRESS",	"");
+    SetConfig("BIND_ADDRESS",	"127.0.0.1");
     SetConfig("SOURCE_ADDRESS",	"");
     SetConfig("PARENTPROXY",	"");
     SetConfig("PARENTPORT",	"0");
@@ -64,8 +64,8 @@ void Params::SetDefaults()
     SetConfig("WHITELIST",	WHITELISTFILE);
     SetConfig("BLACKLIST",	BLACKLISTFILE);
     SetConfig("TEMPLATEPATH",	TEMPLATEPATH);
-    SetConfig("TEMPDIR",	"/var/tmp");
-    SetConfig("SCANTEMPFILE",	"/var/tmp/havp/havp-XXXXXX");
+    SetConfig("TEMPDIR",	"/var/spool/havp");
+    SetConfig("SCANTEMPFILE",	"/var/spool/havp/havp-XXXXXX");
     SetConfig("PIDFILE",	PIDFILE);
     SetConfig("TRANSPARENT",	"false");
     SetConfig("RANGE",		"false");
diff --git a/havp/scanners/clamlibscanner.cpp b/havp/scanners/clamlibscanner.cpp
index f851552..b84093d 100644
--- a/havp/scanners/clamlibscanner.cpp
+++ b/havp/scanners/clamlibscanner.cpp
@@ -18,7 +18,7 @@
 extern int LL;
 
 #include "clamlibscanner.h"
-
+#include <stdio.h>
 
 bool ClamLibScanner::InitDatabase()
 {
diff --git a/havp/scanners/drwebscanner.cpp b/havp/scanners/drwebscanner.cpp
index d08cd33..2d6467f 100644
--- a/havp/scanners/drwebscanner.cpp
+++ b/havp/scanners/drwebscanner.cpp
@@ -16,6 +16,7 @@
  ***************************************************************************/
 
 #include "drwebscanner.h"
+#include <stdio.h>
 
 /* drweb-clients-4.33-sources */
 
diff --git a/havp/scanners/f-protscanner.cpp b/havp/scanners/f-protscanner.cpp
index a31405e..09c6c53 100644
--- a/havp/scanners/f-protscanner.cpp
+++ b/havp/scanners/f-protscanner.cpp
@@ -16,7 +16,7 @@
  ***************************************************************************/
 
 #include "f-protscanner.h"
-
+#include <stdio.h>
 
 bool FProtScanner::InitDatabase()
 {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin