git-svn: trunk@928
remotes/push_mirror/metadata
Tomasz Kojm 21 years ago
parent 3aa5c1c950
commit 8600c7eb6a
  1. 9
      clamav-devel/.cvsignore
  2. 15
      clamav-devel/ChangeLog
  3. 23
      clamav-devel/Makefile.in
  4. 2
      clamav-devel/clamav-config
  5. 6
      clamav-devel/clamav-config.h.in
  6. 2
      clamav-devel/clamav-milter/.cvsignore
  7. 4
      clamav-devel/clamd/.cvsignore
  8. 4
      clamav-devel/clamdscan/.cvsignore
  9. 4
      clamav-devel/clamscan/.cvsignore
  10. 130
      clamav-devel/configure
  11. 17
      clamav-devel/configure.in
  12. 1
      clamav-devel/database/.cvsignore
  13. 1
      clamav-devel/docs/.cvsignore
  14. BIN
      clamav-devel/docs/MacOSX/Macintosh.tar.gz
  15. 58
      clamav-devel/docs/man/clamd.8
  16. 285
      clamav-devel/docs/man/clamd.conf.5
  17. 111
      clamav-devel/docs/man/freshclam.1
  18. 94
      clamav-devel/docs/man/freshclam.conf.5
  19. 1
      clamav-devel/etc/.cvsignore
  20. 4
      clamav-devel/freshclam/.cvsignore
  21. 5
      clamav-devel/libclamav/.cvsignore
  22. 13
      clamav-devel/libclamav/cltypes.h
  23. 4
      clamav-devel/sigtool/.cvsignore

@ -0,0 +1,9 @@
Makefile
autom4te.cache
clamav-config.h
config.log
config.status
libclamav.pc
libtool
stamp-h1
target.h

@ -1,3 +1,16 @@
Sun Sep 26 03:11:48 CEST 2004 (tk)
----------------------------------
* docs/MacOSX: update (Dale Enterprise L.L.C)
* freshclam: fix compilation problem on Max OS X (thanks to Mr Mailing List
<maillist*smarttv.dk>)
* configure: do not test double for resolv.h (thanks to Masaki Ogawa
<proc*mac.com>)
* docs/man: fix config paths (thanks to Tuomo Soini <tis*foobar.fi>)
* libclamav: fix compilation problem on Interix (Brian A. Reiter
<breiter*wolfereiter.com>)
* configure: add check for __dn_expand (required for some new Linux
distributions, thanks to Reinhard Max <max*tclers.tk>)
Sat Sep 25 16:48:18 BST 2004 (njh)
----------------------------------
* clamav-milter: Didn't compile with some older Linuxes
@ -12,7 +25,7 @@ Fri Sep 24 09:14:44 BST 2004 (trog)
Thu Sep 23 09:46:06 BST 2004 (njh)
----------------------------------
* libclamav/mbox.c: Scan multipart/digest messages (suggested by "Andrey J.
Melnikoff (TEMHOTA)" <temnota@kmv.ru>)
Melnikoff (TEMHOTA)" <temnota*kmv.ru>)
Wed Sep 22 17:11:23 BST 2004 (njh)
----------------------------------

@ -58,9 +58,12 @@ target_triplet = @target@
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/clamav-config.h.in \
$(srcdir)/clamav-config.in $(srcdir)/libclamav.pc.in \
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
TODO config.guess config.sub depcomp install-sh ltmain.sh \
missing mkinstalldirs
$(top_srcdir)/configure $(top_srcdir)/docs/man/clamd.8.in \
$(top_srcdir)/docs/man/clamd.conf.5.in \
$(top_srcdir)/docs/man/freshclam.1.in \
$(top_srcdir)/docs/man/freshclam.conf.5.in AUTHORS COPYING \
ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
install-sh ltmain.sh missing mkinstalldirs
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
@ -71,7 +74,9 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno configure.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = clamav-config.h
CONFIG_CLEAN_FILES = clamav-config libclamav.pc
CONFIG_CLEAN_FILES = clamav-config libclamav.pc docs/man/clamd.8 \
docs/man/clamd.conf.5 docs/man/freshclam.1 \
docs/man/freshclam.conf.5
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"
binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
SCRIPTS = $(bin_SCRIPTS)
@ -269,6 +274,14 @@ clamav-config: $(top_builddir)/config.status $(srcdir)/clamav-config.in
cd $(top_builddir) && $(SHELL) ./config.status $@
libclamav.pc: $(top_builddir)/config.status $(srcdir)/libclamav.pc.in
cd $(top_builddir) && $(SHELL) ./config.status $@
docs/man/clamd.8: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamd.8.in
cd $(top_builddir) && $(SHELL) ./config.status $@
docs/man/clamd.conf.5: $(top_builddir)/config.status $(top_srcdir)/docs/man/clamd.conf.5.in
cd $(top_builddir) && $(SHELL) ./config.status $@
docs/man/freshclam.1: $(top_builddir)/config.status $(top_srcdir)/docs/man/freshclam.1.in
cd $(top_builddir) && $(SHELL) ./config.status $@
docs/man/freshclam.conf.5: $(top_builddir)/config.status $(top_srcdir)/docs/man/freshclam.conf.5.in
cd $(top_builddir) && $(SHELL) ./config.status $@
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@ -439,7 +452,7 @@ distclean-tags:
distdir: $(DISTFILES)
$(am__remove_distdir)
mkdir $(distdir)
$(mkdir_p) $(distdir)/.
$(mkdir_p) $(distdir)/. $(distdir)/docs/man
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \

@ -46,7 +46,7 @@ while test $# -gt 0; do
;;
--version)
echo devel-20040921
echo devel-20040926
exit 0
;;

@ -1,5 +1,8 @@
/* clamav-config.h.in. Generated from configure.in by autoheader. */
/* enable bind8 compatibility */
#undef BIND_8_COMPAT
/* Define if your snprintf is busted */
#undef BROKEN_SNPRINTF
@ -108,6 +111,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* in_addr_t is defined */
#undef HAVE_IN_ADDR_T
/* in_port_t is defined */
#undef HAVE_IN_PORT_T

@ -0,0 +1,4 @@
.deps
.libs
Makefile
clamd

@ -0,0 +1,4 @@
.deps
.libs
Makefile
clamdscan

@ -0,0 +1,4 @@
.deps
.libs
Makefile
clamscan

@ -8542,8 +8542,7 @@ fi
for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h resolv.h
for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
@ -10547,6 +10546,74 @@ fi;
if test "$want_dns" = "yes"
then
echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
echo $ECHO_N "checking for __dn_expand in -lresolv... $ECHO_C" >&6
if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __dn_expand ();
int
main ()
{
__dn_expand ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_resolv___dn_expand=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_resolv___dn_expand=no
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6
if test $ac_cv_lib_resolv___dn_expand = yes; then
resolv_lib="-lresolv"
fi
if test -z "$resolv_lib"; then
echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
@ -10614,6 +10681,7 @@ if test $ac_cv_lib_resolv_dn_expand = yes; then
resolv_lib="-lresolv"
fi
fi
if test "${ac_cv_header_resolv_h+set}" = set; then
echo "$as_me:$LINENO: checking for resolv.h" >&5
echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6
@ -11269,6 +11337,53 @@ fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <netinet/in.h>
int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_IN_ADDR_T 1
_ACEOF
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
echo "$as_me:$LINENO: result: in_addr_t is not defined" >&5
echo "${ECHO_T}in_addr_t is not defined" >&6
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
case "$target_os" in
linux*)
@ -11488,6 +11603,11 @@ cat >>confdefs.h <<\_ACEOF
#define C_DARWIN 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define BIND_8_COMPAT 1
_ACEOF
use_netinfo="yes"
;;
sco*)
@ -13393,7 +13513,7 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile etc/Makefile Makefile clamav-config libclamav.pc"
ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/freshclam.1 docs/man/freshclam.conf.5"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
@ -13984,6 +14104,10 @@ do
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"clamav-config" ) CONFIG_FILES="$CONFIG_FILES clamav-config" ;;
"libclamav.pc" ) CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;;
"docs/man/clamd.8" ) CONFIG_FILES="$CONFIG_FILES docs/man/clamd.8" ;;
"docs/man/clamd.conf.5" ) CONFIG_FILES="$CONFIG_FILES docs/man/clamd.conf.5" ;;
"docs/man/freshclam.1" ) CONFIG_FILES="$CONFIG_FILES docs/man/freshclam.1" ;;
"docs/man/freshclam.conf.5" ) CONFIG_FILES="$CONFIG_FILES docs/man/freshclam.conf.5" ;;
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
"clamav-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS clamav-config.h" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5

@ -37,7 +37,7 @@ AC_DEFINE(SCANBUFF, 131072, [scan buffer size])
AC_DEFINE(FILEBUFF, 8192, [file i/o buffer size])
AC_HEADER_STDC
AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h resolv.h)
AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h)
AC_CHECK_HEADER(syslog.h,AC_DEFINE(USE_SYSLOG,1,[use syslog]),)
AC_TYPE_OFF_T
@ -92,7 +92,10 @@ want_dns="no",)
if test "$want_dns" = "yes"
then
AC_CHECK_LIB(resolv, __dn_expand, resolv_lib="-lresolv",)
if test -z "$resolv_lib"; then
AC_CHECK_LIB(resolv, dn_expand, resolv_lib="-lresolv",)
fi
AC_CHECK_HEADER(resolv.h,[FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; AC_DEFINE(HAVE_RESOLV_H,1,have resolv.h)], AC_MSG_WARN([****** DNS support disabled]))
fi
@ -235,6 +238,13 @@ AC_TRY_RUN([
int main(int argc, char **argv) { in_port_t pt; pt = 0; return pt; }
], AC_DEFINE(HAVE_IN_PORT_T,1,[in_port_t is defined]), AC_MSG_RESULT(in_port_t is not defined))
dnl check for in_addr_t definition
AC_TRY_RUN([
#include <sys/types.h>
#include <netinet/in.h>
int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; }
], AC_DEFINE(HAVE_IN_ADDR_T,1,[in_addr_t is defined]), AC_MSG_RESULT(in_addr_t is not defined))
case "$target_os" in
linux*)
AC_DEFINE(C_LINUX,1,[target is linux])
@ -344,6 +354,7 @@ beos*)
darwin*)
AC_DEFINE(C_BSD,1,[os is bsd flavor])
AC_DEFINE(C_DARWIN,1,[os is darwin])
AC_DEFINE(BIND_8_COMPAT,1,[enable bind8 compatibility])
use_netinfo="yes"
;;
sco*)
@ -709,4 +720,8 @@ etc/Makefile
Makefile
clamav-config
libclamav.pc
docs/man/clamd.8
docs/man/clamd.conf.5
docs/man/freshclam.1
docs/man/freshclam.conf.5
])

@ -1,58 +0,0 @@
.\" Manual page created by Tomasz Kojm, 20020929
.TH "Clam Daemon" "8" "November 11, 2003" "Tomasz Kojm" "Clam AntiVirus"
.SH "NAME"
.LP
clamd \- an anti\-virus daemon
.SH "SYNOPSIS"
.LP
clamd [options]
.SH "DESCRIPTION"
.LP
The daemon listens for incoming connections on Unix or TCP socket and scans files or directories on demand. It's a part of the Clam AntiVirus package. It reads its configuration information from a clamd.conf file. It provides on\-access scanning feature (clamuko) under Linux.
.SH "COMMANDS"
.LP
clamd recognizes the following commands:
.TP
\fBPING\fR
Check the server's state. It should reply with "PONG".
.TP
\fBVERSION\fR
Print a version information.
.TP
\fBRELOAD\fR
Reload the virus databases.
.TP
\fBQUIT\fR
Perform a clean exit.
.TP
\fBSCAN file/directory\fR
Scan a file or directory (recursively) with archive support enabled (if not disabled in clamd.conf). A full path is required.
.TP
\fBRAWSCAN file/directory\fR
Scan a file or directory (recursively) with archive support disabled. A full path is required.
.TP
\fBCONTSCAN file/directory\fR
Scan a file or directory (recursively) with archive support enabled and continue scanning even when virus is found. A full path is required.
.TP
\fBSTREAM\fR
Scan stream \- on this command clamd will return "PORT number" and you can connect to that port and send a data to scan.
.SH "OPTIONS"
.LP
.TP
\fB\-h, \-\-help\fR
Output help information and exit.
.TP
\fB\-V, \-\-version\fR
Print the version number and exit.
.TP
\fB\-c FILE, \-\-config\-file=FILE\fR
Read configuration from FILE.
.SH "CREDITS"
Please check the full documentation for credits.
.SH "AUTHOR"
.LP
Tomasz Kojm <tkojm@clamav.net>
.SH "SEE ALSO"
.LP
clamdscan(1), clamscan(1), freshclam(1), sigtool(1), clamd.conf(5), clamav\-milter(8)

@ -1,285 +0,0 @@
.\" Manual page created by Tomasz Kojm, 20021001.
.TH "clamd.conf" "5" "September 2, 2004" "Tomasz Kojm" "Clam AntiVirus"
.SH "NAME"
.LP
\fBclamd.conf\fR \- a configuration file for Clam AntiVirus Daemon
.SH "DESCRIPTION"
.LP
clamd.conf configures the Clam AntiVirus daemon, clamd(8).
.SH "FILE FORMAT"
The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
.TP
\fBSTRING\fR
String without blank characters.
.TP
\fBSIZE\fR
Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.
.TP
\fBNUMBER\fR
Unsigned integer.
.SH "DIRECTIVES"
.LP
When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
.TP
\fBExample\fR
If this option is set clamd will not run.
.TP
\fBLogFile STRING\fR
Enable logging to selected file.
.br
Default: disabled.
.TP
\fBLogFileUnlock\fR
Disable a system lock that protects against running clamd with a same configuration file multiple times.
.br
Default: disabled.
.TP
\fBLogFileMaxSize SIZE\fR
Limit a size of a log file. The logger will be automatically disabled if the file is greater than SIZE. Value of 0 disables the limit.
.br
Default: 1M
.TP
\fBLogTime\fR
Log time with each message.
.br
Default: disabled.
.TP
\fBLogClean\fR
Log clean files.
.br
Default: disabled.
.TP
\fBLogSyslog\fR
Use system logger (can work together with LogFile).
.br
Default: disabled.
.TP
\fBLogVerbose\fR
Enable verbose logging.
.br
Default: disabled.
.TP
\fBPidFile STRING\fR
Save a process identifier of a listening daemon (main thread) to a specified file.
.br
Default: disabled.
.TP
\fBDatabaseDirectory STRING\fR
Path to a directory containing database files.
.br
Default: hardcoded directory.
.TP
\fBLocalSocket STRING\fR
Path to a local (Unix) socket the daemon will listen on.
.br
Default: disabled.
.TP
\fBFixStaleSocket\fR
Remove stale socket after unclean shutdown.
.br
Default: disabled.
.TP
\fBTCPSocket NUMBER\fR
TCP port number the daemon will listen on.
.br
Default: disabled.
.TP
\fBTCPAddr STRING\fR
TCP address to bind to. By default clamd binds to INADDR_ANY.
.br
Default: disabled.
.TP
\fBMaxConnectionQueueLength NUMBER\fR
Maximum length the queue of pending connections may grow to.
.br
Default: 15
.TP
\fBMaxThreads NUMBER\fR
Maximal number of threads running at the same time.
.br
Default: 5.
.TP
\fBThreadTimeout NUMBER\fR
Stop thread\-scanner after specified time (in seconds). Value of 0 disables the timeout.
.br
Default: 180
.TP
\fBMaxDirectoryRecursion NUMBER\fR
Maximal depth a directories are scanned at.
.br
Default: disabled.
.TP
\fBFollowDirectorySymlinks\fR
Follow a directory symlinks. You should have enabled directory recursion limit to avoid a potential problems.
.br
Default: disabled.
.TP
\fBFollowFileSymlinks\fR
Follow regular file symlinks.
.br
Default: disabled.
.TP
\fBSelfCheck NUMBER\fR
Do internal checks every NUMBER seconds.
.br
Default: 3600
.TP
\fBVirusEvent COMMAND\fR
Execute the COMMAND when virus is found. In the command string %v will be replaced by a virus name.
\fR
.br
Default: disabled.
.TP
\fBUser STRING\fR
Drop priviledges to a selected user.
.br
Default: disabled.
.TP
\fBAllowSupplementaryGroups\fR
When started by root and the User option is activated, it will initialize all the groups from /etc/group for which user is a member.
.br
Default: disabled.
.TP
\fBForeground\fR
Don't fork into background. Useful in debugging.
.br
Default: disabled.
.TP
\fBDebug\fR
Enable debug messages from libclamav. You need to enable the \fBForeground\fR option to see them.
.TP
\fBStreamSaveToDisk\fR
When activated the input stream (see STREAM command) will be saved to disk before scanning \- this allows scanning within archives.
.br
Default: disabled.
.TP
\fBStreamMaxLength SIZE\fR
Close the connection when this limit is exceeded.
.br
Default: disabled.
.TP
\fBScanPE\fR
PE stands for Portable Executable \- it's an executable file format used in all 32\-bit versions of Windows operating systems. This option allows ClamAV to perform a deeper analysis of executable files and it's also required for decompression of popular executable packers such as UPX.
.br
Default: enabled.
.TP
\fBDetectBrokenExecutables\fR
With this option clamav will try to detect broken executables and mark them as Broken.Executable.
.br
Default: disabled.
.TP
\fBScanOLE2\fR
Enables scanning of Microsoft Office document macros.
.br
Default: enabled.
.TP
\fBScanHTML\fR
Enables HTML detection and normalisation.
.br
Default: enabled.
.TP
\fBScanMail\fR
Enable scanning of mail files.
.br
Default: enabled.
.TP
\fBMailFollowURLs\fR
If an email contains URLs ClamAV can download and scan them. \fBWARNING: This option may open your system to a DoS attack. Never use it on loaded servers.\fR
.br
Default: disabled.
.TP
\fBScanArchive\fR
Enable archive scanning.
.br
Default: disabled.
.TP
\fBScanRAR\fR
The built\-in RAR unpacker is disabled by default because the code leaks.
.br
Default: disabled.
.TP
\fBArchiveMaxFileSize SIZE\fR
Files in archives larger than this limit won't be scanned. Value of 0 disables the limit.
.br
Default: 10M
.TP
\fBArchiveMaxRecursion NUMBER\fR
Limit archive recursion level. Value of 0 disables the limit.
.br
Default: 5
.TP
\fBArchiveMaxFiles NUMBER\fR
Number of files to be scanned within archive. Value of 0 disables the limit.
.br
Default: 1000
.TP
\fBArchiveMaxCompressionRatio NUMBER\fR
Analyze compression ratio and mark potential archive bombs as viruses (0 disables the limit).
.br
Default: 200
.TP
\fBArchiveLimitMemoryUsage\fR
Use slower decompression algorithm which uses less memory. This option affects bzip2 decompressor only.
.br
Default: disabled
.TP
\fBArchiveBlockEncrypted\fR
Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
.br
Default: disabled
.TP
\fBArchiveBlockMax\fR
Mark archives as viruses if ArchiveMaxFiles, ArchiveMaxFileSize, or ArchiveMaxRecursion limit is reached.
.br
Default: disabled
.TP
\fBClamukoScanOnLine\fR
Enable Clamuko \- on\-access scanner for Linux. Dazuko must be already running.
.br
Default: disabled.
.TP
\fBClamukoScanOnOpen\fR
Scan a file on open.
.br
Default: disabled.
.TP
\fBClamukoScanOnClose\fR
Scan a file on close.
.br
Default: disabled.
.TP
\fBClamukoScanOnExec\fR
Scan a file on execute.
.br
Default: disabled.
.TP
\fBClamukoIncludePath STRING\fR
Set the include paths (all files and directories in them will be scanned). You can have multiple ClamukoIncludePath options but each directory must be added with a seperate option.
.br
Default: disabled. Required.
.TP
\fBClamukoExcludePath\fR
Set the exclude paths. All subdirectories are also excluded.
.br
Default: disabled.
.TP
\fBClamukoMaxFileSize SIZE\fR
Don't scan files larger than SIZE.
.br
Default: 5M
.TP
\fBClamukoScanArchive\fR
Enable archive scanning. It uses ArchiveMax* limits.
.br
Default: disabled.
.SH "FILES"
.LP
/etc/clamd.conf
.br
/usr/local/etc/clamd.conf
.SH "AUTHOR"
.LP
Tomasz Kojm <tkojm@clamav.net>
.SH "SEE ALSO"
.LP
clamd(8), clamdscan(1), clamscan(1), freshclam(1), sigtool(1), clamav\-milter(8)

@ -1,111 +0,0 @@
.\" Manual page created by Tomasz Kojm, 20020415
.TH "freshclam" "1" "September 1, 2004" "Tomasz Kojm" "Clam AntiVirus"
.SH "NAME"
.LP
freshclam \- update virus databases
.SH "SYNOPSIS"
.LP
freshclam [options]
.SH "DESCRIPTION"
.LP
freshclam updates the virus database. It's a part of the Clam AntiVirus package. It requires an Internet connection.
.SH "OPTIONS"
.LP
Freshclam reads its configuration from freshclam.conf. The settings can be overwritten with command line options.
.TP
\fB\-h, \-\-help\fR
Output help information and exit.
.TP
\fB\-V, \-\-version\fR
Print version number and exit.
.TP
\fB\-v, \-\-verbose\fR
Be verbose. This option causes freshclam to print many additional informations.
.TP
\fB\-\-quiet\fR
Be quiet \- output only error messages.
.TP
\fB\-\-stdout\fR
Write all messages to the standard output (stdout), instead of the standard error output (stderr).
.TP
\fB\-l FILE, \-\-log=FILE\fR
Save download report in FILE.
.TP
\fB\-\-datadir=DIRECTORY\fR
Install new database in DIRECTORY. The directory must be writeable for the 'clamav' user or unprivileged user running freshclam.
.TP
\fB\-u USER, \-\-user USER\fR
Run as USER. By default (when started by root) freshclam drops privileges and works as the 'clamav' user.
.TP
\fB\-d, \-\-daemon\fR
Run in a daemon mode. This option requires \-\-checks.
.TP
\fB\-p FILE, \-\-pid=FILE\fR
Save daemon's pid in FILE.
.TP
\fB\-\-no\-dns\fR
This option forces old non\-DNS verification method (without a TTL delay).
.TP
\fB\-c #n, \-\-checks=#n\fR
Check #n times per day for a new database. #n must be between 1 and 50.
.TP
\fB\-\-daemon\-notify=/path/to/clamd.conf\fR
Notify the daemon about the new database. By default it reads a hardcoded config file but you can use an another one. Both local and TCP sockets are supported.
.TP
\fB\-\-on\-error\-execute=COMMAND\fR
Execute COMMAND if error occured. Remeber, that virus database freshness is the most important thing in anti\-virus system. With this option freshclam can alert you (eg. send SMS) when something is going wrong.
.TP
\fB\-\-on\-update\-execute=COMMAND\fR
Execute COMMAND after succesful update.
.SH "EXAMPLES"
.LP
.TP
(0) Download database to default directory:
\fBfreshclam\fR
.TP
(1) Download database to current directory:
\fBfreshclam \-\-datadir=.\fR
.TP
(2) Run as a daemon and check 2 times per day for new database:
\fBfreshclam \-d \-c 2\fR
.SH "RETURN CODES"
0 : Database succesfully updated.
.TP
1 : Database is up\-to\-date.
.TP
40: Unknown option passed.
.TP
50: Can't change directory.
.TP
51: Can't check MD5 sum.
.TP
52: Connection (network) problem.
.TP
53: Can't unlink a file.
.TP
54: MD5 or digital signature verification error.
.TP
55: Error reading file.
.TP
56: Config file error.
.TP
57: Can't create a new file.
.TP
58: Can't read database from remote server.
.TP
59: Mirrors are not fully synchronized (try again later).
.TP
60: Can't get information about clamav user from /etc/passwd.
.TP
61: Can't drop privileges.
.SH "CREDITS"
Please check the full documentation for credits.
.SH "AUTHOR"
.LP
Tomasz Kojm <tkojm@clamav.net>
.SH "SEE ALSO"
.LP
clamd(8), clamdscan(1), clamscan(1), sigtool(1), clamd.conf(5)

@ -1,94 +0,0 @@
.\" Manual page created by Magnus Ekdahl and Thomas Lamy
.TH "freshclam.conf" "5" "September 2, 2004" "Thomas Lamy" "Clam AntiVirus"
.SH "NAME"
.LP
\fBfreshclam.conf\fR \- Configuration file for Clam AntiVirus Database Updater
.SH "DESCRIPTION"
.LP
The file freshclam.conf configures the Clam AntiVirus Database Updater, freshclam(1).
.SH "FILE FORMAT"
The file consists of comments and options with arguments. Each line that starts with a hash (\fB#\fR) symbol is a comment. Options are are case sensitive and of the form \fBOption Argument\fR. The (possibly optional) arguments are are of the following types:
.TP
\fBSTRING\fR
String without blank characters.
.TP
\fBSIZE\fR
Size in bytes. You can use a 'M' or 'm' modifiers for megabytes and a 'K' or 'k' for kilobytes.
.TP
\fBNUMBER\fR
Unsigned integer.
.SH "DIRECTIVES"
.LP
When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action.
.TP
\fBExample\fR
If this option is set clamd will not run.
.TP
\fBDatabaseOwner STRING\fR
When started by root, drop privileges to a specified user. Default is \"clamav\".
.TP
\fBDatabaseDirectory STRING\fR
Path to a directory containing database files.
.br
Default: hardcoded directory
.TP
\fBChecks NUM\fR
Number of database checks per day. 12 is the recommended number.
.TP
\fBUpdateLogFile STRING\fR
Enable logging to a specified file. Highly recommended.
.br
Default: disabled.
.TP
\fBLogSyslog\fR
Enable logging to Syslog. May be used in combination with UpdateLogFile
.br
Default: disabled.
.TP
\fBLogVerbose\fR
Enable verbose logging.
.TP
\fBDatabaseMirror STRING\fR
Server name where database updates are downloaded from. The default is database.clamav.net, which points to all official mirrors.
.br .
If this option is given multiple times, freshclam(1) tries them in the order given if one download fails.
.br
There is no default, which results in an error when running freshclam(1).
.TP
\fBMaxAttempts NUM\fR
Freshclam(1) tries every mirror this number of times before switching to the next mirror.
.br .
Default is to try once per mirror.
.TP
\fBHTTPProxyServer STR\fR, \fBHTTPProxyPort NUM\fR
Use given proxy server and TCP port for database downloads.
.TP
\fBHTTPProxyUsername STR\fR,\fBHTTPProxyPassword STR\fR
Proxy usage is authenticated through given username and password.
.br .
Default: no proxy authentication
.TP
\fBNotifyClamd \[STRING\]\fR
Notify a running clamd(8) to reload it\'s database after a download has occured. Optionally a clamd.conf(5) file location may be given to tell freshclam(1) how to communicate with clamd(8).
.br .
The default is to not notify clamd. See clamd.conf(5)\'s option SelfCheck for how clamd(8) handles database updates in this case.
.TP
\fBOnUpdateExecute STRING\fR
Execute this command after the database has been successfully updated.
.TP
\fBOnErrorExecute\fR
Execute this command after a database update has failed.
.SH "NOTE"
While not reasonable, any configuration option from clamd.conf(5) may be given.
.SH "FILES"
.LP
/usr/local/etc/freshclam.conf
.br
/etc/clamav/freshclam.conf
.SH "AUTHOR"
.LP
Thomas Lamy <thomas.lamy@netwake.de>
.SH "SEE ALSO"
.LP
freshclam(1), clamd.conf(5), clamd(8), clamscan(1)

@ -0,0 +1,4 @@
.deps
.libs
Makefile
freshclam

@ -0,0 +1,5 @@
*.lo
.deps
.libs
Makefile
libclamav.la

@ -53,4 +53,17 @@
# endif
#endif
/*
** Interix Support: Brian A. Reiter <breiter@wolfereiter.com>
** In Interix, <sys/typedef.h> defines int64_t but not uint64_t.
** Interix defines u_int64_t instead.
*/
#if __INTERIX
#ifdef __GNUC__
typedef unsigned long long uint64_t;
#elif MSC_VER
typedef unsigned __int64 uint64_t;
#endif/*__GNUC__*/
#endif /*Interix*/
#endif

@ -0,0 +1,4 @@
.deps
.libs
Makefile
sigtool
Loading…
Cancel
Save